platform/x86: panasonic-laptop: Use acpi_video_get_backlight_type()
authorHans de Goede <hdegoede@redhat.com>
Fri, 24 Jun 2022 11:23:40 +0000 (13:23 +0200)
committerHans de Goede <hdegoede@redhat.com>
Tue, 28 Jun 2022 19:45:45 +0000 (21:45 +0200)
commit4da4742236ce74b92590bc65184eb10826a12006
treee105efae572e957c12bd18b37521d83d46d50b0e
parent5e24e1eca1f2a3aed924e44606134a9381c3ccb9
platform/x86: panasonic-laptop: Use acpi_video_get_backlight_type()

Use acpi_video_get_backlight_type() to determine if we should register
the panasonic specific backlight interface. To avoid registering this
on systems where the ACPI or GPU native backlight control methods
should be used instead.

Tested-by: Stefan Seyfried <seife+kernel@b1-systems.com>
Tested-by: Kenneth Chan <kenneth.t.chan@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220624112340.10130-8-hdegoede@redhat.com
drivers/platform/x86/panasonic-laptop.c