]> git.itanic.dy.fi Git - linux-stable/commit
ACPI: video: Drop should_check_lcd_flag()
authorHans de Goede <hdegoede@redhat.com>
Wed, 15 Nov 2023 17:48:11 +0000 (18:48 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 20 Nov 2023 16:49:03 +0000 (17:49 +0100)
commitc7add369b4cc599db336ca67578a052c5b0f0891
tree5b2ae67e6f0457d39e87a97096bde9f95e036a54
parent52304886ea49ee662589aff05925ef226c17a6a6
ACPI: video: Drop should_check_lcd_flag()

Since commit 3dbc80a3e4c5 ("ACPI: video: Make backlight class device
registration a separate step (v2)") acpi_video# backlights are no longer
automatically registered. Instead they now only get registered when
the GPU/KMS driver calls acpi_video_register_backlight() which it only
does when it has detected an internal LCD panel.

This fixes the issue of sometimes a non-working acpi_video# backlight
showing up on Desktops / HDMI-sticks without an internal LCD display
in a more complete and robust manner then the LCD flag check which
gets enabled by the should_check_lcd_flag() helper does.

Therefor the should_check_lcd_flag() helper is no longer necessary.

The lcd_only flag itself is still necessary to only register
a single backlight device (for the right output) on the ESPRIMO Mobile
M9410 which has 2 ACPI video connector nodes with a _BCM control method,
which is the issue for which the flag was originally introduced in
commit e50b9be14ab0 ("ACPI / video: only register backlight for LCD
device").

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_video.c