diff options
author | Hans de Goede <hdegoede@redhat.com> | 2022-04-28 14:45:35 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2022-09-02 09:57:14 +0200 |
commit | a2fc3c899bb091ec69cd74d4d69d71f8b2acdc11 (patch) | |
tree | 55b6df90780a20917134e0001de0873622940dc2 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 7f908d332dc48a12436725ae326d6143a1a02c1c (diff) |
ACPI: video: Drop backlight_device_get_by_type() call from acpi_video_get_backlight_type()
All x86/ACPI kms drivers which register native/BACKLIGHT_RAW type
backlight devices call acpi_video_backlight_use_native() now. This sets
__acpi_video_get_backlight_type()'s internal static native_available flag.
This makes the backlight_device_get_by_type(BACKLIGHT_RAW) check
unnecessary.
Relying on the cached native_available value not only is simpler, it will
also work correctly in cases where then native backlight registration was
skipped because of acpi_video_backlight_use_native() returning false.
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions