summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/gma500
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2023-01-11 14:01:57 +0100
committerThomas Zimmermann <tzimmermann@suse.de>2023-01-13 13:13:57 +0100
commita6276e92a037fc2dc888189a97e2b47887160016 (patch)
tree46a58aa600257e3bee5b8fba5a303e0eb31437ec /drivers/gpu/drm/gma500
parent5b6373de4351debd9fa87f1c46442b2c28d8b18e (diff)
downloadlinux-a6276e92a037fc2dc888189a97e2b47887160016.tar.gz
linux-a6276e92a037fc2dc888189a97e2b47887160016.tar.bz2
linux-a6276e92a037fc2dc888189a97e2b47887160016.zip
drm: Include <linux/backlight.h> where needed
Include <linux/backlight.h> in source files that need it. Some of DRM's source code gets the backlight header via drm_crtc_helper.h and <linux/fb.h>, which can leed to unnecessary recompilation. If possible, do not include drm_crtc_helper.h any longer. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Acked-by: Christian König <christian.koenig@amd.com> # amd Acked-by: Maxime Ripard <maxime@cerno.tech> Link: https://patchwork.freedesktop.org/patch/msgid/20230111130206.29974-2-tzimmermann@suse.de
Diffstat (limited to 'drivers/gpu/drm/gma500')
-rw-r--r--drivers/gpu/drm/gma500/backlight.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/gma500/backlight.c b/drivers/gpu/drm/gma500/backlight.c
index 577a4987b193..8711a7a5b8da 100644
--- a/drivers/gpu/drm/gma500/backlight.c
+++ b/drivers/gpu/drm/gma500/backlight.c
@@ -7,6 +7,8 @@
* Authors: Eric Knopp
*/
+#include <linux/backlight.h>
+
#include <acpi/video.h>
#include "psb_drv.h"