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: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
99b4ffbd84
commit
43b7be3b8c
|
@ -36,9 +36,11 @@ Required Board Specific Properties:
|
|||
- pinctrl-0: Should specify pin control groups used for this controller.
|
||||
- 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:
|
||||
- linux,keypad-no-autorepeat: do no enable autorepeat feature.
|
||||
- linux,keypad-wakeup: use any event on keypad as wakeup event.
|
||||
|
||||
|
||||
Example:
|
||||
|
|
|
@ -299,8 +299,10 @@ samsung_keypad_parse_dt(struct device *dev)
|
|||
if (of_get_property(np, "linux,input-no-autorepeat", NULL))
|
||||
pdata->no_autorepeat = true;
|
||||
|
||||
if (of_get_property(np, "linux,input-wakeup", NULL))
|
||||
pdata->wakeup = true;
|
||||
pdata->wakeup = of_property_read_bool(np, "wakeup-source") ||
|
||||
/* legacy name */
|
||||
of_property_read_bool(np, "linux,input-wakeup");
|
||||
|
||||
|
||||
return pdata;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue