From patchwork Mon Dec 17 11:24:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Glendinning X-Patchwork-Id: 1886731 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 6E547DFB7B for ; Mon, 17 Dec 2012 11:35:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752313Ab2LQLfb (ORCPT ); Mon, 17 Dec 2012 06:35:31 -0500 Received: from cust23-dsl91-135-1.idnet.net ([91.135.1.23]:52215 "EHLO drevil.shawell.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752267Ab2LQLfa (ORCPT ); Mon, 17 Dec 2012 06:35:30 -0500 Received: from ivana.shawell.net (unknown [10.0.20.197]) by drevil.shawell.net (Postfix) with ESMTP id F221A67A43; Mon, 17 Dec 2012 11:24:35 +0000 (GMT) From: Steve Glendinning To: linux-fbdev@vger.kernel.org Cc: FlorianSchandinat@gmx.de, Steve Glendinning Subject: [PATCH 2/2] smscufx: fix EDID parsing on big-endian systems Date: Mon, 17 Dec 2012 11:24:22 +0000 Message-Id: <1355743462-2670-2-git-send-email-steve.glendinning@shawell.net> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1355743462-2670-1-git-send-email-steve.glendinning@shawell.net> References: <1355743462-2670-1-git-send-email-steve.glendinning@shawell.net> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org This patch allows smscufx to correctly detect the resolution of a connected monitor on big-endian systems. Signed-off-by: Steve Glendinning --- 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); } }