diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-07-17 17:04:10 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-07-23 17:34:02 -0700 |
commit | 43b7be3b8c0457c35a124d8538372f82f355bd29 (patch) | |
tree | 7cd078051e19095dd14b59a3e9b342df790b4ac5 /drivers/input | |
parent | 99b4ffbd84ea4191e0b8d1709230656a1c33b848 (diff) | |
download | linux-stable-43b7be3b8c0457c35a124d8538372f82f355bd29.tar.gz linux-stable-43b7be3b8c0457c35a124d8538372f82f355bd29.tar.bz2 linux-stable-43b7be3b8c0457c35a124d8538372f82f355bd29.zip |
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>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/keyboard/samsung-keypad.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/input/keyboard/samsung-keypad.c b/drivers/input/keyboard/samsung-keypad.c index 43e48dac7687..4e319eb9e19d 100644 --- a/drivers/input/keyboard/samsung-keypad.c +++ b/drivers/input/keyboard/samsung-keypad.c @@ -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; } |