OSDN Git Service

drm/mipi-dsi: Add a mipi_dsi_dcs_write_seq() macro
authorJavier Martinez Canillas <javierm@redhat.com>
Mon, 2 Jan 2023 20:25:42 +0000 (21:25 +0100)
committerJavier Martinez Canillas <javierm@redhat.com>
Sat, 7 Jan 2023 13:22:04 +0000 (14:22 +0100)
commita9015ce593204f487bcb3069c5908155ccc59f30
treecfe309c51283e38f823d03929b036e1edf939e75
parent51d3c0e7dc3cf1dd91c34b0f9bdadda310c7ed5b
drm/mipi-dsi: Add a mipi_dsi_dcs_write_seq() macro

Many panel drivers define dsi_dcs_write_seq() and dsi_generic_write_seq()
macros to send DCS commands and generic write packets respectively, with
the payload specified as a list of parameters instead of using arrays.

There's already a macro for the former, introduced by commit 2a9e9daf75231
("drm/mipi-dsi: Introduce mipi_dsi_dcs_write_seq macro") so drivers can be
changed to use that. But there isn't one yet for the latter, let's add it.

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230102202542.3494677-2-javierm@redhat.com
include/drm/drm_mipi_dsi.h