drm/panel: use mipi_dsi_dcs_write_buffer where possible
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 5 May 2020 16:03:28 +0000 (17:03 +0100)
committerSam Ravnborg <sam@ravnborg.org>
Mon, 29 Jun 2020 07:42:12 +0000 (09:42 +0200)
commit1a5c4fe91de2e81c93c1e249a6a05295295ff3d9
treec16e9be0f059d06dc09e22905645a33fccb28cf4
parente192fba23ef5ed1439fe699d808c480ca969b0ed
drm/panel: use mipi_dsi_dcs_write_buffer where possible

A few of the new panels create a local macro wrapping around
mipi_dsi_dcs_write. At the same time, they don't really care about the
command/payload split.

mipi_dsi_dcs_write does a kmalloc/memcpy/kfree for payload > 7 bytes.
Avoid that all together by using the _buffer function.

Aside:
panel-xinpeng-xpp055c272.c calls its wrapper "generic" although it
should be "dcs". But that for another day/patch.

Cc: Heiko Stuebner <heiko@sntech.de>
Cc: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200505160329.2976059-2-emil.l.velikov@gmail.com
drivers/gpu/drm/panel/panel-elida-kd35t133.c
drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c
drivers/gpu/drm/panel/panel-xinpeng-xpp055c272.c