From: Andy Shevchenko Date: Sun, 7 May 2017 11:28:30 +0000 (+0300) Subject: platform/x86: ideapad-laptop: Switch touchpad attribute to be RO X-Git-Tag: android-x86-8.1-r1~3110^2~82 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=7f363145992cebf4ea760447f1cfdf6f81459683;p=android-x86%2Fkernel.git 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 --- 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,