diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2017-05-07 13:28:30 +0200 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2017-05-15 11:06:09 +0200 |
commit | 7f363145992cebf4ea760447f1cfdf6f81459683 (patch) | |
tree | 449b8d82d9e7ce178aa5b5e8d9d373a52393e34f | |
parent | platform/x86: ideapad-laptop: Add sysfs interface for touchpad state (diff) | |
download | linux-7f363145992cebf4ea760447f1cfdf6f81459683.tar.xz linux-7f363145992cebf4ea760447f1cfdf6f81459683.zip |
platform/x86: ideapad-laptop: Switch touchpad attribute to be RO
For now let's restrict touchpad attribute to be read only.
We might revisit this in the future though.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
-rw-r--r-- | drivers/platform/x86/ideapad-laptop.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c index 933668e48f87..f7a4608cc60b 100644 --- a/drivers/platform/x86/ideapad-laptop.c +++ b/drivers/platform/x86/ideapad-laptop.c @@ -453,7 +453,8 @@ static ssize_t touchpad_store(struct device *dev, return count; } -static DEVICE_ATTR_RW(touchpad); +/* Switch to RO for now: It might be revisited in the future */ +static DEVICE_ATTR_RO(touchpad); static struct attribute *ideapad_attributes[] = { &dev_attr_camera_power.attr, |