aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_target.rs
diff options
context:
space:
mode:
authorKai-Heng Feng <[email protected]>2024-03-08 13:32:55 +0800
committerIlpo Järvinen <[email protected]>2024-03-12 12:55:57 +0200
commitf7b7066508d69934e4545db0c709c98ce506df0c (patch)
treedf0f1048c74b714b315745428ae0571a520e5eee /scripts/generate_rust_target.rs
parente9df5436fd61c8cf375ac086d936f90385cd6888 (diff)
platform/x86: asus-wmi: Consider device is absent when the read is ~0
AAEON PICO-TGU4 board doesn't have any LED but there are bogus LED controls under /sys/class/leds: $ ls /sys/class/leds asus::kbd_backlight asus::lightbar platform::micmute The reason is that the ~0 read from asus_wmi_get_devstate() is treated as a valid state, in truth it means the device is absent. So filter out ~0 read to prevent bogus LED controls being created. Signed-off-by: Kai-Heng Feng <[email protected]> Reviewed-by: Ilpo Järvinen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ilpo Järvinen <[email protected]>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions