drm: Drop all the stub gamma_get, gamma_set, load_lut functions from drivers
Many of the drivers didn't implement palette/gamma handling, but were forced to provide stubs for the hooks to avoid drm_fb_helper from oopsing. Now that the hooks are optional, we can eliminate all the stubs. 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>
This commit is contained in:

committed by
Dave Airlie

parent
04c0c569d4
commit
fb85ac4da8
@@ -281,21 +281,7 @@ fail:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void omap_crtc_fb_gamma_set(struct drm_crtc *crtc,
|
||||
u16 red, u16 green, u16 blue, int regno)
|
||||
{
|
||||
DBG("fbdev: set gamma");
|
||||
}
|
||||
|
||||
static void omap_crtc_fb_gamma_get(struct drm_crtc *crtc,
|
||||
u16 *red, u16 *green, u16 *blue, int regno)
|
||||
{
|
||||
DBG("fbdev: get gamma");
|
||||
}
|
||||
|
||||
static struct drm_fb_helper_funcs omap_fb_helper_funcs = {
|
||||
.gamma_set = omap_crtc_fb_gamma_set,
|
||||
.gamma_get = omap_crtc_fb_gamma_get,
|
||||
.fb_probe = omap_fbdev_create,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user