All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Input: gpio-keys - add support for linux,input-value dts property
@ 2023-01-16 21:59 Gergo Koteles
  2023-01-16 22:52 ` Dmitry Torokhov
  0 siblings, 1 reply; 3+ messages in thread
From: Gergo Koteles @ 2023-01-16 21:59 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: linux-input, Gergo Koteles

Allows setting the value of EV_ABS events from dts.

Signed-off-by: Gergo Koteles <soyer@irl.hu>
---
 drivers/input/keyboard/gpio_keys.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/input/keyboard/gpio_keys.c b/drivers/input/keyboard/gpio_keys.c
index 5496482a38c1..c42f86ad0766 100644
--- a/drivers/input/keyboard/gpio_keys.c
+++ b/drivers/input/keyboard/gpio_keys.c
@@ -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 */
-- 
2.39.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] Input: gpio-keys - add support for linux,input-value dts property
  2023-01-16 21:59 [PATCH] Input: gpio-keys - add support for linux,input-value dts property Gergo Koteles
@ 2023-01-16 22:52 ` Dmitry Torokhov
  2023-01-17  1:04   ` Gergo Koteles
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Torokhov @ 2023-01-16 22:52 UTC (permalink / raw)
  To: Gergo Koteles; +Cc: linux-input

Hi,

On Mon, Jan 16, 2023 at 10:59:47PM +0100, Gergo Koteles wrote:
> Allows setting the value of EV_ABS events from dts.

This needs adjustment to the binding documentation.

Thanks.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Input: gpio-keys - add support for linux,input-value dts property
  2023-01-16 22:52 ` Dmitry Torokhov
@ 2023-01-17  1:04   ` Gergo Koteles
  0 siblings, 0 replies; 3+ messages in thread
From: Gergo Koteles @ 2023-01-17  1:04 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: linux-input

Hi,

On 2023. 01. 16. 23:52, Dmitry Torokhov wrote:
> Hi,
> 
> On Mon, Jan 16, 2023 at 10:59:47PM +0100, Gergo Koteles wrote:
>> Allows setting the value of EV_ABS events 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-01-17  1:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-16 21:59 [PATCH] Input: gpio-keys - add support for linux,input-value dts property Gergo Koteles
2023-01-16 22:52 ` Dmitry Torokhov
2023-01-17  1:04   ` Gergo Koteles

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.