summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/platform/x86/ideapad-laptop.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c
index f7a4608cc60b..e4c83c15587d 100644
--- a/drivers/platform/x86/ideapad-laptop.c
+++ b/drivers/platform/x86/ideapad-laptop.c
@@ -435,9 +435,10 @@ static ssize_t touchpad_show(struct device *dev,
return sprintf(buf, "%lu\n", result);
}
-static ssize_t touchpad_store(struct device *dev,
- struct device_attribute *attr,
- const char *buf, size_t count)
+/* Switch to RO for now: It might be revisited in the future */
+static ssize_t __maybe_unused touchpad_store(struct device *dev,
+ struct device_attribute *attr,
+ const char *buf, size_t count)
{
struct ideapad_private *priv = dev_get_drvdata(dev);
bool state;
@@ -453,7 +454,6 @@ static ssize_t touchpad_store(struct device *dev,
return count;
}
-/* Switch to RO for now: It might be revisited in the future */
static DEVICE_ATTR_RO(touchpad);
static struct attribute *ideapad_attributes[] = {