All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/2] smscufx: fix EDID parsing on big-endian systems
@ 2012-12-17 11:24 Steve Glendinning
  0 siblings, 0 replies; only message in thread
From: Steve Glendinning @ 2012-12-17 11:24 UTC (permalink / raw)
  To: linux-fbdev

This patch allows smscufx to correctly detect the resolution of a
connected monitor on big-endian systems.

Signed-off-by: Steve Glendinning <steve.glendinning@shawell.net>
---
 drivers/video/smscufx.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/video/smscufx.c b/drivers/video/smscufx.c
index 8009400..bdf7d36 100644
--- a/drivers/video/smscufx.c
+++ b/drivers/video/smscufx.c
@@ -1465,8 +1465,9 @@ static int ufx_read_edid(struct ufx_data *dev, u8 *edid, int edid_len)
 
 		for (j = 0; j < 16; j++) {
 			u32 data_reg_addr = 0x1110 + (j * 4);
-			status = ufx_reg_read(dev, data_reg_addr, edid_u32++);
+			status = ufx_reg_read(dev, data_reg_addr, &temp);
 			check_warn_return(status, "Error reading i2c data");
+			*edid_u32++ = cpu_to_le32(temp);
 		}
 	}
 
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-12-17 11:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-17 11:24 [PATCH 2/2] smscufx: fix EDID parsing on big-endian systems Steve Glendinning

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.