ACPI: video: Add Nvidia WMI EC brightness control detection (v3)
authorHans de Goede <hdegoede@redhat.com>
Sat, 4 Jun 2022 12:06:18 +0000 (14:06 +0200)
committerHans de Goede <hdegoede@redhat.com>
Sat, 3 Sep 2022 10:17:26 +0000 (12:17 +0200)
commitfe7aebb40d42bf8e830019d6f57c47cf7d85aa61
tree26a48928686e3d2b15924992dd7ab70732b39c08
parentb39be9f441f9d7320e6020bdf8ec1522d6c81d1e
ACPI: video: Add Nvidia WMI EC brightness control detection (v3)

On some new laptop designs a new Nvidia specific WMI interface is present
which gives info about panel brightness control and may allow controlling
the brightness through this interface when the embedded controller is used
for brightness control.

When this WMI interface is present and indicates that the EC is used,
then this interface should be used for brightness control.

Changes in v2:
- Use the new shared nvidia-wmi-ec-backlight.h header for the
  WMI firmware API definitions
- ACPI_VIDEO can now be enabled on non X86 too,
  adjust the Kconfig changes to match this.

Changes in v3:
- Use WMI_BRIGHTNESS_GUID define

Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Daniel Dadap <ddadap@nvidia.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/acpi/Kconfig
drivers/acpi/video_detect.c
drivers/gpu/drm/gma500/Kconfig
drivers/gpu/drm/i915/Kconfig
include/acpi/video.h