diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-05-17 07:27:24 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-05-22 05:35:15 -0400 |
commit | ebe0f2442cc4c5493a85c875d2d8a44ffecc1175 (patch) | |
tree | f9ce0f9183ee558c766916f9b0709e8220242b37 /drivers/staging | |
parent | e6ecefaadfcdb03db8ac9e739b4ba7a93a8811b3 (diff) |
drm: Make the CRTC gamma_set operation optional
Drivers for hardware without gamma support should not be forced to
implement a no-op gamma set operation.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Rob Clark <rob.clark@linaro.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/omapdrm/omap_crtc.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/staging/omapdrm/omap_crtc.c b/drivers/staging/omapdrm/omap_crtc.c index 490a7f15604b..8b864afb40b6 100644 --- a/drivers/staging/omapdrm/omap_crtc.c +++ b/drivers/staging/omapdrm/omap_crtc.c | |||
@@ -36,12 +36,6 @@ struct omap_crtc { | |||
36 | struct drm_framebuffer *old_fb; | 36 | struct drm_framebuffer *old_fb; |
37 | }; | 37 | }; |
38 | 38 | ||
39 | static void omap_crtc_gamma_set(struct drm_crtc *crtc, | ||
40 | u16 *red, u16 *green, u16 *blue, uint32_t start, uint32_t size) | ||
41 | { | ||
42 | /* not supported.. at least not yet */ | ||
43 | } | ||
44 | |||
45 | static void omap_crtc_destroy(struct drm_crtc *crtc) | 39 | static void omap_crtc_destroy(struct drm_crtc *crtc) |
46 | { | 40 | { |
47 | struct omap_crtc *omap_crtc = to_omap_crtc(crtc); | 41 | struct omap_crtc *omap_crtc = to_omap_crtc(crtc); |
@@ -198,7 +192,6 @@ static int omap_crtc_page_flip_locked(struct drm_crtc *crtc, | |||
198 | } | 192 | } |
199 | 193 | ||
200 | static const struct drm_crtc_funcs omap_crtc_funcs = { | 194 | static const struct drm_crtc_funcs omap_crtc_funcs = { |
201 | .gamma_set = omap_crtc_gamma_set, | ||
202 | .set_config = drm_crtc_helper_set_config, | 195 | .set_config = drm_crtc_helper_set_config, |
203 | .destroy = omap_crtc_destroy, | 196 | .destroy = omap_crtc_destroy, |
204 | .page_flip = omap_crtc_page_flip_locked, | 197 | .page_flip = omap_crtc_page_flip_locked, |