[PATCH 2/2] drm/panel-fannal-c3004: Add fannal c3004 DSI panel
Linus Walleij
linus.walleij at linaro.org
Tue May 23 17:33:37 UTC 2023
On Fri, May 19, 2023 at 4:25 PM Paulo Pavacic <pavacic.p at gmail.com> wrote:
> +//macro for writing to DSI
> +#define WRITE_DSI(dsi, seq...) \
> + { \
> + const u8 d[] = { seq }; \
> + int ret = mipi_dsi_generic_write(dsi, d, ARRAY_SIZE(d)); \
> + if (ret < 0) { \
> + dev_err(&dsi->dev, \
> + "Error (%d) occurred while trying to" \
> + " write MIPI DSI command: %s (decimal value)\n", \
> + ret, d); \
> + } \
> + }
As said for the other patch, this reinvents mipi_dsi_dcs_write_seq()
so use that instead.
mipi_dsi_dcs_write_seq(dsi, 0xFF, 0x77, 0x01, 0x00, 0x00, 0x13);
etc.
Yours,
Linus Walleij
More information about the dri-devel
mailing list