drm/i915/dsi: abstract dsi bpp derivation from pixel format
authorJani Nikula <jani.nikula@intel.com>
Wed, 1 Jul 2015 12:58:50 +0000 (15:58 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 3 Jul 2015 05:39:01 +0000 (07:39 +0200)
commit260c1ad1993d3f17e25c5d848d6d2525ff38913c
tree7914ccf45cd6a74a6a5f1162b00c34f22dd14904
parentce65e47b78789b4f78be1fd7e4c884df74a9f075
drm/i915/dsi: abstract dsi bpp derivation from pixel format

Nuke three copies of the same switch case.

Hopefully we can switch to a drm generic function later on, but that
will require us to swich to enum mipi_dsi_pixel_format first.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dsi_pll.c