summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2017-05-07 14:28:30 +0300
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2017-05-15 12:06:09 +0300
commit7f363145992cebf4ea760447f1cfdf6f81459683 (patch)
tree449b8d82d9e7ce178aa5b5e8d9d373a52393e34f /drivers
parent36ac0d439b795e8f395e3aa46434d79a5626219f (diff)
downloadlinux-7f363145992cebf4ea760447f1cfdf6f81459683.tar.bz2
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/platform/x86/ideapad-laptop.c3
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,