linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 12/15] backlight: led_bl: Include <linux/of.h>
  2025-06-24 13:45 [PATCH v2 00/15] " Thomas Zimmermann
@ 2025-06-24 13:45 ` Thomas Zimmermann
  0 siblings, 0 replies; 29+ messages in thread
From: Thomas Zimmermann @ 2025-06-24 13:45 UTC (permalink / raw)
  To: lee, danielt, jingoohan1, neil.armstrong, jessica.zhang,
	maarten.lankhorst, mripard, airlied, simona, fnkl.kernel, j,
	hdegoede, ilpo.jarvinen, sven, alyssa, neal, deller,
	support.opensource, duje.mihanovic
  Cc: dri-devel, asahi, platform-driver-x86, linux-arm-kernel,
	linux-fbdev, Thomas Zimmermann

Include <linux/of.h> to declare struct of_count_phandle_with_args().
Avoids dependency on backlight header to include it.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
---
 drivers/video/backlight/led_bl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/video/backlight/led_bl.c b/drivers/video/backlight/led_bl.c
index d2db157b2c29..44aac5fb2663 100644
--- a/drivers/video/backlight/led_bl.c
+++ b/drivers/video/backlight/led_bl.c
@@ -9,6 +9,7 @@
 #include <linux/backlight.h>
 #include <linux/leds.h>
 #include <linux/module.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 
 struct led_bl_data {
-- 
2.50.0


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [PATCH v2 00/15] backlight: Do not include <linux/fb.h> in header file
@ 2025-07-15 12:24 Thomas Zimmermann
  2025-07-15 12:24 ` [PATCH v2 01/15] platform/x86: dell-uart-backlight: Use blacklight power constant Thomas Zimmermann
                   ` (14 more replies)
  0 siblings, 15 replies; 29+ messages in thread
From: Thomas Zimmermann @ 2025-07-15 12:24 UTC (permalink / raw)
  To: lee, danielt, jingoohan1, neil.armstrong, jessica.zhang, deller,
	maarten.lankhorst, mripard, airlied, simona, fnkl.kernel, j,
	hdegoede, ilpo.jarvinen, sven, alyssa, neal, support.opensource,
	duje.mihanovic
  Cc: dri-devel, asahi, platform-driver-x86, linux-arm-kernel,
	linux-fbdev, Thomas Zimmermann

Remove the final dependencies on fbdev from the backlight subsystem.
This is really just the include of <linux/fb.h> in backlight, but it
has some fallout in other code.

Patches 1 to 14 fix all the implicit includes that come from fb.h
throughout the kernel. It's all trivial, but touches various drivers.
Maintainers are in CC. Patch 15 fixes the backlight header.

With the series applied the backlight subsystem should be free from
fbdev dependencies.

v2:
- add missing clean ups in jornada720, rave-sp, rt4831

Thomas Zimmermann (15):
  platform/x86: dell-uart-backlight: Use blacklight power constant
  drm/panel: panel-samsung-s6e63m0: Include <linux/of.h>
  drm/panel: panel-samsung-s6e88a0-ams427ap24: Include <linux/of.h>
  drm/panel: panel-summit: Include <linux/of.h>
  fbcon: Add necessary include statements and forward declarations
  backlight: Include <linux/of.h>
  backlight: apple_dwi_bl: Include <linux/mod_devicetable.h>
  backlight: as3711_bl: Include <linux/of.h>
  backlight: da9052_bl: Include <linux/mod_devicetable.h>
  backlight: jornada720: Include <linux/io.h>
  backlight: ktd2801: Include <linux/mod_devicetable.h>
  backlight: led_bl: Include <linux/of.h>
  backlight: rave-sp: Include <linux/of.h> and <linux/mod_devicetable.h>
  backlight: rt4831: Include <linux/mod_devicetable.h>
  backlight: Do not include <linux/fb.h> in header file

 drivers/gpu/drm/panel/panel-samsung-s6e63m0.c            | 1 +
 drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams427ap24.c | 1 +
 drivers/gpu/drm/panel/panel-summit.c                     | 1 +
 drivers/platform/x86/dell/dell-uart-backlight.c          | 2 +-
 drivers/video/backlight/apple_dwi_bl.c                   | 1 +
 drivers/video/backlight/as3711_bl.c                      | 1 +
 drivers/video/backlight/backlight.c                      | 1 +
 drivers/video/backlight/da9052_bl.c                      | 1 +
 drivers/video/backlight/jornada720_bl.c                  | 1 +
 drivers/video/backlight/ktd2801-backlight.c              | 1 +
 drivers/video/backlight/led_bl.c                         | 1 +
 drivers/video/backlight/rave-sp-backlight.c              | 2 ++
 drivers/video/backlight/rt4831-backlight.c               | 1 +
 include/linux/backlight.h                                | 1 -
 include/linux/fbcon.h                                    | 7 +++++++
 15 files changed, 21 insertions(+), 2 deletions(-)

-- 
2.50.0


^ permalink raw reply	[flat|nested] 29+ messages in thread

* [PATCH v2 01/15] platform/x86: dell-uart-backlight: Use blacklight power constant
  2025-07-15 12:24 [PATCH v2 00/15] backlight: Do not include <linux/fb.h> in header file Thomas Zimmermann
@ 2025-07-15 12:24 ` Thomas Zimmermann
  2025-07-21 11:43   ` Ilpo Järvinen
  2025-07-15 12:24 ` [PATCH v2 02/15] drm/panel: panel-samsung-s6e63m0: Include <linux/of.h> Thomas Zimmermann
                   ` (13 subsequent siblings)
  14 siblings, 1 reply; 29+ messages in thread
From: Thomas Zimmermann @ 2025-07-15 12:24 UTC (permalink / raw)
  To: lee, danielt, jingoohan1, neil.armstrong, jessica.zhang, deller,
	maarten.lankhorst, mripard, airlied, simona, fnkl.kernel, j,
	hdegoede, ilpo.jarvinen, sven, alyssa, neal, support.opensource,
	duje.mihanovic
  Cc: dri-devel, asahi, platform-driver-x86, linux-arm-kernel,
	linux-fbdev, Thomas Zimmermann, Hans de Goede

The backlight subsystem has gotten its own power constants. Replace
FB_BLANK_UNBLANK with BACKLIGHT_POWER_ON.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Hans de Goede <hansg@kernel.org>
Acked-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
---
 drivers/platform/x86/dell/dell-uart-backlight.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/platform/x86/dell/dell-uart-backlight.c b/drivers/platform/x86/dell/dell-uart-backlight.c
index 8f868f845350..f323a667dc2d 100644
--- a/drivers/platform/x86/dell/dell-uart-backlight.c
+++ b/drivers/platform/x86/dell/dell-uart-backlight.c
@@ -305,7 +305,7 @@ static int dell_uart_bl_serdev_probe(struct serdev_device *serdev)
 	dev_dbg(dev, "Firmware version: %.*s\n", resp[RESP_LEN] - 3, resp + RESP_DATA);
 
 	/* Initialize bl_power to a known value */
-	ret = dell_uart_set_bl_power(dell_bl, FB_BLANK_UNBLANK);
+	ret = dell_uart_set_bl_power(dell_bl, BACKLIGHT_POWER_ON);
 	if (ret)
 		return ret;
 
-- 
2.50.0


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [PATCH v2 02/15] drm/panel: panel-samsung-s6e63m0: Include <linux/of.h>
  2025-07-15 12:24 [PATCH v2 00/15] backlight: Do not include <linux/fb.h> in header file Thomas Zimmermann
  2025-07-15 12:24 ` [PATCH v2 01/15] platform/x86: dell-uart-backlight: Use blacklight power constant Thomas Zimmermann
@ 2025-07-15 12:24 ` Thomas Zimmermann
  2025-07-15 13:19   ` Simona Vetter
  2025-07-15 23:43   ` Sebastian Reichel
  2025-07-15 12:24 ` [PATCH v2 03/15] drm/panel: panel-samsung-s6e88a0-ams427ap24: " Thomas Zimmermann
                   ` (12 subsequent siblings)
  14 siblings, 2 replies; 29+ messages in thread
From: Thomas Zimmermann @ 2025-07-15 12:24 UTC (permalink / raw)
  To: lee, danielt, jingoohan1, neil.armstrong, jessica.zhang, deller,
	maarten.lankhorst, mripard, airlied, simona, fnkl.kernel, j,
	hdegoede, ilpo.jarvinen, sven, alyssa, neal, support.opensource,
	duje.mihanovic
  Cc: dri-devel, asahi, platform-driver-x86, linux-arm-kernel,
	linux-fbdev, Thomas Zimmermann

Include <linux/of.h> to declare device_property_read_u32(). Avoids
dependency on backlight header to include it.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
---
 drivers/gpu/drm/panel/panel-samsung-s6e63m0.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c b/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c
index ea241c89593b..930948cb615f 100644
--- a/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c
+++ b/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c
@@ -16,6 +16,7 @@
 #include <linux/export.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/media-bus-format.h>
-- 
2.50.0


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [PATCH v2 03/15] drm/panel: panel-samsung-s6e88a0-ams427ap24: Include <linux/of.h>
  2025-07-15 12:24 [PATCH v2 00/15] backlight: Do not include <linux/fb.h> in header file Thomas Zimmermann
  2025-07-15 12:24 ` [PATCH v2 01/15] platform/x86: dell-uart-backlight: Use blacklight power constant Thomas Zimmermann
  2025-07-15 12:24 ` [PATCH v2 02/15] drm/panel: panel-samsung-s6e63m0: Include <linux/of.h> Thomas Zimmermann
@ 2025-07-15 12:24 ` Thomas Zimmermann
  2025-07-15 12:24 ` [PATCH v2 04/15] drm/panel: panel-summit: " Thomas Zimmermann
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 29+ messages in thread
From: Thomas Zimmermann @ 2025-07-15 12:24 UTC (permalink / raw)
  To: lee, danielt, jingoohan1, neil.armstrong, jessica.zhang, deller,
	maarten.lankhorst, mripard, airlied, simona, fnkl.kernel, j,
	hdegoede, ilpo.jarvinen, sven, alyssa, neal, support.opensource,
	duje.mihanovic
  Cc: dri-devel, asahi, platform-driver-x86, linux-arm-kernel,
	linux-fbdev, Thomas Zimmermann

Include <linux/of.h> to declare device_property_read_bool(). Avoids
dependency on backlight header to include it.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
---
 drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams427ap24.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams427ap24.c b/drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams427ap24.c
index e91f50662997..b6d04f8ad561 100644
--- a/drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams427ap24.c
+++ b/drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams427ap24.c
@@ -8,6 +8,7 @@
 #include <linux/delay.h>
 #include <linux/gpio/consumer.h>
 #include <linux/module.h>
+#include <linux/of.h>
 #include <linux/regulator/consumer.h>
 
 #include <video/mipi_display.h>
-- 
2.50.0


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [PATCH v2 04/15] drm/panel: panel-summit: Include <linux/of.h>
  2025-07-15 12:24 [PATCH v2 00/15] backlight: Do not include <linux/fb.h> in header file Thomas Zimmermann
                   ` (2 preceding siblings ...)
  2025-07-15 12:24 ` [PATCH v2 03/15] drm/panel: panel-samsung-s6e88a0-ams427ap24: " Thomas Zimmermann
@ 2025-07-15 12:24 ` Thomas Zimmermann
  2025-07-15 13:28   ` Rob Herring
  2025-07-15 12:24 ` [PATCH v2 05/15] fbcon: Add necessary include statements and forward declarations Thomas Zimmermann
                   ` (10 subsequent siblings)
  14 siblings, 1 reply; 29+ messages in thread
From: Thomas Zimmermann @ 2025-07-15 12:24 UTC (permalink / raw)
  To: lee, danielt, jingoohan1, neil.armstrong, jessica.zhang, deller,
	maarten.lankhorst, mripard, airlied, simona, fnkl.kernel, j,
	hdegoede, ilpo.jarvinen, sven, alyssa, neal, support.opensource,
	duje.mihanovic
  Cc: dri-devel, asahi, platform-driver-x86, linux-arm-kernel,
	linux-fbdev, Thomas Zimmermann

Include <linux/of.h> to declare device_property_read_u32() and
struct of_device_id. Avoids dependency on backlight header to include
it.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Janne Grunau <j@jannau.net>
---
 drivers/gpu/drm/panel/panel-summit.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/panel/panel-summit.c b/drivers/gpu/drm/panel/panel-summit.c
index 4854437e2899..02aa1ec287d6 100644
--- a/drivers/gpu/drm/panel/panel-summit.c
+++ b/drivers/gpu/drm/panel/panel-summit.c
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-only
 
 #include <linux/backlight.h>
+#include <linux/of.h>
 #include <drm/drm_device.h>
 #include <drm/drm_mipi_dsi.h>
 #include <drm/drm_mode.h>
-- 
2.50.0


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [PATCH v2 05/15] fbcon: Add necessary include statements and forward declarations
  2025-07-15 12:24 [PATCH v2 00/15] backlight: Do not include <linux/fb.h> in header file Thomas Zimmermann
                   ` (3 preceding siblings ...)
  2025-07-15 12:24 ` [PATCH v2 04/15] drm/panel: panel-summit: " Thomas Zimmermann
@ 2025-07-15 12:24 ` Thomas Zimmermann
  2025-07-15 13:20   ` Simona Vetter
  2025-07-15 12:24 ` [PATCH v2 06/15] backlight: Include <linux/of.h> Thomas Zimmermann
                   ` (9 subsequent siblings)
  14 siblings, 1 reply; 29+ messages in thread
From: Thomas Zimmermann @ 2025-07-15 12:24 UTC (permalink / raw)
  To: lee, danielt, jingoohan1, neil.armstrong, jessica.zhang, deller,
	maarten.lankhorst, mripard, airlied, simona, fnkl.kernel, j,
	hdegoede, ilpo.jarvinen, sven, alyssa, neal, support.opensource,
	duje.mihanovic
  Cc: dri-devel, asahi, platform-driver-x86, linux-arm-kernel,
	linux-fbdev, Thomas Zimmermann

Make the header self contained for including.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
---
 include/linux/fbcon.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/include/linux/fbcon.h b/include/linux/fbcon.h
index 2382dec6d6ab..81f0e698acbf 100644
--- a/include/linux/fbcon.h
+++ b/include/linux/fbcon.h
@@ -1,6 +1,13 @@
 #ifndef _LINUX_FBCON_H
 #define _LINUX_FBCON_H
 
+#include <linux/compiler_types.h>
+
+struct fb_blit_caps;
+struct fb_info;
+struct fb_var_screeninfo;
+struct fb_videomode;
+
 #ifdef CONFIG_FRAMEBUFFER_CONSOLE
 void __init fb_console_init(void);
 void __exit fb_console_exit(void);
-- 
2.50.0


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [PATCH v2 06/15] backlight: Include <linux/of.h>
  2025-07-15 12:24 [PATCH v2 00/15] backlight: Do not include <linux/fb.h> in header file Thomas Zimmermann
                   ` (4 preceding siblings ...)
  2025-07-15 12:24 ` [PATCH v2 05/15] fbcon: Add necessary include statements and forward declarations Thomas Zimmermann
@ 2025-07-15 12:24 ` Thomas Zimmermann
  2025-07-15 12:24 ` [PATCH v2 07/15] backlight: apple_dwi_bl: Include <linux/mod_devicetable.h> Thomas Zimmermann
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 29+ messages in thread
From: Thomas Zimmermann @ 2025-07-15 12:24 UTC (permalink / raw)
  To: lee, danielt, jingoohan1, neil.armstrong, jessica.zhang, deller,
	maarten.lankhorst, mripard, airlied, simona, fnkl.kernel, j,
	hdegoede, ilpo.jarvinen, sven, alyssa, neal, support.opensource,
	duje.mihanovic
  Cc: dri-devel, asahi, platform-driver-x86, linux-arm-kernel,
	linux-fbdev, Thomas Zimmermann

Include <linux/of.h> to avoid dependency on backlight header to
include it.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
---
 drivers/video/backlight/backlight.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/video/backlight/backlight.c b/drivers/video/backlight/backlight.c
index 9dc93c5e480b..1e9b7e85d99a 100644
--- a/drivers/video/backlight/backlight.c
+++ b/drivers/video/backlight/backlight.c
@@ -16,6 +16,7 @@
 #include <linux/ctype.h>
 #include <linux/err.h>
 #include <linux/slab.h>
+#include <linux/of.h>
 
 #ifdef CONFIG_PMAC_BACKLIGHT
 #include <asm/backlight.h>
-- 
2.50.0


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [PATCH v2 07/15] backlight: apple_dwi_bl: Include <linux/mod_devicetable.h>
  2025-07-15 12:24 [PATCH v2 00/15] backlight: Do not include <linux/fb.h> in header file Thomas Zimmermann
                   ` (5 preceding siblings ...)
  2025-07-15 12:24 ` [PATCH v2 06/15] backlight: Include <linux/of.h> Thomas Zimmermann
@ 2025-07-15 12:24 ` Thomas Zimmermann
  2025-07-15 12:24 ` [PATCH v2 08/15] backlight: as3711_bl: Include <linux/of.h> Thomas Zimmermann
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 29+ messages in thread
From: Thomas Zimmermann @ 2025-07-15 12:24 UTC (permalink / raw)
  To: lee, danielt, jingoohan1, neil.armstrong, jessica.zhang, deller,
	maarten.lankhorst, mripard, airlied, simona, fnkl.kernel, j,
	hdegoede, ilpo.jarvinen, sven, alyssa, neal, support.opensource,
	duje.mihanovic
  Cc: dri-devel, asahi, platform-driver-x86, linux-arm-kernel,
	linux-fbdev, Thomas Zimmermann, Nick Chan

Include <linux/mod_devicetable.h> to declare struct of_device_id.
Avoids dependency on backlight header to include it.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Nick Chan <towinchenmi@gmail.com>
---
 drivers/video/backlight/apple_dwi_bl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/video/backlight/apple_dwi_bl.c b/drivers/video/backlight/apple_dwi_bl.c
index 93bd744972d6..ed8bf13d3f51 100644
--- a/drivers/video/backlight/apple_dwi_bl.c
+++ b/drivers/video/backlight/apple_dwi_bl.c
@@ -9,6 +9,7 @@
 #include <linux/bitfield.h>
 #include <linux/device.h>
 #include <linux/io.h>
+#include <linux/mod_devicetable.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>
 
-- 
2.50.0


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [PATCH v2 08/15] backlight: as3711_bl: Include <linux/of.h>
  2025-07-15 12:24 [PATCH v2 00/15] backlight: Do not include <linux/fb.h> in header file Thomas Zimmermann
                   ` (6 preceding siblings ...)
  2025-07-15 12:24 ` [PATCH v2 07/15] backlight: apple_dwi_bl: Include <linux/mod_devicetable.h> Thomas Zimmermann
@ 2025-07-15 12:24 ` Thomas Zimmermann
  2025-07-15 12:24 ` [PATCH v2 09/15] backlight: da9052_bl: Include <linux/mod_devicetable.h> Thomas Zimmermann
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 29+ messages in thread
From: Thomas Zimmermann @ 2025-07-15 12:24 UTC (permalink / raw)
  To: lee, danielt, jingoohan1, neil.armstrong, jessica.zhang, deller,
	maarten.lankhorst, mripard, airlied, simona, fnkl.kernel, j,
	hdegoede, ilpo.jarvinen, sven, alyssa, neal, support.opensource,
	duje.mihanovic
  Cc: dri-devel, asahi, platform-driver-x86, linux-arm-kernel,
	linux-fbdev, Thomas Zimmermann

Include <linux/of.h> to declare various OF helpers. Avoids dependency
on backlight header to include it.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
---
 drivers/video/backlight/as3711_bl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/video/backlight/as3711_bl.c b/drivers/video/backlight/as3711_bl.c
index 9f89eb19894e..753160bbc3e7 100644
--- a/drivers/video/backlight/as3711_bl.c
+++ b/drivers/video/backlight/as3711_bl.c
@@ -13,6 +13,7 @@
 #include <linux/kernel.h>
 #include <linux/mfd/as3711.h>
 #include <linux/module.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
 #include <linux/slab.h>
-- 
2.50.0


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [PATCH v2 09/15] backlight: da9052_bl: Include <linux/mod_devicetable.h>
  2025-07-15 12:24 [PATCH v2 00/15] backlight: Do not include <linux/fb.h> in header file Thomas Zimmermann
                   ` (7 preceding siblings ...)
  2025-07-15 12:24 ` [PATCH v2 08/15] backlight: as3711_bl: Include <linux/of.h> Thomas Zimmermann
@ 2025-07-15 12:24 ` Thomas Zimmermann
  2025-07-15 12:24 ` [PATCH v2 10/15] backlight: jornada720: Include <linux/io.h> Thomas Zimmermann
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 29+ messages in thread
From: Thomas Zimmermann @ 2025-07-15 12:24 UTC (permalink / raw)
  To: lee, danielt, jingoohan1, neil.armstrong, jessica.zhang, deller,
	maarten.lankhorst, mripard, airlied, simona, fnkl.kernel, j,
	hdegoede, ilpo.jarvinen, sven, alyssa, neal, support.opensource,
	duje.mihanovic
  Cc: dri-devel, asahi, platform-driver-x86, linux-arm-kernel,
	linux-fbdev, Thomas Zimmermann

Include <linux/mod_devicetable.h> to declare struct platform_device_id.
Avoids dependency on backlight header to include it.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
---
 drivers/video/backlight/da9052_bl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/video/backlight/da9052_bl.c b/drivers/video/backlight/da9052_bl.c
index f41523d78121..2493138febfa 100644
--- a/drivers/video/backlight/da9052_bl.c
+++ b/drivers/video/backlight/da9052_bl.c
@@ -9,6 +9,7 @@
 
 #include <linux/backlight.h>
 #include <linux/delay.h>
+#include <linux/mod_devicetable.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>
 
-- 
2.50.0


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [PATCH v2 10/15] backlight: jornada720: Include <linux/io.h>
  2025-07-15 12:24 [PATCH v2 00/15] backlight: Do not include <linux/fb.h> in header file Thomas Zimmermann
                   ` (8 preceding siblings ...)
  2025-07-15 12:24 ` [PATCH v2 09/15] backlight: da9052_bl: Include <linux/mod_devicetable.h> Thomas Zimmermann
@ 2025-07-15 12:24 ` Thomas Zimmermann
  2025-07-15 12:24 ` [PATCH v2 11/15] backlight: ktd2801: Include <linux/mod_devicetable.h> Thomas Zimmermann
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 29+ messages in thread
From: Thomas Zimmermann @ 2025-07-15 12:24 UTC (permalink / raw)
  To: lee, danielt, jingoohan1, neil.armstrong, jessica.zhang, deller,
	maarten.lankhorst, mripard, airlied, simona, fnkl.kernel, j,
	hdegoede, ilpo.jarvinen, sven, alyssa, neal, support.opensource,
	duje.mihanovic
  Cc: dri-devel, asahi, platform-driver-x86, linux-arm-kernel,
	linux-fbdev, Thomas Zimmermann

Include <linux/io.h> to declare IOMEM(). Avoids dependency on
backlight header to include it.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
---
 drivers/video/backlight/jornada720_bl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/video/backlight/jornada720_bl.c b/drivers/video/backlight/jornada720_bl.c
index e28d2c071798..bbb65fdaddc7 100644
--- a/drivers/video/backlight/jornada720_bl.c
+++ b/drivers/video/backlight/jornada720_bl.c
@@ -7,6 +7,7 @@
 
 #include <linux/backlight.h>
 #include <linux/device.h>
+#include <linux/io.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>
-- 
2.50.0


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [PATCH v2 11/15] backlight: ktd2801: Include <linux/mod_devicetable.h>
  2025-07-15 12:24 [PATCH v2 00/15] backlight: Do not include <linux/fb.h> in header file Thomas Zimmermann
                   ` (9 preceding siblings ...)
  2025-07-15 12:24 ` [PATCH v2 10/15] backlight: jornada720: Include <linux/io.h> Thomas Zimmermann
@ 2025-07-15 12:24 ` Thomas Zimmermann
  2025-07-15 12:24 ` [PATCH v2 12/15] backlight: led_bl: Include <linux/of.h> Thomas Zimmermann
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 29+ messages in thread
From: Thomas Zimmermann @ 2025-07-15 12:24 UTC (permalink / raw)
  To: lee, danielt, jingoohan1, neil.armstrong, jessica.zhang, deller,
	maarten.lankhorst, mripard, airlied, simona, fnkl.kernel, j,
	hdegoede, ilpo.jarvinen, sven, alyssa, neal, support.opensource,
	duje.mihanovic
  Cc: dri-devel, asahi, platform-driver-x86, linux-arm-kernel,
	linux-fbdev, Thomas Zimmermann, Nick Chan

Include <linux/mod_devicetable.h> to declare struct of_device_id.
Avoids dependency on backlight header to include it.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Nick Chan <towinchenmi@gmail.com>
---
 drivers/video/backlight/ktd2801-backlight.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/video/backlight/ktd2801-backlight.c b/drivers/video/backlight/ktd2801-backlight.c
index 0489b0615ceb..17eac1b3bce4 100644
--- a/drivers/video/backlight/ktd2801-backlight.c
+++ b/drivers/video/backlight/ktd2801-backlight.c
@@ -6,6 +6,7 @@
 #include <linux/backlight.h>
 #include <linux/gpio/consumer.h>
 #include <linux/leds-expresswire.h>
+#include <linux/mod_devicetable.h>
 #include <linux/platform_device.h>
 #include <linux/property.h>
 
-- 
2.50.0


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [PATCH v2 12/15] backlight: led_bl: Include <linux/of.h>
  2025-07-15 12:24 [PATCH v2 00/15] backlight: Do not include <linux/fb.h> in header file Thomas Zimmermann
                   ` (10 preceding siblings ...)
  2025-07-15 12:24 ` [PATCH v2 11/15] backlight: ktd2801: Include <linux/mod_devicetable.h> Thomas Zimmermann
@ 2025-07-15 12:24 ` Thomas Zimmermann
  2025-07-15 12:24 ` [PATCH v2 13/15] backlight: rave-sp: Include <linux/of.h> and <linux/mod_devicetable.h> Thomas Zimmermann
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 29+ messages in thread
From: Thomas Zimmermann @ 2025-07-15 12:24 UTC (permalink / raw)
  To: lee, danielt, jingoohan1, neil.armstrong, jessica.zhang, deller,
	maarten.lankhorst, mripard, airlied, simona, fnkl.kernel, j,
	hdegoede, ilpo.jarvinen, sven, alyssa, neal, support.opensource,
	duje.mihanovic
  Cc: dri-devel, asahi, platform-driver-x86, linux-arm-kernel,
	linux-fbdev, Thomas Zimmermann

Include <linux/of.h> to declare struct of_count_phandle_with_args().
Avoids dependency on backlight header to include it.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
---
 drivers/video/backlight/led_bl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/video/backlight/led_bl.c b/drivers/video/backlight/led_bl.c
index d2db157b2c29..44aac5fb2663 100644
--- a/drivers/video/backlight/led_bl.c
+++ b/drivers/video/backlight/led_bl.c
@@ -9,6 +9,7 @@
 #include <linux/backlight.h>
 #include <linux/leds.h>
 #include <linux/module.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 
 struct led_bl_data {
-- 
2.50.0


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [PATCH v2 13/15] backlight: rave-sp: Include <linux/of.h> and <linux/mod_devicetable.h>
  2025-07-15 12:24 [PATCH v2 00/15] backlight: Do not include <linux/fb.h> in header file Thomas Zimmermann
                   ` (11 preceding siblings ...)
  2025-07-15 12:24 ` [PATCH v2 12/15] backlight: led_bl: Include <linux/of.h> Thomas Zimmermann
@ 2025-07-15 12:24 ` Thomas Zimmermann
  2025-07-15 13:34   ` Rob Herring
  2025-07-15 12:24 ` [PATCH v2 14/15] backlight: rt4831: Include <linux/mod_devicetable.h> Thomas Zimmermann
  2025-07-15 12:24 ` [PATCH v2 15/15] backlight: Do not include <linux/fb.h> in header file Thomas Zimmermann
  14 siblings, 1 reply; 29+ messages in thread
From: Thomas Zimmermann @ 2025-07-15 12:24 UTC (permalink / raw)
  To: lee, danielt, jingoohan1, neil.armstrong, jessica.zhang, deller,
	maarten.lankhorst, mripard, airlied, simona, fnkl.kernel, j,
	hdegoede, ilpo.jarvinen, sven, alyssa, neal, support.opensource,
	duje.mihanovic
  Cc: dri-devel, asahi, platform-driver-x86, linux-arm-kernel,
	linux-fbdev, Thomas Zimmermann

Include <linux/of.h> to declare struct device_node and include
<linux/mod_devicetable.h> to declare struct of_device_id. Avoids
dependency on backlight header to include it.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
---
 drivers/video/backlight/rave-sp-backlight.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/video/backlight/rave-sp-backlight.c b/drivers/video/backlight/rave-sp-backlight.c
index e708a060a6e4..bfe01b9b9174 100644
--- a/drivers/video/backlight/rave-sp-backlight.c
+++ b/drivers/video/backlight/rave-sp-backlight.c
@@ -9,8 +9,10 @@
 
 #include <linux/backlight.h>
 #include <linux/kernel.h>
+#include <linux/mod_devicetable.h>
 #include <linux/module.h>
 #include <linux/mfd/rave-sp.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 
 #define	RAVE_SP_BACKLIGHT_LCD_EN	BIT(7)
-- 
2.50.0


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [PATCH v2 14/15] backlight: rt4831: Include <linux/mod_devicetable.h>
  2025-07-15 12:24 [PATCH v2 00/15] backlight: Do not include <linux/fb.h> in header file Thomas Zimmermann
                   ` (12 preceding siblings ...)
  2025-07-15 12:24 ` [PATCH v2 13/15] backlight: rave-sp: Include <linux/of.h> and <linux/mod_devicetable.h> Thomas Zimmermann
@ 2025-07-15 12:24 ` Thomas Zimmermann
  2025-07-15 12:24 ` [PATCH v2 15/15] backlight: Do not include <linux/fb.h> in header file Thomas Zimmermann
  14 siblings, 0 replies; 29+ messages in thread
From: Thomas Zimmermann @ 2025-07-15 12:24 UTC (permalink / raw)
  To: lee, danielt, jingoohan1, neil.armstrong, jessica.zhang, deller,
	maarten.lankhorst, mripard, airlied, simona, fnkl.kernel, j,
	hdegoede, ilpo.jarvinen, sven, alyssa, neal, support.opensource,
	duje.mihanovic
  Cc: dri-devel, asahi, platform-driver-x86, linux-arm-kernel,
	linux-fbdev, Thomas Zimmermann

Include <linux/mod_devicetable.h> to declare struct of_device_id.
Avoids dependency on backlight header to include it.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
---
 drivers/video/backlight/rt4831-backlight.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/video/backlight/rt4831-backlight.c b/drivers/video/backlight/rt4831-backlight.c
index 7ead75929a43..26214519bfce 100644
--- a/drivers/video/backlight/rt4831-backlight.c
+++ b/drivers/video/backlight/rt4831-backlight.c
@@ -4,6 +4,7 @@
 #include <linux/backlight.h>
 #include <linux/bitops.h>
 #include <linux/kernel.h>
+#include <linux/mod_devicetable.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>
 #include <linux/property.h>
-- 
2.50.0


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [PATCH v2 15/15] backlight: Do not include <linux/fb.h> in header file
  2025-07-15 12:24 [PATCH v2 00/15] backlight: Do not include <linux/fb.h> in header file Thomas Zimmermann
                   ` (13 preceding siblings ...)
  2025-07-15 12:24 ` [PATCH v2 14/15] backlight: rt4831: Include <linux/mod_devicetable.h> Thomas Zimmermann
@ 2025-07-15 12:24 ` Thomas Zimmermann
  2025-07-15 13:22   ` Simona Vetter
  14 siblings, 1 reply; 29+ messages in thread
From: Thomas Zimmermann @ 2025-07-15 12:24 UTC (permalink / raw)
  To: lee, danielt, jingoohan1, neil.armstrong, jessica.zhang, deller,
	maarten.lankhorst, mripard, airlied, simona, fnkl.kernel, j,
	hdegoede, ilpo.jarvinen, sven, alyssa, neal, support.opensource,
	duje.mihanovic
  Cc: dri-devel, asahi, platform-driver-x86, linux-arm-kernel,
	linux-fbdev, Thomas Zimmermann

The backlight interfaces don't require anything from <linux/fb.h>, so
don't include it.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
---
 include/linux/backlight.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/include/linux/backlight.h b/include/linux/backlight.h
index 10e626db7eee..f29a9ef1052e 100644
--- a/include/linux/backlight.h
+++ b/include/linux/backlight.h
@@ -10,7 +10,6 @@
 #define _LINUX_BACKLIGHT_H
 
 #include <linux/device.h>
-#include <linux/fb.h>
 #include <linux/mutex.h>
 #include <linux/types.h>
 
-- 
2.50.0


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* Re: [PATCH v2 02/15] drm/panel: panel-samsung-s6e63m0: Include <linux/of.h>
  2025-07-15 12:24 ` [PATCH v2 02/15] drm/panel: panel-samsung-s6e63m0: Include <linux/of.h> Thomas Zimmermann
@ 2025-07-15 13:19   ` Simona Vetter
  2025-07-15 23:43   ` Sebastian Reichel
  1 sibling, 0 replies; 29+ messages in thread
From: Simona Vetter @ 2025-07-15 13:19 UTC (permalink / raw)
  To: Thomas Zimmermann
  Cc: lee, danielt, jingoohan1, neil.armstrong, jessica.zhang, deller,
	maarten.lankhorst, mripard, airlied, simona, fnkl.kernel, j,
	hdegoede, ilpo.jarvinen, sven, alyssa, neal, support.opensource,
	duje.mihanovic, dri-devel, asahi, platform-driver-x86,
	linux-arm-kernel, linux-fbdev

On Tue, Jul 15, 2025 at 02:24:39PM +0200, Thomas Zimmermann wrote:
> Include <linux/of.h> to declare device_property_read_u32(). Avoids
> dependency on backlight header to include it.
> 
> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>

Reviewed-by: Simona Vetter <simona.vetter@ffwll.ch>

> ---
>  drivers/gpu/drm/panel/panel-samsung-s6e63m0.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c b/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c
> index ea241c89593b..930948cb615f 100644
> --- a/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c
> +++ b/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c
> @@ -16,6 +16,7 @@
>  #include <linux/export.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/media-bus-format.h>
> -- 
> 2.50.0
> 

-- 
Simona Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: [PATCH v2 05/15] fbcon: Add necessary include statements and forward declarations
  2025-07-15 12:24 ` [PATCH v2 05/15] fbcon: Add necessary include statements and forward declarations Thomas Zimmermann
@ 2025-07-15 13:20   ` Simona Vetter
  0 siblings, 0 replies; 29+ messages in thread
From: Simona Vetter @ 2025-07-15 13:20 UTC (permalink / raw)
  To: Thomas Zimmermann
  Cc: lee, danielt, jingoohan1, neil.armstrong, jessica.zhang, deller,
	maarten.lankhorst, mripard, airlied, simona, fnkl.kernel, j,
	hdegoede, ilpo.jarvinen, sven, alyssa, neal, support.opensource,
	duje.mihanovic, dri-devel, asahi, platform-driver-x86,
	linux-arm-kernel, linux-fbdev

On Tue, Jul 15, 2025 at 02:24:42PM +0200, Thomas Zimmermann wrote:
> Make the header self contained for including.
> 
> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>

Reviewed-by: Simona Vetter <simona.vetter@ffwll.ch>

> ---
>  include/linux/fbcon.h | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/include/linux/fbcon.h b/include/linux/fbcon.h
> index 2382dec6d6ab..81f0e698acbf 100644
> --- a/include/linux/fbcon.h
> +++ b/include/linux/fbcon.h
> @@ -1,6 +1,13 @@
>  #ifndef _LINUX_FBCON_H
>  #define _LINUX_FBCON_H
>  
> +#include <linux/compiler_types.h>
> +
> +struct fb_blit_caps;
> +struct fb_info;
> +struct fb_var_screeninfo;
> +struct fb_videomode;
> +
>  #ifdef CONFIG_FRAMEBUFFER_CONSOLE
>  void __init fb_console_init(void);
>  void __exit fb_console_exit(void);
> -- 
> 2.50.0
> 

-- 
Simona Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: [PATCH v2 15/15] backlight: Do not include <linux/fb.h> in header file
  2025-07-15 12:24 ` [PATCH v2 15/15] backlight: Do not include <linux/fb.h> in header file Thomas Zimmermann
@ 2025-07-15 13:22   ` Simona Vetter
  2025-07-16  6:44     ` Thomas Zimmermann
  0 siblings, 1 reply; 29+ messages in thread
From: Simona Vetter @ 2025-07-15 13:22 UTC (permalink / raw)
  To: Thomas Zimmermann
  Cc: lee, danielt, jingoohan1, neil.armstrong, jessica.zhang, deller,
	maarten.lankhorst, mripard, airlied, simona, fnkl.kernel, j,
	hdegoede, ilpo.jarvinen, sven, alyssa, neal, support.opensource,
	duje.mihanovic, dri-devel, asahi, platform-driver-x86,
	linux-arm-kernel, linux-fbdev

On Tue, Jul 15, 2025 at 02:24:52PM +0200, Thomas Zimmermann wrote:
> The backlight interfaces don't require anything from <linux/fb.h>, so
> don't include it.
> 
> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>

I like this very much.

Reviewed-by: Simona Vetter <simona.vetter@ffwll.ch>

I guess also my Acked-by for merging the entire pile through the backlight
subsystem, that's probably the easiest path to land this all.

Cheers, Sima

> ---
>  include/linux/backlight.h | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/include/linux/backlight.h b/include/linux/backlight.h
> index 10e626db7eee..f29a9ef1052e 100644
> --- a/include/linux/backlight.h
> +++ b/include/linux/backlight.h
> @@ -10,7 +10,6 @@
>  #define _LINUX_BACKLIGHT_H
>  
>  #include <linux/device.h>
> -#include <linux/fb.h>
>  #include <linux/mutex.h>
>  #include <linux/types.h>
>  
> -- 
> 2.50.0
> 

-- 
Simona Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: [PATCH v2 04/15] drm/panel: panel-summit: Include <linux/of.h>
  2025-07-15 12:24 ` [PATCH v2 04/15] drm/panel: panel-summit: " Thomas Zimmermann
@ 2025-07-15 13:28   ` Rob Herring
  0 siblings, 0 replies; 29+ messages in thread
From: Rob Herring @ 2025-07-15 13:28 UTC (permalink / raw)
  To: Thomas Zimmermann
  Cc: lee, danielt, jingoohan1, neil.armstrong, jessica.zhang, deller,
	maarten.lankhorst, mripard, airlied, simona, fnkl.kernel, j,
	hdegoede, ilpo.jarvinen, sven, alyssa, neal, support.opensource,
	duje.mihanovic, dri-devel, asahi, platform-driver-x86,
	linux-arm-kernel, linux-fbdev

On Tue, Jul 15, 2025 at 7:30 AM Thomas Zimmermann <tzimmermann@suse.de> wrote:
>
> Include <linux/of.h> to declare device_property_read_u32() and
> struct of_device_id. Avoids dependency on backlight header to include
> it.

Neither of those come from of.h.


> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
> Reviewed-by: Janne Grunau <j@jannau.net>
> ---
>  drivers/gpu/drm/panel/panel-summit.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/panel/panel-summit.c b/drivers/gpu/drm/panel/panel-summit.c
> index 4854437e2899..02aa1ec287d6 100644
> --- a/drivers/gpu/drm/panel/panel-summit.c
> +++ b/drivers/gpu/drm/panel/panel-summit.c
> @@ -1,6 +1,7 @@
>  // SPDX-License-Identifier: GPL-2.0-only
>
>  #include <linux/backlight.h>
> +#include <linux/of.h>
>  #include <drm/drm_device.h>
>  #include <drm/drm_mipi_dsi.h>
>  #include <drm/drm_mode.h>
> --
> 2.50.0
>

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: [PATCH v2 13/15] backlight: rave-sp: Include <linux/of.h> and <linux/mod_devicetable.h>
  2025-07-15 12:24 ` [PATCH v2 13/15] backlight: rave-sp: Include <linux/of.h> and <linux/mod_devicetable.h> Thomas Zimmermann
@ 2025-07-15 13:34   ` Rob Herring
  2025-07-16  6:39     ` Thomas Zimmermann
  0 siblings, 1 reply; 29+ messages in thread
From: Rob Herring @ 2025-07-15 13:34 UTC (permalink / raw)
  To: Thomas Zimmermann
  Cc: lee, danielt, jingoohan1, neil.armstrong, jessica.zhang, deller,
	maarten.lankhorst, mripard, airlied, simona, fnkl.kernel, j,
	hdegoede, ilpo.jarvinen, sven, alyssa, neal, support.opensource,
	duje.mihanovic, dri-devel, asahi, platform-driver-x86,
	linux-arm-kernel, linux-fbdev

On Tue, Jul 15, 2025 at 7:30 AM Thomas Zimmermann <tzimmermann@suse.de> wrote:
>
> Include <linux/of.h> to declare struct device_node and include
> <linux/mod_devicetable.h> to declare struct of_device_id. Avoids
> dependency on backlight header to include it.

struct device_node should be opaque...

        /*
         * If there is a phandle pointing to the device node we can
         * assume that another device will manage the status changes.
         * If not we make sure the backlight is in a consistent state.
         */
        if (!dev->of_node->phandle)
                backlight_update_status(bd);

Well, that is ugly. IMO, we should just drop the check. A DT built
with "-@" option will have phandle set, so that's not a reliable test.

Rob

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: [PATCH v2 02/15] drm/panel: panel-samsung-s6e63m0: Include <linux/of.h>
  2025-07-15 12:24 ` [PATCH v2 02/15] drm/panel: panel-samsung-s6e63m0: Include <linux/of.h> Thomas Zimmermann
  2025-07-15 13:19   ` Simona Vetter
@ 2025-07-15 23:43   ` Sebastian Reichel
  2025-07-16  6:37     ` Thomas Zimmermann
  1 sibling, 1 reply; 29+ messages in thread
From: Sebastian Reichel @ 2025-07-15 23:43 UTC (permalink / raw)
  To: Thomas Zimmermann
  Cc: lee, danielt, jingoohan1, neil.armstrong, jessica.zhang, deller,
	maarten.lankhorst, mripard, airlied, simona, fnkl.kernel, j,
	hdegoede, ilpo.jarvinen, sven, alyssa, neal, support.opensource,
	duje.mihanovic, dri-devel, asahi, platform-driver-x86,
	linux-arm-kernel, linux-fbdev

Hi,

On Tue, Jul 15, 2025 at 02:24:39PM +0200, Thomas Zimmermann wrote:
> Include <linux/of.h> to declare device_property_read_u32(). Avoids
> dependency on backlight header to include it.

device_property_*() is from <linux/property.h>, which is already
included in the following line...

Greetings,

-- Sebastian

> 
> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
> ---
>  drivers/gpu/drm/panel/panel-samsung-s6e63m0.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c b/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c
> index ea241c89593b..930948cb615f 100644
> --- a/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c
> +++ b/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c
> @@ -16,6 +16,7 @@
>  #include <linux/export.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/media-bus-format.h>
> -- 
> 2.50.0
> 

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: [PATCH v2 02/15] drm/panel: panel-samsung-s6e63m0: Include <linux/of.h>
  2025-07-15 23:43   ` Sebastian Reichel
@ 2025-07-16  6:37     ` Thomas Zimmermann
  0 siblings, 0 replies; 29+ messages in thread
From: Thomas Zimmermann @ 2025-07-16  6:37 UTC (permalink / raw)
  To: Sebastian Reichel
  Cc: lee, danielt, jingoohan1, neil.armstrong, jessica.zhang, deller,
	maarten.lankhorst, mripard, airlied, simona, fnkl.kernel, j,
	hdegoede, ilpo.jarvinen, sven, alyssa, neal, support.opensource,
	duje.mihanovic, dri-devel, asahi, platform-driver-x86,
	linux-arm-kernel, linux-fbdev

Hi

Am 16.07.25 um 01:43 schrieb Sebastian Reichel:
> Hi,
>
> On Tue, Jul 15, 2025 at 02:24:39PM +0200, Thomas Zimmermann wrote:
>> Include <linux/of.h> to declare device_property_read_u32(). Avoids
>> dependency on backlight header to include it.
> device_property_*() is from <linux/property.h>, which is already
> included in the following line...

Oh, that has been fixed already by commit d1a1807bae39 ("drm/panel: 
panel-samsung-s6e63m0: Include <linux/property.h>") from last October. 
Some of the patches in this series have been written a while ago. The 
one here is from Feb 2024. I'll double check the others, there might be 
similar cases. Thanks for reviewing.

Best regards
Thomas

>
> Greetings,
>
> -- Sebastian
>
>> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
>> ---
>>   drivers/gpu/drm/panel/panel-samsung-s6e63m0.c | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c b/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c
>> index ea241c89593b..930948cb615f 100644
>> --- a/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c
>> +++ b/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c
>> @@ -16,6 +16,7 @@
>>   #include <linux/export.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/media-bus-format.h>
>> -- 
>> 2.50.0
>>

-- 
--
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)


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: [PATCH v2 13/15] backlight: rave-sp: Include <linux/of.h> and <linux/mod_devicetable.h>
  2025-07-15 13:34   ` Rob Herring
@ 2025-07-16  6:39     ` Thomas Zimmermann
  0 siblings, 0 replies; 29+ messages in thread
From: Thomas Zimmermann @ 2025-07-16  6:39 UTC (permalink / raw)
  To: Rob Herring
  Cc: lee, danielt, jingoohan1, neil.armstrong, jessica.zhang, deller,
	maarten.lankhorst, mripard, airlied, simona, fnkl.kernel, j,
	hdegoede, ilpo.jarvinen, sven, alyssa, neal, support.opensource,
	duje.mihanovic, dri-devel, asahi, platform-driver-x86,
	linux-arm-kernel, linux-fbdev

Hi

Am 15.07.25 um 15:34 schrieb Rob Herring:
> On Tue, Jul 15, 2025 at 7:30 AM Thomas Zimmermann <tzimmermann@suse.de> wrote:
>> Include <linux/of.h> to declare struct device_node and include
>> <linux/mod_devicetable.h> to declare struct of_device_id. Avoids
>> dependency on backlight header to include it.
> struct device_node should be opaque...
>
>          /*
>           * If there is a phandle pointing to the device node we can
>           * assume that another device will manage the status changes.
>           * If not we make sure the backlight is in a consistent state.
>           */
>          if (!dev->of_node->phandle)
>                  backlight_update_status(bd);
>
> Well, that is ugly. IMO, we should just drop the check. A DT built
> with "-@" option will have phandle set, so that's not a reliable test.

Not that I disagree, but fixing it is out of scope for this series.

Best regards
Thomas

>
> Rob

-- 
--
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)


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: [PATCH v2 15/15] backlight: Do not include <linux/fb.h> in header file
  2025-07-15 13:22   ` Simona Vetter
@ 2025-07-16  6:44     ` Thomas Zimmermann
  0 siblings, 0 replies; 29+ messages in thread
From: Thomas Zimmermann @ 2025-07-16  6:44 UTC (permalink / raw)
  To: Simona Vetter
  Cc: lee, danielt, jingoohan1, neil.armstrong, jessica.zhang, deller,
	maarten.lankhorst, mripard, airlied, simona, fnkl.kernel, j,
	hdegoede, ilpo.jarvinen, sven, alyssa, neal, support.opensource,
	duje.mihanovic, dri-devel, asahi, platform-driver-x86,
	linux-arm-kernel, linux-fbdev

Hi

Am 15.07.25 um 15:22 schrieb Simona Vetter:
> On Tue, Jul 15, 2025 at 02:24:52PM +0200, Thomas Zimmermann wrote:
>> The backlight interfaces don't require anything from <linux/fb.h>, so
>> don't include it.
>>
>> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
> I like this very much.
>
> Reviewed-by: Simona Vetter <simona.vetter@ffwll.ch>

Thanks for reviewing. backlight.h is also the last major header file the 
includes <linux/fb.h>. Not including it here will free many other files 
from the dependency.

>
> I guess also my Acked-by for merging the entire pile through the backlight
> subsystem, that's probably the easiest path to land this all.

Yeah, that was the plan.

Best regards
Thomas

>
> Cheers, Sima
>
>> ---
>>   include/linux/backlight.h | 1 -
>>   1 file changed, 1 deletion(-)
>>
>> diff --git a/include/linux/backlight.h b/include/linux/backlight.h
>> index 10e626db7eee..f29a9ef1052e 100644
>> --- a/include/linux/backlight.h
>> +++ b/include/linux/backlight.h
>> @@ -10,7 +10,6 @@
>>   #define _LINUX_BACKLIGHT_H
>>   
>>   #include <linux/device.h>
>> -#include <linux/fb.h>
>>   #include <linux/mutex.h>
>>   #include <linux/types.h>
>>   
>> -- 
>> 2.50.0
>>

-- 
--
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)


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: [PATCH v2 01/15] platform/x86: dell-uart-backlight: Use blacklight power constant
  2025-07-15 12:24 ` [PATCH v2 01/15] platform/x86: dell-uart-backlight: Use blacklight power constant Thomas Zimmermann
@ 2025-07-21 11:43   ` Ilpo Järvinen
  2025-07-21 19:42     ` Thomas Zimmermann
  0 siblings, 1 reply; 29+ messages in thread
From: Ilpo Järvinen @ 2025-07-21 11:43 UTC (permalink / raw)
  To: Thomas Zimmermann
  Cc: lee, danielt, jingoohan1, neil.armstrong, jessica.zhang, deller,
	maarten.lankhorst, mripard, airlied, simona, fnkl.kernel, j,
	Hans de Goede, sven, alyssa, neal, support.opensource,
	duje.mihanovic, dri-devel, asahi, platform-driver-x86,
	linux-arm-kernel, linux-fbdev, Hans de Goede

[-- Attachment #1: Type: text/plain, Size: 1290 bytes --]

On Tue, 15 Jul 2025, Thomas Zimmermann wrote:

> The backlight subsystem has gotten its own power constants. Replace
> FB_BLANK_UNBLANK with BACKLIGHT_POWER_ON.
> 
> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
> Reviewed-by: Hans de Goede <hansg@kernel.org>
> Acked-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
> ---
>  drivers/platform/x86/dell/dell-uart-backlight.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/platform/x86/dell/dell-uart-backlight.c b/drivers/platform/x86/dell/dell-uart-backlight.c
> index 8f868f845350..f323a667dc2d 100644
> --- a/drivers/platform/x86/dell/dell-uart-backlight.c
> +++ b/drivers/platform/x86/dell/dell-uart-backlight.c
> @@ -305,7 +305,7 @@ static int dell_uart_bl_serdev_probe(struct serdev_device *serdev)
>  	dev_dbg(dev, "Firmware version: %.*s\n", resp[RESP_LEN] - 3, resp + RESP_DATA);
>  
>  	/* Initialize bl_power to a known value */
> -	ret = dell_uart_set_bl_power(dell_bl, FB_BLANK_UNBLANK);
> +	ret = dell_uart_set_bl_power(dell_bl, BACKLIGHT_POWER_ON);
>  	if (ret)
>  		return ret;

Hi Thomas,

Do you expect this entire series to go in this cycle through some other 
tree than pdx86? If not, I'll take this through pdx86 tree in this cycle.

-- 
 i.

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: [PATCH v2 01/15] platform/x86: dell-uart-backlight: Use blacklight power constant
  2025-07-21 11:43   ` Ilpo Järvinen
@ 2025-07-21 19:42     ` Thomas Zimmermann
  2025-07-22 13:03       ` Ilpo Järvinen
  0 siblings, 1 reply; 29+ messages in thread
From: Thomas Zimmermann @ 2025-07-21 19:42 UTC (permalink / raw)
  To: Ilpo Järvinen
  Cc: lee, danielt, jingoohan1, neil.armstrong, jessica.zhang, deller,
	maarten.lankhorst, mripard, airlied, simona, fnkl.kernel, j,
	Hans de Goede, sven, alyssa, neal, support.opensource,
	duje.mihanovic, dri-devel, asahi, platform-driver-x86,
	linux-arm-kernel, linux-fbdev, Hans de Goede

Hi

Am 21.07.25 um 13:43 schrieb Ilpo Järvinen:
> On Tue, 15 Jul 2025, Thomas Zimmermann wrote:
>
>> The backlight subsystem has gotten its own power constants. Replace
>> FB_BLANK_UNBLANK with BACKLIGHT_POWER_ON.
>>
>> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
>> Reviewed-by: Hans de Goede <hansg@kernel.org>
>> Acked-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
>> ---
>>   drivers/platform/x86/dell/dell-uart-backlight.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/platform/x86/dell/dell-uart-backlight.c b/drivers/platform/x86/dell/dell-uart-backlight.c
>> index 8f868f845350..f323a667dc2d 100644
>> --- a/drivers/platform/x86/dell/dell-uart-backlight.c
>> +++ b/drivers/platform/x86/dell/dell-uart-backlight.c
>> @@ -305,7 +305,7 @@ static int dell_uart_bl_serdev_probe(struct serdev_device *serdev)
>>   	dev_dbg(dev, "Firmware version: %.*s\n", resp[RESP_LEN] - 3, resp + RESP_DATA);
>>   
>>   	/* Initialize bl_power to a known value */
>> -	ret = dell_uart_set_bl_power(dell_bl, FB_BLANK_UNBLANK);
>> +	ret = dell_uart_set_bl_power(dell_bl, BACKLIGHT_POWER_ON);
>>   	if (ret)
>>   		return ret;
> Hi Thomas,
>
> Do you expect this entire series to go in this cycle through some other
> tree than pdx86? If not, I'll take this through pdx86 tree in this cycle.

I don't know when the series will get merged, but it might still take a 
bit. Please take this patch through your tree. Good to have it off the list.

Best regards
Thomas

>

-- 
--
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)


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: [PATCH v2 01/15] platform/x86: dell-uart-backlight: Use blacklight power constant
  2025-07-21 19:42     ` Thomas Zimmermann
@ 2025-07-22 13:03       ` Ilpo Järvinen
  0 siblings, 0 replies; 29+ messages in thread
From: Ilpo Järvinen @ 2025-07-22 13:03 UTC (permalink / raw)
  To: Thomas Zimmermann
  Cc: lee, danielt, jingoohan1, neil.armstrong, jessica.zhang, deller,
	maarten.lankhorst, mripard, airlied, simona, fnkl.kernel, j,
	Hans de Goede, sven, alyssa, neal, support.opensource,
	duje.mihanovic, dri-devel, asahi, platform-driver-x86,
	linux-arm-kernel, linux-fbdev, Hans de Goede

[-- Attachment #1: Type: text/plain, Size: 1742 bytes --]

On Mon, 21 Jul 2025, Thomas Zimmermann wrote:

> Hi
> 
> Am 21.07.25 um 13:43 schrieb Ilpo Järvinen:
> > On Tue, 15 Jul 2025, Thomas Zimmermann wrote:
> > 
> > > The backlight subsystem has gotten its own power constants. Replace
> > > FB_BLANK_UNBLANK with BACKLIGHT_POWER_ON.
> > > 
> > > Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
> > > Reviewed-by: Hans de Goede <hansg@kernel.org>
> > > Acked-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
> > > ---
> > >   drivers/platform/x86/dell/dell-uart-backlight.c | 2 +-
> > >   1 file changed, 1 insertion(+), 1 deletion(-)
> > > 
> > > diff --git a/drivers/platform/x86/dell/dell-uart-backlight.c
> > > b/drivers/platform/x86/dell/dell-uart-backlight.c
> > > index 8f868f845350..f323a667dc2d 100644
> > > --- a/drivers/platform/x86/dell/dell-uart-backlight.c
> > > +++ b/drivers/platform/x86/dell/dell-uart-backlight.c
> > > @@ -305,7 +305,7 @@ static int dell_uart_bl_serdev_probe(struct
> > > serdev_device *serdev)
> > >   	dev_dbg(dev, "Firmware version: %.*s\n", resp[RESP_LEN] - 3, resp +
> > > RESP_DATA);
> > >     	/* Initialize bl_power to a known value */
> > > -	ret = dell_uart_set_bl_power(dell_bl, FB_BLANK_UNBLANK);
> > > +	ret = dell_uart_set_bl_power(dell_bl, BACKLIGHT_POWER_ON);
> > >   	if (ret)
> > >   		return ret;
> > Hi Thomas,
> > 
> > Do you expect this entire series to go in this cycle through some other
> > tree than pdx86? If not, I'll take this through pdx86 tree in this cycle.
> 
> I don't know when the series will get merged, but it might still take a bit.
> Please take this patch through your tree. Good to have it off the list.

Thanks.

Applied it to the review-ilpo-next branch.

-- 
 i.

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2025-07-22 13:04 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-15 12:24 [PATCH v2 00/15] backlight: Do not include <linux/fb.h> in header file Thomas Zimmermann
2025-07-15 12:24 ` [PATCH v2 01/15] platform/x86: dell-uart-backlight: Use blacklight power constant Thomas Zimmermann
2025-07-21 11:43   ` Ilpo Järvinen
2025-07-21 19:42     ` Thomas Zimmermann
2025-07-22 13:03       ` Ilpo Järvinen
2025-07-15 12:24 ` [PATCH v2 02/15] drm/panel: panel-samsung-s6e63m0: Include <linux/of.h> Thomas Zimmermann
2025-07-15 13:19   ` Simona Vetter
2025-07-15 23:43   ` Sebastian Reichel
2025-07-16  6:37     ` Thomas Zimmermann
2025-07-15 12:24 ` [PATCH v2 03/15] drm/panel: panel-samsung-s6e88a0-ams427ap24: " Thomas Zimmermann
2025-07-15 12:24 ` [PATCH v2 04/15] drm/panel: panel-summit: " Thomas Zimmermann
2025-07-15 13:28   ` Rob Herring
2025-07-15 12:24 ` [PATCH v2 05/15] fbcon: Add necessary include statements and forward declarations Thomas Zimmermann
2025-07-15 13:20   ` Simona Vetter
2025-07-15 12:24 ` [PATCH v2 06/15] backlight: Include <linux/of.h> Thomas Zimmermann
2025-07-15 12:24 ` [PATCH v2 07/15] backlight: apple_dwi_bl: Include <linux/mod_devicetable.h> Thomas Zimmermann
2025-07-15 12:24 ` [PATCH v2 08/15] backlight: as3711_bl: Include <linux/of.h> Thomas Zimmermann
2025-07-15 12:24 ` [PATCH v2 09/15] backlight: da9052_bl: Include <linux/mod_devicetable.h> Thomas Zimmermann
2025-07-15 12:24 ` [PATCH v2 10/15] backlight: jornada720: Include <linux/io.h> Thomas Zimmermann
2025-07-15 12:24 ` [PATCH v2 11/15] backlight: ktd2801: Include <linux/mod_devicetable.h> Thomas Zimmermann
2025-07-15 12:24 ` [PATCH v2 12/15] backlight: led_bl: Include <linux/of.h> Thomas Zimmermann
2025-07-15 12:24 ` [PATCH v2 13/15] backlight: rave-sp: Include <linux/of.h> and <linux/mod_devicetable.h> Thomas Zimmermann
2025-07-15 13:34   ` Rob Herring
2025-07-16  6:39     ` Thomas Zimmermann
2025-07-15 12:24 ` [PATCH v2 14/15] backlight: rt4831: Include <linux/mod_devicetable.h> Thomas Zimmermann
2025-07-15 12:24 ` [PATCH v2 15/15] backlight: Do not include <linux/fb.h> in header file Thomas Zimmermann
2025-07-15 13:22   ` Simona Vetter
2025-07-16  6:44     ` Thomas Zimmermann
  -- strict thread matches above, loose matches on Subject: below --
2025-06-24 13:45 [PATCH v2 00/15] " Thomas Zimmermann
2025-06-24 13:45 ` [PATCH v2 12/15] backlight: led_bl: Include <linux/of.h> Thomas Zimmermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).