i.MX has been converted to a DT-only platform, so make the driver
depend on OF, remove the CONFIG_OF ifdefery and remove of_match_ptr().
Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
drivers/input/keyboard/Kconfig | 1 +
drivers/input/keyboard/imx_keypad.c | 4 +---
2 files changed, 2 insertions(+), 3 deletions(-)
Hi Fabio,
On Mon, Mar 15, 2021 at 02:10:37PM -0300, Fabio Estevam wrote:
quoted hunk
i.MX has been converted to a DT-only platform, so make the driver
depend on OF, remove the CONFIG_OF ifdefery and remove of_match_ptr().
Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
drivers/input/keyboard/Kconfig | 1 +
drivers/input/keyboard/imx_keypad.c | 4 +---
2 files changed, 2 insertions(+), 3 deletions(-)
If we truly converting this driver then we should also remove references
to dev_get_platdata() and checks for pdev->dev.of_node from
imx_keypad_probe.
Thanks.
--
Dmitry
Hi Dmitry,
On Mon, Mar 15, 2021 at 10:48 PM Dmitry Torokhov
[off-list ref] wrote:
quoted
@@ -458,6 +458,7 @@ config KEYBOARD_SNVS_PWRKEY config KEYBOARD_IMX tristate "IMX keypad support" depends on ARCH_MXC || COMPILE_TEST+ depends on OF
ARCH_MXC is a stronger constraint than OF, so I wonder if we really need
this.
ARCH_MXC does not depend on OF yet, but I agree this is a good
suggestion and will submit a patch to do so.
For the time being, I will keep the OF dependency in the driver.
If we truly converting this driver then we should also remove references
to dev_get_platdata() and checks for pdev->dev.of_node from
imx_keypad_probe.