diff options
author | Hans de Goede <[email protected]> | 2021-11-02 23:55:04 +0100 |
---|---|---|
committer | Lee Jones <[email protected]> | 2021-12-22 11:14:14 +0000 |
commit | 6202b5de73cfb0d83245b8ea834017183ec67885 (patch) | |
tree | 6a2a873a2a186ec31b753cf95a6f3e5add099094 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 92add941b6be185e511a7564bf68963fa1633d53 (diff) |
backlight: lp855x: Add support ACPI enumeration
The Xiaomi Mi Pad 2 tablet uses an ACPI enumerated LP8556 backlight
controller for its LCD-panel, with a Xiaomi specific ACPI HID of
"XMCC0001", add support for this.
Note the new "if (id)" check also fixes a NULL pointer deref when a user
tries to manually bind the driver from sysfs.
When CONFIG_ACPI is disabled acpi_match_device() will always return NULL,
so the lp855x_parse_acpi() call will get optimized away.
Reviewed-by: Daniel Thompson <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions