drm/radeon: Fix backlight control on iMac 12,1
authorNicholas Bishop <nicholasbishop@google.com>
Fri, 11 Feb 2022 19:57:39 +0000 (14:57 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Feb 2022 10:56:40 +0000 (11:56 +0100)
commitae5340cdd6f259cbd3f8e938236b7052c5d209e5
treecd03c4f95e7b4b423211bf4bb70b7b4b889db620
parent7e5db6d92197a7fd9d725a6029652b5812a9c8a7
drm/radeon: Fix backlight control on iMac 12,1

commit 364438fd629f7611a84c8e6d7de91659300f1502 upstream.

The iMac 12,1 does not use the gmux driver for backlight, so the radeon
backlight device is needed to set the brightness.

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1838
Signed-off-by: Nicholas Bishop <nicholasbishop@google.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/atombios_encoders.c