aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/video/hdmi.c6
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)
52 52
53 frame->type = HDMI_INFOFRAME_TYPE_AVI; 53 frame->type = HDMI_INFOFRAME_TYPE_AVI;
54 frame->version = 2; 54 frame->version = 2;
55 frame->length = 13; 55 frame->length = HDMI_AVI_INFOFRAME_SIZE;
56 56
57 return 0; 57 return 0;
58} 58}
@@ -151,7 +151,7 @@ int hdmi_spd_infoframe_init(struct hdmi_spd_infoframe *frame,
151 151
152 frame->type = HDMI_INFOFRAME_TYPE_SPD; 152 frame->type = HDMI_INFOFRAME_TYPE_SPD;
153 frame->version = 1; 153 frame->version = 1;
154 frame->length = 25; 154 frame->length = HDMI_SPD_INFOFRAME_SIZE;
155 155
156 strncpy(frame->vendor, vendor, sizeof(frame->vendor)); 156 strncpy(frame->vendor, vendor, sizeof(frame->vendor));
157 strncpy(frame->product, product, sizeof(frame->product)); 157 strncpy(frame->product, product, sizeof(frame->product));
@@ -218,7 +218,7 @@ int hdmi_audio_infoframe_init(struct hdmi_audio_infoframe *frame)
218 218
219 frame->type = HDMI_INFOFRAME_TYPE_AUDIO; 219 frame->type = HDMI_INFOFRAME_TYPE_AUDIO;
220 frame->version = 1; 220 frame->version = 1;
221 frame->length = 10; 221 frame->length = HDMI_AUDIO_INFOFRAME_SIZE;
222 222
223 return 0; 223 return 0;
224} 224}