aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_drv.h
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2013-12-10 08:19:08 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-12-10 08:49:04 -0500
commitfff6386766fc846f19d5628878a4638fa7ece0a4 (patch)
tree98cc3b5b5cf5664b92bd65d331ec39a5dcd8b522 /drivers/gpu/drm/i915/intel_drv.h
parentec9ed1976c256333567932b4acced34c072b57a7 (diff)
drm/i915: Don't cast away const from infoframe buffer
We don't modify the packed infoframe data, so we should keep the const qualifier in place. Just pass the buffer as 'const void *' instead of 'const uint8_t *' and we can drop the cast entirely. v2: Do intel_sdvo_write_infoframe() as well Reviewed-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_drv.h')
-rw-r--r--drivers/gpu/drm/i915/intel_drv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h
index 9f8b46574956..79585cddc2cd 100644
--- a/drivers/gpu/drm/i915/intel_drv.h
+++ b/drivers/gpu/drm/i915/intel_drv.h
@@ -455,7 +455,7 @@ struct intel_hdmi {
455 bool rgb_quant_range_selectable; 455 bool rgb_quant_range_selectable;
456 void (*write_infoframe)(struct drm_encoder *encoder, 456 void (*write_infoframe)(struct drm_encoder *encoder,
457 enum hdmi_infoframe_type type, 457 enum hdmi_infoframe_type type,
458 const uint8_t *frame, ssize_t len); 458 const void *frame, ssize_t len);
459 void (*set_infoframes)(struct drm_encoder *encoder, 459 void (*set_infoframes)(struct drm_encoder *encoder,
460 struct drm_display_mode *adjusted_mode); 460 struct drm_display_mode *adjusted_mode);
461}; 461};