diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2013-08-06 15:32:15 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-08-08 08:04:45 -0400 |
commit | 61177b0e12ba162d5de206914e8703d8eb90ad19 (patch) | |
tree | a865a3b21c48d68ea38274158cef6466fb57ef96 /include/linux/hdmi.h | |
parent | 72b098964d3c3fb030dcac2d4c869c9851a0d17a (diff) |
video/hdmi: Add a macro to return the size of a full infoframe
Cc: Thierry Reding <thierry.reding@avionic-design.de>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Acked-by: Dave Airlie <airlied@gmail.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/linux/hdmi.h')
-rw-r--r-- | include/linux/hdmi.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/hdmi.h b/include/linux/hdmi.h index 0f3f82eadef7..bc6743e76e37 100644 --- a/include/linux/hdmi.h +++ b/include/linux/hdmi.h | |||
@@ -23,6 +23,9 @@ enum hdmi_infoframe_type { | |||
23 | #define HDMI_SPD_INFOFRAME_SIZE 25 | 23 | #define HDMI_SPD_INFOFRAME_SIZE 25 |
24 | #define HDMI_AUDIO_INFOFRAME_SIZE 10 | 24 | #define HDMI_AUDIO_INFOFRAME_SIZE 10 |
25 | 25 | ||
26 | #define HDMI_INFOFRAME_SIZE(type) \ | ||
27 | (HDMI_INFOFRAME_HEADER_SIZE + HDMI_ ## type ## _INFOFRAME_SIZE) | ||
28 | |||
26 | struct hdmi_any_infoframe { | 29 | struct hdmi_any_infoframe { |
27 | enum hdmi_infoframe_type type; | 30 | enum hdmi_infoframe_type type; |
28 | unsigned char version; | 31 | unsigned char version; |