video/hdmi: Constify infoframe passed to the pack functions
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 21 Sep 2018 14:33:32 +0000 (17:33 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 3 Oct 2018 14:51:56 +0000 (17:51 +0300)
commitc5e69ab35c0d7069ad860c5cb44a5986e2322160
tree6c979be541a0fe69a63ad473b3f9bf2fbf54c045
parent469a9308adfcfaa85c85f02fec9fdecd9e38fe07
video/hdmi: Constify infoframe passed to the pack functions

Let's make the infoframe pack functions usable with a const infoframe
structure. This allows us to precompute the infoframe earlier, and still
pack it later when we're no longer allowed to modify the structure.
So now we end up with a _check()+_pack_only() or _pack() functions
depending on whether you want to precompute the infoframes or not.
The names aren't great but I was lazy and didn't want to change all the
drivers.

v2: Deal with exynos churn
    Actually export the new funcs
v3: Fix various documentation fails (Hans)

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/20180921143332.28970-1-ville.syrjala@linux.intel.com
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
drivers/video/hdmi.c
include/linux/hdmi.h