Skip to content

Commit 7f36314

Browse files
committed
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>
1 parent 36ac0d4 commit 7f36314

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/platform/x86/ideapad-laptop.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,8 @@ static ssize_t touchpad_store(struct device *dev,
453453
return count;
454454
}
455455

456-
static DEVICE_ATTR_RW(touchpad);
456+
/* Switch to RO for now: It might be revisited in the future */
457+
static DEVICE_ATTR_RO(touchpad);
457458

458459
static struct attribute *ideapad_attributes[] = {
459460
&dev_attr_camera_power.attr,

0 commit comments

Comments
 (0)