drm/dsi: Add a helper to get bits per pixel of MIPI DSI pixel format
authorLiu Ying <Ying.liu@freescale.com>
Fri, 20 Nov 2015 08:15:30 +0000 (16:15 +0800)
committerThierry Reding <treding@nvidia.com>
Mon, 23 Nov 2015 08:07:38 +0000 (09:07 +0100)
commitec26d9e9382f432225d76b3ff1c7f72e21192f7f
tree191ef1d875c31fffe41cde969512f06f69c51dc5
parent8005c49d9aea74d382f474ce11afbbc7d7130bec
drm/dsi: Add a helper to get bits per pixel of MIPI DSI pixel format

Add a helper that can be used to obtain the number of bits per pixel
corresponding to a given MIPI DSI pixel format. This is useful in
bandwidth calculations, for example.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
[treding@nvidia.com: add kerneldoc comment and commit message]
Signed-off-by: Thierry Reding <treding@nvidia.com>
include/drm/drm_mipi_dsi.h