diff options
| author | Thierry Reding <treding@nvidia.com> | 2014-11-04 08:59:14 -0500 |
|---|---|---|
| committer | Thierry Reding <treding@nvidia.com> | 2014-11-13 07:55:24 -0500 |
| commit | 02acb76d72b3672330b6a20d2773048658b2d176 (patch) | |
| tree | 3b94b9085c953ed129df66529f8355eb7f7bc8b4 /include/drm | |
| parent | d85a1609e62c22730aa4e3ef09884f04606b086e (diff) | |
drm/dsi: Introduce packet format helpers
Add two helpers, mipi_dsi_packet_format_is_{short,long}(), that help in
determining the format of a packet.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'include/drm')
| -rw-r--r-- | include/drm/drm_mipi_dsi.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/drm/drm_mipi_dsi.h b/include/drm/drm_mipi_dsi.h index 8569dc5a1026..f1a07e302559 100644 --- a/include/drm/drm_mipi_dsi.h +++ b/include/drm/drm_mipi_dsi.h | |||
| @@ -43,6 +43,9 @@ struct mipi_dsi_msg { | |||
| 43 | void *rx_buf; | 43 | void *rx_buf; |
| 44 | }; | 44 | }; |
| 45 | 45 | ||
| 46 | bool mipi_dsi_packet_format_is_short(u8 type); | ||
| 47 | bool mipi_dsi_packet_format_is_long(u8 type); | ||
| 48 | |||
| 46 | /** | 49 | /** |
| 47 | * struct mipi_dsi_host_ops - DSI bus operations | 50 | * struct mipi_dsi_host_ops - DSI bus operations |
| 48 | * @attach: attach DSI device to DSI host | 51 | * @attach: attach DSI device to DSI host |
