summaryrefslogtreecommitdiff
path: root/drivers/staging/imx-drm
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2013-05-27 17:19:57 (GMT)
committerDave Airlie <airlied@gmail.com>2013-06-17 09:42:47 (GMT)
commit04c0c569d4358d0e2f9c78ca9fc0ddeb68ae4872 (patch)
tree812f493c7a60c6eca19e529c2804ce584419287b /drivers/staging/imx-drm
parent8391a3d5bc6269cb0622c136ec7f125a2d5fb5f9 (diff)
downloadlinux-fsl-qoriq-04c0c569d4358d0e2f9c78ca9fc0ddeb68ae4872.tar.xz
drm/fb-helper: Make load_lut and gamma_set/gamma_get hooks optional
Check whether the crtc provides the load_lut callback before calling it. This allows the driver to provide the hook only for those CRTCs that actually have the hardware support for it. Also check whether the driver provided the fb_helper gamma_set/gamma_get hooks. It's a driver bug if it allows non-truecolor fbdev visuals w/o these hooks, but auditing all the drivers is too tedious. So just slap a big WARN_ON() there and bail out before things start to explode. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@gmail.com>
Diffstat (limited to 'drivers/staging/imx-drm')
0 files changed, 0 insertions, 0 deletions