Several panel drivers define their own private write-seq macro,
which is a private copy of the same wrapper around
mipi_dsi_dcs_write_buffer. The Kernel provides mipi_dsi_generic_write_seq
and mipi_dsi_dcs_write_seq for this exact purpose.

Add both macros to mipi_dsi.h so drivers ported from the Kernel can use
them directly, and convert the five drivers that define a local copy
(hitachi-tx10d07vm0baa, lg-lh400wv3-sd04, mot-panel, renesas-r69328 and
himax-hx8394) to the common one, removing the duplication.

The drivers keep using the dcs variant (mipi_dsi_dcs_write_seq) to match
their previous behaviour.

No functional changes intended.

Signed-off-by: Julien Stephan <[email protected]>
---
Julien Stephan (6):
      mipi_dsi: add mipi_dsi_{generic/dcs}_write_seq helper macros
      video: panel: hitachi-tx10d07vm0baa: use common mipi_dsi_dcs_write_seq 
macro
      video: panel: lg-lh400wv3-sd04: use common mipi_dsi_dcs_write_seq macro
      video: panel: mot-panel: use common mipi_dsi_dcs_write_seq macro
      video: panel: renesas-r69328: use common mipi_dsi_dcs_write_seq macro
      video: panel: himax-hx8394: use common mipi_dsi_dcs_write_seq macro

 drivers/video/himax-hx8394.c          |  86 ++++++++--------
 drivers/video/hitachi-tx10d07vm0baa.c | 180 ++++++++++++++++------------------
 drivers/video/lg-lh400wv3-sd04.c      |  58 +++++------
 drivers/video/mot-panel.c             | 140 +++++++++++++-------------
 drivers/video/renesas-r69328.c        |  69 ++++++-------
 include/mipi_dsi.h                    |  17 ++++
 6 files changed, 261 insertions(+), 289 deletions(-)
---
base-commit: f562ed02aa7ae4dc2775d90d2e6c40bab82e2715
change-id: 20260806-add_mipi_dsi_write_seq_helper_macros-b4b43b7da4e2

Best regards,
--  
Julien Stephan <[email protected]>

Reply via email to