]> git.baikalelectronics.ru Git - kernel.git/commit
Input: mt6779-keypad - move iomem pointer to probe function
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Sat, 9 Apr 2022 01:32:58 +0000 (18:32 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 9 Apr 2022 01:33:55 +0000 (18:33 -0700)
commitcd404e376d80eeeee9bdda75808a6b0c8a6c099b
tree3228867402a833f0a776495633bac6d4bc7a6c8c
parent6a6f2150c89e2ef5a259e2b8df28d91cee134759
Input: mt6779-keypad - move iomem pointer to probe function

The mmio base address is used for the only purpose of initializing
regmap for this driver, hence it's not necessary to have it in the
main driver structure, as it is used only in the probe() callback.
Move it local to function mt6779_keypad_pdrv_probe().

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/20220406115654.115093-1-angelogioacchino.delregno@collabora.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/mt6779-keypad.c