diff options
author | Thierry Reding <treding@nvidia.com> | 2014-07-21 14:28:25 +0400 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2014-07-22 11:06:32 +0400 |
commit | 3c523d7d38a17b17371a9ea952c04a9b65c8a357 (patch) | |
tree | 200bbb4a345e20985325471a028f5ff04e2e1de0 /include/drm/drm_mipi_dsi.h | |
parent | 371c359f83b4d19d2688e975a07dc44add307e24 (diff) | |
download | linux-3c523d7d38a17b17371a9ea952c04a9b65c8a357.tar.xz |
drm/dsi: Use peripheral's channel for DCS commands
When executing DCS commands, use the channel associated with the DSI
peripheral rather than one explicitly specified in the function call.
Devices shouldn't be able to step on each others' toes like this.
Acked-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'include/drm/drm_mipi_dsi.h')
-rw-r--r-- | include/drm/drm_mipi_dsi.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/drm/drm_mipi_dsi.h b/include/drm/drm_mipi_dsi.h index 4b0112781910..7b5e1a9244e1 100644 --- a/include/drm/drm_mipi_dsi.h +++ b/include/drm/drm_mipi_dsi.h @@ -127,10 +127,10 @@ struct mipi_dsi_device { int mipi_dsi_attach(struct mipi_dsi_device *dsi); int mipi_dsi_detach(struct mipi_dsi_device *dsi); -ssize_t mipi_dsi_dcs_write(struct mipi_dsi_device *dsi, unsigned int channel, - const void *data, size_t len); -ssize_t mipi_dsi_dcs_read(struct mipi_dsi_device *dsi, unsigned int channel, - u8 cmd, void *data, size_t len); +ssize_t mipi_dsi_dcs_write(struct mipi_dsi_device *dsi, const void *data, + size_t len); +ssize_t mipi_dsi_dcs_read(struct mipi_dsi_device *dsi, u8 cmd, void *data, + size_t len); /** * struct mipi_dsi_driver - DSI driver |