Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: gpio-keys-polled - don't use unit-address with button nodes

The change corrects an example in device tree documentation section,
because button/key device nodes don't contain reg property there is
no need to declare unit-address, and address and size cell properties
are also redundant.

At the moment a compilation of the hypothetical original example
should produce W=1 level warnings, and it is better to stop spreading
misusage of the polled gpio keys device tree binding through this
example.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Vladimir Zapolskiy and committed by
Dmitry Torokhov
de56bea0 69464161

+2 -3
+2 -3
Documentation/devicetree/bindings/input/gpio-keys-polled.txt
··· 34 34 35 35 gpio_keys_polled { 36 36 compatible = "gpio-keys-polled"; 37 - #address-cells = <1>; 38 - #size-cells = <0>; 39 37 poll-interval = <100>; 40 38 autorepeat; 41 - button@21 { 39 + 40 + button21 { 42 41 label = "GPIO Key UP"; 43 42 linux,code = <103>; 44 43 gpios = <&gpio1 0 1>;