]> asedeno.scripts.mit.edu Git - linux.git/commit
platform/x86: huawei-wmi: Move to platform driver
authorAyman Bagabas <ayman.bagabas@gmail.com>
Tue, 24 Sep 2019 02:48:06 +0000 (22:48 -0400)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 15 Oct 2019 07:55:08 +0000 (10:55 +0300)
commit1ac9abeb2e5bf92780f77326ab59a0e211fa79b8
tree18bca0e29fbad4e51ed489bb27cdf10b5c7f9f7a
parent4f5cafb5cb8471e54afdc9054d973535614f7675
platform/x86: huawei-wmi: Move to platform driver

Move from WMI driver to platform driver. This move is necessary since
the driver is no longer a hotkeys driver only. Platform driver makes it
easier for users to access sysfs attributes under (i.e.
/sys/devices/platform/huawei-wmi) compared to wmi driver.

Use WMI device UID, AMW0 has a UID of HWMI. WMI0 is the device name
and doesn't have a UID so keep it as it is.

Signed-off-by: Ayman Bagabas <ayman.bagabas@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/Kconfig
drivers/platform/x86/huawei-wmi.c