drm: Include <linux/backlight.h> where needed
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 11 Jan 2023 13:01:57 +0000 (14:01 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 13 Jan 2023 12:13:57 +0000 (13:13 +0100)
commita6276e92a037fc2dc888189a97e2b47887160016
tree46a58aa600257e3bee5b8fba5a303e0eb31437ec
parent5b6373de4351debd9fa87f1c46442b2c28d8b18e
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
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/gma500/backlight.c
drivers/gpu/drm/radeon/radeon_acpi.c