[03/32] drm/bridge: nwl-dsi: remove redundant lanes number check

Message ID 20250625-drm-dsi-host-no-device-ptr-v1-3-e36bc258a7c5@bootlin.com (mailing list archive)
State New
Headers
Series drm/mipi-dsi: avoid DSI host drivers to have pointers to DSI devices |

Commit Message

Luca Ceresoli June 25, 2025, 4:45 p.m. UTC
Checking that the number of lanes is > 0 is now done by the DRM MIPI DSI
core in mipi_dsi_attach().

Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
---
 drivers/gpu/drm/bridge/nwl-dsi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/drivers/gpu/drm/bridge/nwl-dsi.c b/drivers/gpu/drm/bridge/nwl-dsi.c
index 2f7429b24fc20db104dec17182f1119c6c75e600..ccce663192b35a795dad8cb479203d05b414173b 100644
--- a/drivers/gpu/drm/bridge/nwl-dsi.c
+++ b/drivers/gpu/drm/bridge/nwl-dsi.c
@@ -352,7 +352,7 @@  static int nwl_dsi_host_attach(struct mipi_dsi_host *dsi_host,
 	DRM_DEV_INFO(dev, "lanes=%u, format=0x%x flags=0x%lx\n", device->lanes,
 		     device->format, device->mode_flags);
 
-	if (device->lanes < 1 || device->lanes > 4)
+	if (device->lanes > 4)
 		return -EINVAL;
 
 	dsi->lanes = device->lanes;