OSDN Git Service

dell-led: move driver to drivers/platform/x86/dell-wmi-led.c
authorMichał Kępień <kernel@kempniu.pl>
Fri, 17 Feb 2017 07:57:52 +0000 (08:57 +0100)
committerJacek Anaszewski <jacek.anaszewski@gmail.com>
Mon, 6 Mar 2017 21:07:09 +0000 (22:07 +0100)
commit7a3319c1cd63fb10d54d5700c1f0f41ff46f05a8
treee06c6217af40176bdb1f94e079517a70370162d2
parente5aa482a8add7673ae7260d704ef49749cd3af95
dell-led: move driver to drivers/platform/x86/dell-wmi-led.c

The dell-led driver handles a specific WMI GUID present on some Dell
laptops and as such it belongs in the x86 platform driver subsystem.
Source code is moved along with the relevant Kconfig and Makefile
entries, with some minor modifications:

  - Kconfig option is renamed from CONFIG_LEDS_DELL_NETBOOKS to
    CONFIG_DELL_WMI_LED,

  - the X86 Kconfig dependency is removed as the whole
    drivers/platform/x86 menu depends on it, so there is no need to
    duplicate it,

  - the name of the module's source file is removed from the header
    comment to avoid the need to update it in the future.

Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Tested-by: Alex Hung <alex.hung@canonical.com>
Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
drivers/leds/Kconfig
drivers/leds/Makefile
drivers/platform/x86/Kconfig
drivers/platform/x86/Makefile
drivers/platform/x86/dell-wmi-led.c [moved from drivers/leds/dell-led.c with 99% similarity]