Input: adp5589 - make keypad support optional
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 23 Oct 2019 20:52:23 +0000 (13:52 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 23 Oct 2019 23:24:13 +0000 (16:24 -0700)
commitcb3efd5a38855eabd26c2b631dd027169678d60f
tree51605fa5cda6b3d40fae16b84823c1b1c7cd55ed
parentee1b4b2e7c92f892855175e564e091130a59d707
Input: adp5589 - make keypad support optional

On some platforms the adp5589 is used in GPIO only mode. On these platforms
we do not want to register a input device, so make that optional and only
create the input device if a keymap is supplied.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20191023070541.13940-1-alexandru.ardelean@analog.com
[dtor: dropped unnecessary changes related to passing pdata to various
 functions]
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/adp5589-keys.c