Inputs assigned to "mode select" switch on the side of the device
were missing linux,input-type property.
This would cause them do incorrectly generate EV_KEY events.
Fix this by setting the linux,input-type = <EV_SW> property on them.
Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
sw1 {
label = "Mode switch 1";
+ linux,input-type = <EV_SW>;
linux,code = <BTN_0>;
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
};
sw2 {
label = "Mode switch 2";
+ linux,input-type = <EV_SW>;
linux,code = <BTN_1>;
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};