ti-dlpc3433.c initializes an I2C regmap using
devm_regmap_init_i2c(), but DRM_TI_DLPC3433 does not select
REGMAP_I2C. The driver can therefore be enabled without the required
register-transport implementation and fail to build.

Select REGMAP_I2C so the backend is enabled at the linkage level
required by this consumer, rather than relying on another driver to
pull it in.

The issue was found by our static-analysis tool and manually reviewed.

Fixes: 6352cd451ddb ("drm: bridge: Add TI DLPC3433 DSI to DMD bridge")
Signed-off-by: Pengpeng Hou <[email protected]>
---
AI assistance: gpt 5 (patch preparation and review).

 drivers/gpu/drm/bridge/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/bridge/Kconfig b/drivers/gpu/drm/bridge/Kconfig
index c7da6b0..c9bdc94 100644
--- a/drivers/gpu/drm/bridge/Kconfig
+++ b/drivers/gpu/drm/bridge/Kconfig
@@ -429,6 +429,7 @@ config DRM_TI_DLPC3433
        depends on OF
        select DRM_MIPI_DSI
        select DRM_PANEL_BRIDGE
+       select REGMAP_I2C
        help
          TI DLPC3433 is a MIPI DSI based display controller bridge
          for processing high resolution DMD based projectors.

base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244

Reply via email to