]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: ideapad-laptop: hide unused 'touchpad_store'
authorArnd Bergmann <arnd@arndb.de>
Mon, 22 May 2017 13:07:03 +0000 (15:07 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 23 May 2017 16:36:25 +0000 (19:36 +0300)
commita27f6b11677a8b8a6373852ab8a7224c5d5f1600
treec05dd867b1fc8c1be5c49a1aa70737cc13ff6592
parent3f6c4410b2705dbc4971e0d3e2158b6f2f048af5
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: 66efb6173616 ("platform/x86: ideapad-laptop: Switch touchpad attribute to be RO")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/ideapad-laptop.c