[LEDE-DEV] [PATCH] lantiq: BTHOMEHUBV5A - use the power event code for the restart button
Mathias Kresin
dev at kresin.me
Sun Jun 19 07:34:47 PDT 2016
The restart event code is used in LEDE to trigger a factory reset on
long press as well.
By using the power event code, the restart functionality can be used
without being prone to trigger a factory reset.
Signed-off-by: Mathias Kresin <dev at kresin.me>
---
target/linux/lantiq/dts/BTHOMEHUBV5A.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/linux/lantiq/dts/BTHOMEHUBV5A.dts b/target/linux/lantiq/dts/BTHOMEHUBV5A.dts
index e62a18d..2013b31 100644
--- a/target/linux/lantiq/dts/BTHOMEHUBV5A.dts
+++ b/target/linux/lantiq/dts/BTHOMEHUBV5A.dts
@@ -158,7 +158,7 @@
restart {
label = "restart";
gpios = <&gpio 39 1>;
- linux,code = <0x198>;
+ linux,code = <0x74>;
};
};
--
1.9.1
More information about the Lede-dev
mailing list