Commit 43b7be3b authored by Dmitry Torokhov's avatar Dmitry Torokhov

Input: samsung-keypad - change name of wakeup property

Wakeup property of device is not Linux-specific, it describes intended
system behavior regardless of the OS being used. Therefore let's drop
"linux," prefix, and, while at it, use the same name as I2C bus does:
"wakeup-source".

We keep parsing old name to keep compatibility with old DTSes.
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 99b4ffbd
...@@ -36,9 +36,11 @@ Required Board Specific Properties: ...@@ -36,9 +36,11 @@ Required Board Specific Properties:
- pinctrl-0: Should specify pin control groups used for this controller. - pinctrl-0: Should specify pin control groups used for this controller.
- pinctrl-names: Should contain only one value - "default". - pinctrl-names: Should contain only one value - "default".
Optional Properties:
- wakeup-source: use any event on keypad as wakeup event.
Optional Properties specific to linux: Optional Properties specific to linux:
- linux,keypad-no-autorepeat: do no enable autorepeat feature. - linux,keypad-no-autorepeat: do no enable autorepeat feature.
- linux,keypad-wakeup: use any event on keypad as wakeup event.
Example: Example:
......
...@@ -299,8 +299,10 @@ samsung_keypad_parse_dt(struct device *dev) ...@@ -299,8 +299,10 @@ samsung_keypad_parse_dt(struct device *dev)
if (of_get_property(np, "linux,input-no-autorepeat", NULL)) if (of_get_property(np, "linux,input-no-autorepeat", NULL))
pdata->no_autorepeat = true; pdata->no_autorepeat = true;
if (of_get_property(np, "linux,input-wakeup", NULL)) pdata->wakeup = of_property_read_bool(np, "wakeup-source") ||
pdata->wakeup = true; /* legacy name */
of_property_read_bool(np, "linux,input-wakeup");
return pdata; return pdata;
} }
......
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