]> git.baikalelectronics.ru Git - kernel.git/commit
drm/bridge: ti-sn65dsi83: Do not cache dsi_lanes and host twice
authorMarek Vasut <marex@denx.de>
Sun, 12 Jun 2022 10:29:18 +0000 (12:29 +0200)
committerMarek Vasut <marex@denx.de>
Sun, 12 Jun 2022 14:06:53 +0000 (16:06 +0200)
commit6b033e6b48f38b4637c228ad1648156a26143199
tree6cfe214e0ba4bea744befbc2c1b57d87948eb078
parent3d9f3e0e710f51b454595ddd8a5ee64de7fd361a
drm/bridge: ti-sn65dsi83: Do not cache dsi_lanes and host twice

The DSI lane count can be accessed via the dsi device pointer, make use
of that. The DSI host pointer is only used in sn65dsi83_host_attach(),
move the code around so that the host does not have to be cached in the
driver private data. This simplifies the code further. No functional
change.

This has the added bonus that lt9211, tc358767, sn65dsi83 now use very
similar *_mipi_dsi_host_attach() which is ripe for deduplication.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Andrzej Hajda <andrzej.hajda@intel.com>
Cc: Laurent Pinchart <Laurent.pinchart@ideasonboard.com>
Cc: Lucas Stach <l.stach@pengutronix.de>
Cc: Maxime Ripard <maxime@cerno.tech>
Cc: Robert Foss <robert.foss@linaro.org>
Cc: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220612102918.13874-1-marex@denx.de
drivers/gpu/drm/bridge/ti-sn65dsi83.c