drm: Trivial include fixes
Subsystems (5)
Thomas Zimmermann
maintainercover drm: Trivial include fixes
Fix several proxy includes related to <linux/backlight.h>, which in turn includes <linux/fb.h>. This includes several more headers that declare interfaces used by drivers. As backlight.h is expected to not refer to fb.h soon, resolve the proxy includes by including required header files directly.
Thomas Zimmermann (6):
drm/fsl-dcu: Include <linux/of.h>
drm/panel: Include <linux/of.h>
drm/panel: panel-orisetech-otm8009a: Include <linux/mod_devicetable.h> drm/panel: panel-samsung-s6e3ha2: Include <linux/mod_devicetable.h> drm/panel: panel-samsung-s6e63m0: Include <linux/property.h> drm/tiny: panel-mipi-dbi: Include <linux/of.h>
drivers/gpu/drm/drm_panel.c | 1 + drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c | 1 + drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 1 + drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c | 1 + drivers/gpu/drm/panel/panel-samsung-s6e63m0.c | 1 + drivers/gpu/drm/tiny/panel-mipi-dbi.c | 1 + 6 files changed, 6 insertions(+)
Signature · 1 line
2.46.0
Thomas Zimmermann
maintainerPATCH 1/6 drm/fsl-dcu: Include <linux/of.h>
Include <linux/of.h> directly to get of_parse_phandle(). Avoids the proxy include via <linux/backlight.h>
--- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c +1 -0
@@ -6,6 +6,7 @@*/ #include <linux/backlight.h> +#include <linux/of.h> #include <linux/of_graph.h> #include <drm/drm_atomic_helper.h>
Signature · 1 line
2.46.0
Thomas Zimmermann
maintainerRe: [PATCH 1/6] drm/fsl-dcu: Include <linux/of.h>
ping
Am 11.10.24 um 16:41 schrieb Thomas Zimmermann:
Quoted 22 lines
Include <
linux/of.h> directly to getof_parse_phandle(). Avoids the proxy include via <linux/backlight.h>Signed-off-by Thomas Zimmermann <[email protected]>Cc Stefan Agner <[email protected]>Cc Alison Wang <[email protected]>--- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c +1
-0@@ -6,6 +6,7 @@*/ #include <linux/backlight.h> +#include <linux/of.h> #include <linux/of_graph.h> #include <drm/drm_atomic_helper.h>
Signature · 7 lines
-- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman HRB 36809 (AG Nuernberg)
Thomas Zimmermann
maintainerRe: [PATCH 1/6] drm/fsl-dcu: Include <linux/of.h>
In reply to Thomas ZimmermannAm 11.10.24 um 16:41 schrieb Thomas Zimmermann:
Quoted 6 lines
Include <
linux/of.h> directly to getof_parse_phandle(). Avoids the proxy include via <linux/backlight.h>Signed-off-by Thomas Zimmermann <[email protected]>Cc Stefan Agner <[email protected]>Cc Alison Wang <[email protected]>
R-b'ed by Javier via irc
https://dri.freedesktop.org/~cbrill/dri-log/index.php?channel=dri-devel&date=2024-12-13
Quoted 16 lines
--- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c +1
-0@@ -6,6 +6,7 @@*/ #include <linux/backlight.h> +#include <linux/of.h> #include <linux/of_graph.h> #include <drm/drm_atomic_helper.h>
Signature · 7 lines
-- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman HRB 36809 (AG Nuernberg)
Thomas Zimmermann
maintainerPATCH 2/6 drm/panel: Include <linux/of.h>
In reply to Thomas ZimmermannInclude <linux/of.h> directly to get of_device_is_available(). Avoids the proxy include via <linux/backlight.h>
--- drivers/gpu/drm/drm_panel.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/drm_panel.c +1 -0
@@ -24,6 +24,7 @@#include <linux/backlight.h> #include <linux/err.h> #include <linux/module.h> +#include <linux/of.h> #include <drm/drm_crtc.h> #include <drm/drm_panel.h>
Signature · 1 line
2.46.0
Re: [PATCH 2/6] drm/panel: Include <linux/of.h>
Quoted 15 lines · Thomas Zimmermann
Include <
linux/of.h> directly to getof_device_is_available(). Avoids the proxy include via <linux/backlight.h>Signed-off-by Thomas Zimmermann <[email protected]>Cc Neil Armstrong <[email protected]>Cc Jessica Zhang <[email protected]>--- drivers/gpu/drm/drm_panel.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/drm_panel.c +0
-0
drivers/gpu/drm/drm_panel.c line 30
Quoted 7 lines
drivers/gpu/drm/drm_panel.c +1
-0@@ -24,6 +24,7 @@#include <linux/backlight.h> #include <linux/err.h> #include <linux/module.h> +#include <linux/of.h> #include <drm/drm_crtc.h> #include <drm/drm_panel.h>
Thomas Zimmermann
maintainerPATCH 3/6 drm/panel: panel-orisetech-otm8009a: Include <linux/mod_devicetable.h>
In reply to Thomas ZimmermannInclude <linux/mod_devicetable.h> directly to get struct of_device_id. Avoids the proxy include via <linux/backlight.h>
--- drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/panel/panel-orisetech-otm8009a.c +1 -0
@@ -9,6 +9,7 @@#include <linux/backlight.h> #include <linux/delay.h> #include <linux/gpio/consumer.h> +#include <linux/mod_devicetable.h> #include <linux/module.h> #include <linux/regulator/consumer.h>
Signature · 1 line
2.46.0
Re: [PATCH 3/6] drm/panel: panel-orisetech-otm8009a: Include <linux/mod_devicetable.h>
Quoted 15 lines · Thomas Zimmermann
Include <
linux/mod_devicetable.h> directly to get structof_device_id. Avoids the proxy include via <linux/backlight.h>Signed-off-by Thomas Zimmermann <[email protected]>Cc Neil Armstrong <[email protected]>Cc Jessica Zhang <[email protected]>--- drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/panel/panel-orisetech-otm8009a.c +0
-0
drivers/gpu/drm/panel/panel-orisetech-otm8009a.c line 15
Quoted 7 lines
drivers/gpu/drm/panel/panel-orisetech-otm8009a.c +1
-0@@ -9,6 +9,7 @@#include <linux/backlight.h> #include <linux/delay.h> #include <linux/gpio/consumer.h> +#include <linux/mod_devicetable.h> #include <linux/module.h> #include <linux/regulator/consumer.h>
Thomas Zimmermann
maintainerPATCH 4/6 drm/panel: panel-samsung-s6e3ha2: Include <linux/mod_devicetable.h>
In reply to Thomas ZimmermannInclude <linux/mod_devicetable.h> directly to get struct of_device_id. Avoids the proxy include via <linux/backlight.h>
--- drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c +1 -0
@@ -11,6 +11,7 @@#include <linux/backlight.h> #include <linux/delay.h> #include <linux/gpio/consumer.h> +#include <linux/mod_devicetable.h> #include <linux/module.h> #include <linux/regulator/consumer.h>
Signature · 1 line
2.46.0
Re: [PATCH 4/6] drm/panel: panel-samsung-s6e3ha2: Include <linux/mod_devicetable.h>
Quoted 15 lines · Thomas Zimmermann
Include <
linux/mod_devicetable.h> directly to get structof_device_id. Avoids the proxy include via <linux/backlight.h>Signed-off-by Thomas Zimmermann <[email protected]>Cc Neil Armstrong <[email protected]>Cc Jessica Zhang <[email protected]>--- drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c +0
-0
drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c line 17
Quoted 7 lines
drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c +1
-0@@ -11,6 +11,7 @@#include <linux/backlight.h> #include <linux/delay.h> #include <linux/gpio/consumer.h> +#include <linux/mod_devicetable.h> #include <linux/module.h> #include <linux/regulator/consumer.h>
Thomas Zimmermann
maintainerPATCH 5/6 drm/panel: panel-samsung-s6e63m0: Include <linux/property.h>
In reply to Thomas ZimmermannInclude <linux/property.h> directly to get device_property_read_u32(). Avoids the proxy include via <linux/backlight.h>
--- drivers/gpu/drm/panel/panel-samsung-s6e63m0.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/panel/panel-samsung-s6e63m0.c +1 -0
@@ -15,6 +15,7 @@#include <linux/delay.h> #include <linux/gpio/consumer.h> #include <linux/module.h> +#include <linux/property.h> #include <linux/regulator/consumer.h> #include <linux/media-bus-format.h>
Signature · 1 line
2.46.0
Re: [PATCH 5/6] drm/panel: panel-samsung-s6e63m0: Include <linux/property.h>
Quoted 15 lines · Thomas Zimmermann
Include <
linux/property.h> directly to getdevice_property_read_u32(). Avoids the proxy include via <linux/backlight.h>Signed-off-by Thomas Zimmermann <[email protected]>Cc Neil Armstrong <[email protected]>Cc Jessica Zhang <[email protected]>--- drivers/gpu/drm/panel/panel-samsung-s6e63m0.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/panel/panel-samsung-s6e63m0.c +0
-0
drivers/gpu/drm/panel/panel-samsung-s6e63m0.c line 21
Quoted 7 lines
drivers/gpu/drm/panel/panel-samsung-s6e63m0.c +1
-0@@ -15,6 +15,7 @@#include <linux/delay.h> #include <linux/gpio/consumer.h> #include <linux/module.h> +#include <linux/property.h> #include <linux/regulator/consumer.h> #include <linux/media-bus-format.h>
Thomas Zimmermann
maintainerPATCH 6/6 drm/tiny: panel-mipi-dbi: Include <linux/of.h>
In reply to Thomas ZimmermannInclude <linux/of.h> directly to get of_property_read_string_index(). Avoids the proxy include via <linux/backlight.h>
--- drivers/gpu/drm/tiny/panel-mipi-dbi.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/tiny/panel-mipi-dbi.c +1 -0
@@ -10,6 +10,7 @@#include <linux/firmware.h> #include <linux/gpio/consumer.h> #include <linux/module.h> +#include <linux/of.h> #include <linux/property.h> #include <linux/regulator/consumer.h> #include <linux/spi/spi.h>
Signature · 1 line
2.46.0
Re: [PATCH 6/6] drm/tiny: panel-mipi-dbi: Include <linux/of.h>
Quoted 6 lines · Thomas Zimmermann
Include <
linux/of.h> directly to getof_property_read_string_index(). Avoids the proxy include via <linux/backlight.h>Signed-off-by Thomas Zimmermann <[email protected]>Cc "Noralf Trønnes" <[email protected]>---