]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite0560523d7ecefe402961d37d98459b58e70adcc
tree98cc3b5b5cf5664b92bd65d331ec39a5dcd8b522
parent5c986e956d5331822cda6020ec27dac74dc8823a
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