Le 10/03/2023 à 23:50, Linus Walleij a écrit :
On Fri, Mar 10, 2023 at 7:35 PM Jianhua Lu <lujianhua000@xxxxxxxxx> wrote:
On Fri, Mar 10, 2023 at 07:10:21PM +0100, Konrad Dybcio wrote:
+#define mipi_dsi_dual_dcs_write_seq(dsi0, dsi1, cmd, seq...) \
+ do { \
+ mipi_dsi_dcs_write_seq(dsi0, cmd, seq); \
+ mipi_dsi_dcs_write_seq(dsi1, cmd, seq); \
+ } while (0)
This should be in the same file as mipi_dsi_dcs_write_seq, imo
I have sent a patch to do it, upstream don't think this wrapper is a proper
approach to deal with dual dsi and wrap all of mipi_dsi_* function is
useless.
https://lore.kernel.org/lkml/20230310110542.6649-1-lujianhua000@xxxxxxxxx/
We can keep it locally if the fight isn't worthwhile, but I will try to enter
the discussion.
It's ok to keep it in the driver until we find a way to move it in the generic includes.
Neil
Yours,
Linus Walleij