diff options
author | Patrick Georgi <pgeorgi@chromium.org> | 2016-05-07 08:06:05 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2016-05-08 08:11:26 +0200 |
commit | 2a6f251f4d8d41d13051ec2c897aea800c07275a (patch) | |
tree | 88424076803df1915796dcd38bdf284a8b92c476 /src/drivers | |
parent | 292be872050dcbeaad6777735c01cb8d1672c46e (diff) | |
download | coreboot-2a6f251f4d8d41d13051ec2c897aea800c07275a.tar.xz |
parade/ps8640: Initialize edid_size
decode_edid either gets EDID_LENGTH bytes or (in the extended case),
2*EDID_LENGTH.
See that this is reflected in its size argument.
Change-Id: If6c76358db4e9ee01c2bd2dbdd5948c61b7aa5bc
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-on: https://review.coreboot.org/14698
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/parade/ps8640/ps8640.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/parade/ps8640/ps8640.c b/src/drivers/parade/ps8640/ps8640.c index dea7be3dfd..884b46af5f 100644 --- a/src/drivers/parade/ps8640/ps8640.c +++ b/src/drivers/parade/ps8640/ps8640.c @@ -25,7 +25,7 @@ int ps8640_get_edid(uint8_t bus, uint8_t chip, struct edid *out) { int ret; u8 edid[EDID_LENGTH * 2]; - int edid_size; + int edid_size = EDID_LENGTH; i2c_writeb(bus, chip + 2, PAGE2_I2C_BYPASS, EDID_I2C_ADDR | I2C_BYPASS_EN); |