UPSTREAM: 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)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 18 Mar 2016 12:44:21 +0000 (20:44 +0800)
commit059a2f54b44befb5d955bd582903c2e0cec80470
tree182004ce2f1ad345d77cec68487dc78eccb3e1ab
parentffc340d37dd1d7705330d863c42ba33cc60239f5
UPSTREAM: 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.

Change-Id: I03b9f93044ed46a2b999ce82e5623396a6f4d2bc
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
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>
(cherry picked from commit ec26d9e9382f432225d76b3ff1c7f72e21192f7f)
include/drm/drm_mipi_dsi.h