drm/dsi: Make mipi_dsi_dcs_{read,write}() symmetrical
authorThierry Reding <treding@nvidia.com>
Mon, 21 Jul 2014 13:47:10 +0000 (15:47 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 13 Nov 2014 12:55:36 +0000 (13:55 +0100)
commit960dd616f61c8482b3f9d01fa6623576fb74503c
treed62b57a143804dc3404ad57f8ecd767d6f5202b3
parent9eb491f3eed26eb7edf4bf4b1a549895fb3301ea
drm/dsi: Make mipi_dsi_dcs_{read,write}() symmetrical

Currently the mipi_dsi_dcs_write() function requires the DCS command
byte to be embedded within the write buffer whereas mipi_dsi_dcs_read()
has a separate parameter. Make them more symmetrical by adding an extra
command parameter to mipi_dsi_dcs_write().

The S6E8AA0 driver relies on the old asymmetric API and there's concern
that moving to the new API may be less efficient. Provide a new function
with the old semantics for those cases and make the S6E8AA0 driver use
it instead.

Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/drm_mipi_dsi.c
drivers/gpu/drm/panel/panel-s6e8aa0.c
include/drm/drm_mipi_dsi.h