From: Damien Lespiau Date: Tue, 6 Aug 2013 19:32:15 +0000 (+0100) Subject: video/hdmi: Add a macro to return the size of a full infoframe X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=61177b0e12ba162d5de206914e8703d8eb90ad19;p=openwrt%2Fstaging%2Fblogic.git video/hdmi: Add a macro to return the size of a full infoframe Cc: Thierry Reding Reviewed-by: Ville Syrjälä Signed-off-by: Damien Lespiau Acked-by: Dave Airlie Reviewed-by: Alex Deucher Signed-off-by: Daniel Vetter --- 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 { #define HDMI_SPD_INFOFRAME_SIZE 25 #define HDMI_AUDIO_INFOFRAME_SIZE 10 +#define HDMI_INFOFRAME_SIZE(type) \ + (HDMI_INFOFRAME_HEADER_SIZE + HDMI_ ## type ## _INFOFRAME_SIZE) + struct hdmi_any_infoframe { enum hdmi_infoframe_type type; unsigned char version;