drm: Include <linux/of.h> where needed
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 11 Jan 2023 13:01:58 +0000 (14:01 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 13 Jan 2023 12:18:35 +0000 (13:18 +0100)
commitfb28b3f0ecb2393307e5618adb331be5e0f44006
tree06016ad6c48072556aa1ed965c1198bb8b37d3f4
parenta6276e92a037fc2dc888189a97e2b47887160016
drm: Include <linux/of.h> where needed

Include <linux/of.h> in source files that need it. Some of DRM's
source code gets OF header via drm_crtc_helper.h and <linux/fb.h>,
which can leed to unnecessary recompilation.

In drm_modes.c, add a comment on the reason for still including
<linux/fb.h>. The header file is required to get KHZ2PICOS(). The
macro is part of the UAPI headers, so it cannot be moved to a less
prominent location.

v2:
* include <linux/of.h> in komeda_drv.c (kernel test robot)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Liviu Dudau <liviu.dudau@arm.com> # komeda
Acked-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20230111130206.29974-3-tzimmermann@suse.de
drivers/gpu/drm/arm/display/komeda/komeda_drv.c
drivers/gpu/drm/drm_modes.c
drivers/gpu/drm/panel/panel-ronbo-rb070d30.c