diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2013-08-06 20:32:13 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-08-08 14:04:44 +0200 |
commit | 3c6b054de1c0243a0f708abf337f2a0e270ce247 (patch) | |
tree | e02a1944313621dd678a4afa40595b1efa7ebc59 /drivers/video/hdmi.c | |
parent | 9843877d10700d6b64b615e0e8724fc9f6ff6268 (diff) | |
download | blackbird-op-linux-3c6b054de1c0243a0f708abf337f2a0e270ce247.tar.gz blackbird-op-linux-3c6b054de1c0243a0f708abf337f2a0e270ce247.zip |
video/hdmi: Replace the payload length by their defines
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 'drivers/video/hdmi.c')
-rw-r--r-- | drivers/video/hdmi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/hdmi.c b/drivers/video/hdmi.c index 40178338b619..dbd882ffafbb 100644 --- a/drivers/video/hdmi.c +++ b/drivers/video/hdmi.c @@ -52,7 +52,7 @@ int hdmi_avi_infoframe_init(struct hdmi_avi_infoframe *frame) frame->type = HDMI_INFOFRAME_TYPE_AVI; frame->version = 2; - frame->length = 13; + frame->length = HDMI_AVI_INFOFRAME_SIZE; return 0; } @@ -151,7 +151,7 @@ int hdmi_spd_infoframe_init(struct hdmi_spd_infoframe *frame, frame->type = HDMI_INFOFRAME_TYPE_SPD; frame->version = 1; - frame->length = 25; + frame->length = HDMI_SPD_INFOFRAME_SIZE; strncpy(frame->vendor, vendor, sizeof(frame->vendor)); strncpy(frame->product, product, sizeof(frame->product)); @@ -218,7 +218,7 @@ int hdmi_audio_infoframe_init(struct hdmi_audio_infoframe *frame) frame->type = HDMI_INFOFRAME_TYPE_AUDIO; frame->version = 1; - frame->length = 10; + frame->length = HDMI_AUDIO_INFOFRAME_SIZE; return 0; } |