Skip to contentSkip to conversation

drm/panel: visionox-rm69299: add backlight dependency

PATCH In review Arnd Bergmann 2 participants 2 messages Dec 4, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/panel: visionox-rm69299: add backlight dependency

From: Arnd Bergmann <[email protected]>

The recently added backlight support breaks when CONFIG_BACKLIGHT_CLASS_DEVICE is turned off:

arm-linux-gnueabi-ld: drivers/gpu/drm/panel/panel-visionox-rm69299.o: in function `visionox_rm69299_probe':
panel-visionox-rm69299.c:(.text.visionox_rm69299_probe+0x92): undefined reference to `devm_backlight_device_register'
arm-linux-gnueabi-ld: (devm_backlight_device_register): Unknown destination type (ARM/Thumb) in drivers/gpu/drm/panel/panel-visionox-rm69299.o

Add the appropriate Kconfig dependency.

Fixes 7911d8cab554 ("drm/panel: visionox-rm69299: Add backlight support")
---
 drivers/gpu/drm/panel/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/panel/Kconfig +1 -0
index 76f6af819037..2923148dcf07 100644
@@ -1163,6 +1163,7 @@ config DRM_PANEL_VISIONOX_R66451
 
 config DRM_PANEL_VISIONOX_RM69299
 	tristate "Visionox RM69299"
+	depends on BACKLIGHT_CLASS_DEVICE
 	depends on OF
 	depends on DRM_MIPI_DSI
 	help
Signature · 1 line
2.39.5
#1 lore raw

Hi,

Quoted 5 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

The recently added backlight support breaks when CONFIG_BACKLIGHT_CLASS_DEVICE is turned off:

Quoted 8 lines

arm-linux-gnueabi-ld: drivers/gpu/drm/panel/panel-visionox-rm69299.o: in function `visionox_rm69299_probe':
panel-visionox-rm69299.c:(.text.visionox_rm69299_probe+0x92): undefined reference to `devm_backlight_device_register'
arm-linux-gnueabi-ld: (devm_backlight_device_register): Unknown destination type (ARM/Thumb) in drivers/gpu/drm/panel/panel-visionox-rm69299.o

Add the appropriate Kconfig dependency.

Fixes 7911d8cab554 ("drm/panel: visionox-rm69299: Add backlight support")

Thanks for looking at this. This is a duplicate of

https://lore.kernel.org/phone-devel/[email protected]/

though, idk why it didn't get applied.

Cheers,
-- Guido

Quoted 19 lines
---
 drivers/gpu/drm/panel/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/panel/Kconfig +1 -0
index 76f6af819037..2923148dcf07 100644
@@ -1163,6 +1163,7 @@ config DRM_PANEL_VISIONOX_R66451
 
 config DRM_PANEL_VISIONOX_RM69299
 	tristate "Visionox RM69299"
+	depends on BACKLIGHT_CLASS_DEVICE
 	depends on OF
 	depends on DRM_MIPI_DSI
 	help
Signature · 1 line
2.39.5