Input: gpio-keys - add support for linux,input-value dts property
Subsystems (2)
PATCH 1/1 Input: gpio-keys - add support for linux,input-value dts property
Allows setting the value of EV_ABS events from dts.
Signed-off-by Gergo Koteles <[email protected]>
--- drivers/input/keyboard/gpio_keys.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/input/keyboard/gpio_keys.c +3 -0
@@ -770,6 +770,9 @@ gpio_keys_get_devtree_pdata(struct device *dev) &button->type)) button->type =EV_KEY ; +fwnode_property_read_u32 (child,"linux,input-value" , + (u32 *)&button->value); + button->wakeup = fwnode_property_read_bool(child, "wakeup-source") ||/* legacy name */
Signature · 1 line
2.39.0
Dmitry Torokhov
maintainerHi,
Quoted 1 line · Gergo Koteles
Allows setting the value of
EV_ABSevents from dts.
This needs adjustment to the binding documentation.
Thanks.
Signature · 1 line
Dmitry
Hi,
Quoted 9 lines · Dmitry Torokhov
Hi,
Quoted 1 line · Gergo Koteles
Allows setting the value of
EV_ABSevents from dts.This needs adjustment to the binding documentation.
Thanks.
Do you mean Documentation/devicetree/bindings/input/gpio-keys.yaml? The linux,input-value is already there.
Thanks