diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2016-10-10 17:49:00 +0200 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2016-10-11 23:35:11 +0200 |
commit | 7141ff3b9f836220333ed153b726a6756b3a5f02 (patch) | |
tree | 3a248626370090f24eb85109e8c9153792864906 /src/northbridge/intel/x4x | |
parent | e1f0ac4baa1bbe561276bee8ebc20fe86b0f8cc2 (diff) |
nb/intel/*/graphic_init: use sizeof instead of hardcoding edid size
Change-Id: I2b8c4ef75cca9f9d5251789cda4187a02076b69d
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/16964
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/northbridge/intel/x4x')
-rw-r--r-- | src/northbridge/intel/x4x/gma.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/northbridge/intel/x4x/gma.c b/src/northbridge/intel/x4x/gma.c index acef053715..e950386d3c 100644 --- a/src/northbridge/intel/x4x/gma.c +++ b/src/northbridge/intel/x4x/gma.c @@ -119,7 +119,8 @@ static void intel_gma_init(const struct northbridge_intel_x4x_config *info, udelay(1); - intel_gmbus_read_edid(mmio + GMBUS0, 2, 0x50, edid_data, 128); + intel_gmbus_read_edid(mmio + GMBUS0, 2, 0x50, edid_data, + sizeof(edid_data)); intel_gmbus_stop(mmio + GMBUS0); decode_edid(edid_data, sizeof(edid_data), &edid); |