platform/x86: asus-wmi: add a helper for device presence
authorDaniel Drake <drake@endlessm.com>
Mon, 29 Jul 2019 08:27:38 +0000 (16:27 +0800)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 30 Jul 2019 11:14:38 +0000 (14:14 +0300)
commitf1fc032192d2872caef69fb899e939bf7cc24fc7
treef0dd12efdac62823ad66572cca0d5728d1f2a581
parent2889ffcfc2522d6d25e5bda704275064062bbb21
platform/x86: asus-wmi: add a helper for device presence

Factor out the WLAN LED and lightbar LED presence checks into a
helper function, which will also be used by the upcoming CPU fan device
support.

Signed-off-by: Daniel Drake <drake@endlessm.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/asus-wmi.c