From 7f363145992cebf4ea760447f1cfdf6f81459683 Mon Sep 17 00:00:00 2001 From: Andy Shevchenko Date: Sun, 7 May 2017 14:28:30 +0300 Subject: [PATCH] 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 --- drivers/platform/x86/ideapad-laptop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- 2.39.2