OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
HID: asus: fix build warning wiht CONFIG_ASUS_WMI disabled
[uclinux-h8/linux.git]
/
drivers
/
hid
/
hid-asus.c
diff --git
a/drivers/hid/hid-asus.c
b/drivers/hid/hid-asus.c
index
dc6d647
..
a1fa2fc
100644
(file)
--- a/
drivers/hid/hid-asus.c
+++ b/
drivers/hid/hid-asus.c
@@
-359,6
+359,9
@@
static bool asus_kbd_wmi_led_control_present(struct hid_device *hdev)
u32 value;
int ret;
+ if (!IS_ENABLED(CONFIG_ASUS_WMI))
+ return false;
+
ret = asus_wmi_evaluate_method(ASUS_WMI_METHODID_DSTS2,
ASUS_WMI_DEVID_KBD_BACKLIGHT, 0, &value);
hid_dbg(hdev, "WMI backlight check: rc %d value %x", ret, value);