summaryrefslogtreecommitdiff
path: root/Kbuild
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2021-11-02 23:55:04 +0100
committerLee Jones <lee.jones@linaro.org>2021-12-22 11:14:14 +0000
commit6202b5de73cfb0d83245b8ea834017183ec67885 (patch)
tree6a2a873a2a186ec31b753cf95a6f3e5add099094 /Kbuild
parent92add941b6be185e511a7564bf68963fa1633d53 (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 <daniel.thompson@linaro.org> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Link: https://lore.kernel.org/r/20211102225504.18920-3-hdegoede@redhat.com
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions