[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkdZO6yB4SZzMgORv=1LCxbiaabfv=UyOQksn6F_WxgGa=w@mail.gmail.com>
Date: Tue, 31 May 2022 11:39:38 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Joel Selvaraj <jo@...amily.in>
Cc: Thierry Reding <thierry.reding@...il.com>,
Sam Ravnborg <sam@...nborg.org>,
David Airlie <airlied@...ux.ie>,
Daniel Vetter <daniel@...ll.ch>,
Rob Herring <robh+dt@...nel.org>,
Stanislav Jakubek <stano.jakubek@...il.com>,
Shawn Guo <shawnguo@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>,
Corentin Labbe <clabbe@...libre.com>,
Hao Fang <fanghao11@...wei.com>,
dri-devel@...ts.freedesktop.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
~postmarketos/upstreaming@...ts.sr.ht, phone-devel@...r.kernel.org
Subject: Re: [PATCH v3 3/3] drm/panel: introduce ebbg,ft8719 panel
Hi Joel,
On Mon, May 30, 2022 at 6:08 PM Joel Selvaraj <jo@...amily.in> wrote:
> +#define dsi_dcs_write_seq(dsi, cmd, seq...) do { \
Please name it mipi_dsi_dcs_write_seq() and...
> + static const u8 d[] = { cmd, seq }; \
> + struct device *dev = &dsi->dev; \
> + int ret; \
> + ret = mipi_dsi_dcs_write_buffer(dsi, d, ARRAY_SIZE(d)); \
> + if (ret < 0) { \
> + dev_err_ratelimited(dev, "sending command %#02x failed: %d\n", cmd, ret); \
> + return ret; \
> + } \
> + } while (0)
My suggestion was to add this macro to include/drm/drm_mipi_dsi.h, just patch it
in there under the other mipi_dsi_dcs_* functions.
I think a few other drivers could make good use of this macro.
Yours,
Linus Walleij
Powered by blists - more mailing lists