platform/x86: ideapad-laptop: Switch touchpad attribute to be RO
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sun, 7 May 2017 11:28:30 +0000 (14:28 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 15 May 2017 09:06:09 +0000 (12:06 +0300)
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>
drivers/platform/x86/ideapad-laptop.c

index 933668e48f878e770262aa7ddff176e6d33b3291..f7a4608cc60b0bcc21b354fde1e654679e06966a 100644 (file)
@@ -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,