aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/hdmi.h
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2018-09-20 21:51:28 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2018-10-01 21:35:56 +0300
commitf26e1de5ec487c040efa845f280d110c29baea32 (patch)
tree2560e0306339e7826f69418648013818cf6d7e54 /include/linux/hdmi.h
parentdrm: Convert to using %pOFn instead of device_node.name (diff)
downloadlinux-dev-f26e1de5ec487c040efa845f280d110c29baea32.tar.xz
linux-dev-f26e1de5ec487c040efa845f280d110c29baea32.zip
video/hdmi: Constify 'buffer' to the unpack functions
The unpack functions just read from the passed in buffer, so make it const. Cc: Thierry Reding <thierry.reding@gmail.com> Cc: Hans Verkuil <hans.verkuil@cisco.com> Cc: linux-media@vger.kernel.org Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180920185145.1912-2-ville.syrjala@linux.intel.com Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Diffstat (limited to 'include/linux/hdmi.h')
-rw-r--r--include/linux/hdmi.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/hdmi.h b/include/linux/hdmi.h
index d271ff23984f..d3816170c062 100644
--- a/include/linux/hdmi.h
+++ b/include/linux/hdmi.h
@@ -332,7 +332,8 @@ union hdmi_infoframe {
ssize_t
hdmi_infoframe_pack(union hdmi_infoframe *frame, void *buffer, size_t size);
-int hdmi_infoframe_unpack(union hdmi_infoframe *frame, void *buffer);
+int hdmi_infoframe_unpack(union hdmi_infoframe *frame,
+ const void *buffer);
void hdmi_infoframe_log(const char *level, struct device *dev,
union hdmi_infoframe *frame);