diff options
author | Hans de Goede <hdegoede@redhat.com> | 2023-04-30 18:57:57 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2023-05-09 12:29:51 +0200 |
commit | 76d6778fb21ee5e86b1de102d12b6480fa4fad9e (patch) | |
tree | 6cfd6ed49bd8399101881f1ba5e810fd8dc765ad /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | a6673cfc6b56a2dc41de416f5ea397943297b79a (diff) |
platform/x86: lenovo-yogabook: Use PMIC LED driver for pen icon LED control
Use the (new) PMIC LED driver for pen icon LED control instead of using
custom WMI calls for this.
This will also work on the Android version of the Lenovo Yoga Book 1,
where there is no WMI interface for this.
The dev_id of the lookup is set using dev_name() so that it will also
work for both the Windows YB1 WMI-device as well as the Android YB1
platform-device. While at it also move the gpio_lookup to using dev_name()
for the dev_id.
Note this also removes the need to turn of the LED during suspend since
the PMIC LED driver now already does that.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20230430165807.472798-10-hdegoede@redhat.com
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions