]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: ideapad-laptop: Re-use DEFINE_SHOW_ATTRIBUTE() macro
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 22 Jan 2018 16:05:45 +0000 (18:05 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 7 Feb 2018 10:50:22 +0000 (12:50 +0200)
commit3466a3e368c452c96e7c3094213690b222a55dd6
tree1063338dc46df73f0778cc1ae5676502ffe3bae1
parent1ac904e2d29f47a22ec6f2fc7d6a644f55a7fcb3
platform/x86: ideapad-laptop: Re-use DEFINE_SHOW_ATTRIBUTE() macro

...instead of open coding file operations followed by custom ->open()
callbacks per each attribute.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/ideapad-laptop.c