Commit 4b665e17 authored by Gergo Koteles's avatar Gergo Koteles Committed by Dmitry Torokhov

Input: gpio-keys - add support for linux,input-value DTS property

Allows setting the value of EV_ABS events from DTS.
This property is included in the gpio-keys.yaml scheme, but was only
implemented for gpio-keys-polled.
Signed-off-by: default avatarGergo Koteles <soyer@irl.hu>
Link: https://lore.kernel.org/r/3519a11b0ef5324a2befbd137cd2aa0cb8fd057d.1676850819.git.soyer@irl.huSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 40e40fdf
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment