Commit 46936fd6 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Andy Shevchenko

platform/x86: ideapad-laptop: hide unused 'touchpad_store'

A readonly sysfs property must not have a 'store' function:

drivers/platform/x86/ideapad-laptop.c:438:16: error: 'touchpad_store' defined but not used [-Werror=unused-function]

We can either comment it out or remove the function entirely,
without a good reason one or or another I picked the second option.

Fixes: 7f363145 ("platform/x86: ideapad-laptop: Switch touchpad attribute to be RO")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent 23ccd036
...@@ -435,9 +435,10 @@ static ssize_t touchpad_show(struct device *dev, ...@@ -435,9 +435,10 @@ static ssize_t touchpad_show(struct device *dev,
return sprintf(buf, "%lu\n", result); return sprintf(buf, "%lu\n", result);
} }
static ssize_t touchpad_store(struct device *dev, /* Switch to RO for now: It might be revisited in the future */
struct device_attribute *attr, static ssize_t __maybe_unused touchpad_store(struct device *dev,
const char *buf, size_t count) struct device_attribute *attr,
const char *buf, size_t count)
{ {
struct ideapad_private *priv = dev_get_drvdata(dev); struct ideapad_private *priv = dev_get_drvdata(dev);
bool state; bool state;
...@@ -453,7 +454,6 @@ static ssize_t touchpad_store(struct device *dev, ...@@ -453,7 +454,6 @@ static ssize_t touchpad_store(struct device *dev,
return count; return count;
} }
/* Switch to RO for now: It might be revisited in the future */
static DEVICE_ATTR_RO(touchpad); static DEVICE_ATTR_RO(touchpad);
static struct attribute *ideapad_attributes[] = { static struct attribute *ideapad_attributes[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment