From 21ac533d17c892c39532c263cc6ec15e4507ed3e Mon Sep 17 00:00:00 2001 From: Vince Hsu Date: Mon, 21 Apr 2014 17:07:57 +0800 Subject: [PATCH] edid: initialize has_valid_detailed_blocks as 1 In last clean-up commit, the detailed_blocks parsing has been merged to one for-loop and combining return values in each iteration instead of assignment. As a result, has_valid_detailed_blocks should now be initialized as 1. BRANCH=none BUG=none TEST=Tested AUO 1080p and InnoLux 720p panels on nyan_big Change-Id: Ie4b6e25de63c0e216ae5de9bde20eed1fe3e59a6 Signed-off-by: Vince Hsu Reviewed-on: https://chromium-review.googlesource.com/195803 Reviewed-by: Hung-Te Lin Commit-Queue: Hung-Te Lin Tested-by: Hung-Te Lin --- src/lib/edid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/edid.c b/src/lib/edid.c index 9251cb653d..954bb8a460 100644 --- a/src/lib/edid.c +++ b/src/lib/edid.c @@ -968,6 +968,7 @@ int decode_edid(unsigned char *edid, int size, struct edid *out) .has_valid_cvt = 1, .has_valid_dummy_block = 1, .has_valid_descriptor_ordering = 1, + .has_valid_detailed_blocks = 1, .has_valid_descriptor_pad = 1, .has_valid_range_descriptor = 1, .has_valid_max_dotclock = 1,