Home
last modified time | relevance | path

Searched hist:"69 cf890d8b283c8d3a77d28dbd3024f58ae236a9" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/input/keyboard/
H A Dmtk-pmic-keys.cdiff 69cf890d8b283c8d3a77d28dbd3024f58ae236a9 Tue May 31 16:26:34 CDT 2022 AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Input: mtk-pmic-keys - move long press debounce mask to mtk_pmic_regs

As the second and last step of preparation to add support for more
PMICs in this driver, move the long press debounce mask to struct
mtk_pmic_regs and use that in mtk_pmic_keys_lp_reset_setup() instead
of directly using the definition.

While at it, remove the definition for MTK_PMIC_RST_DU_SHIFT as we
are able to calculate it dynamically and spares us some unnecessary
new definitions around for future per-PMIC variations of RST_DU_MASK.

Lastly, it was necessary to change the function signature of
mtk_pmic_keys_lp_reset_setup() to now pass a pointer to the main
mtk_pmic_regs structure, since that's where the reset debounce
mask now resides.

This commit brings no functional changes.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/20220524093505.85438-3-angelogioacchino.delregno@collabora.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>