• Hans de Goede's avatar
    drm/nouveau: Don't register backlight when another backlight should be used (v2) · 7f908d33
    Hans de Goede authored
    Before this commit when we want userspace to use the acpi_video backlight
    device we register both the GPU's native backlight device and acpi_video's
    firmware acpi_video# backlight device. This relies on userspace preferring
    firmware type backlight devices over native ones.
    
    Registering 2 backlight devices for a single display really is
    undesirable, don't register the GPU's native backlight device when
    another backlight device should be used.
    
    Changes in v2:
    - Add nouveau_acpi_video_backlight_use_native() wrapper to avoid unresolved
      symbol errors on non X86
    Reviewed-by: default avatarLyude Paul <lyude@redhat.com>
    Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
    7f908d33
nouveau_acpi.h 991 Bytes