drm/i915: Don't cast away const from infoframe buffer
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 10 Dec 2013 13:19:08 +0000 (15:19 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 10 Dec 2013 13:49:04 +0000 (14:49 +0100)
commitfff6386766fc846f19d5628878a4638fa7ece0a4
tree98cc3b5b5cf5664b92bd65d331ec39a5dcd8b522
parentec9ed1976c256333567932b4acced34c072b57a7
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>
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_hdmi.c
drivers/gpu/drm/i915/intel_sdvo.c