From patchwork Fri Dec 14 16:19:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 13590 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 6C17B23FB4 for ; Fri, 14 Dec 2012 16:19:56 +0000 (UTC) Received: from mail-ia0-f180.google.com (mail-ia0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 16B3CA195F6 for ; Fri, 14 Dec 2012 16:19:55 +0000 (UTC) Received: by mail-ia0-f180.google.com with SMTP id t4so3226025iag.11 for ; Fri, 14 Dec 2012 08:19:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:received-spf :from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=TnyORPAzaZnRWvDasnL3NM7lPggtL4Oy9q3ZA8vVKo0=; b=XQKtisw7/8ERunL9D29ZjBgqYkI6KpDDUo1PQ+Q7+jJszFwY2HImhHagXirRxUfFC+ pZy4N6lYh21Wtd7RfxyEBl6KeaWxQcf7fD6k3nhk8EkWhtW1tY4AFXH6anEVKZW+QQK+ hNnQIhcDytk9wjGjOnUVjTSBfk252zQNcXCtRk4Z0b5ARotse8Up7mTsqB3td314wzYE Mi4qSX2go0xU/vSi5W5Uv0zlaaTCPW3tLUnsCdbJ+f6Dtl6jCAVdeRuyHDD0fhINvF5C VXQFWSSvJRezPGpvJr204aoZON0d184EpwVD2+NsYZ3KxwQ37hXj88KYzM2T4IJXh+X6 DwmQ== X-Received: by 10.50.161.169 with SMTP id xt9mr2004744igb.62.1355501995515; Fri, 14 Dec 2012 08:19:55 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp81582igt; Fri, 14 Dec 2012 08:19:54 -0800 (PST) Received: by 10.194.79.34 with SMTP id g2mr4563597wjx.17.1355501993989; Fri, 14 Dec 2012 08:19:53 -0800 (PST) Received: from mail-we0-f175.google.com (mail-we0-f175.google.com [74.125.82.175]) by mx.google.com with ESMTPS id ej3si15027935wib.16.2012.12.14.08.19.53 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 14 Dec 2012 08:19:53 -0800 (PST) Received-SPF: neutral (google.com: 74.125.82.175 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.175; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.175 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-we0-f175.google.com with SMTP id z53so1598856wey.20 for ; Fri, 14 Dec 2012 08:19:53 -0800 (PST) Received: by 10.194.177.199 with SMTP id cs7mr4449934wjc.41.1355501993493; Fri, 14 Dec 2012 08:19:53 -0800 (PST) Received: from localhost.localdomain (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id u6sm8325248wif.2.2012.12.14.08.19.51 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 14 Dec 2012 08:19:52 -0800 (PST) From: Lee Jones To: linux-kernel@vger.kernel.org Cc: linus.walleij@linaro.org, Bibek Basu , Lee Jones , Mian Yousaf Kaukab Subject: [PATCH 04/21] gpio: ab8500: Read register corrected in get_value api Date: Fri, 14 Dec 2012 16:19:22 +0000 Message-Id: <1355501979-1157-5-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1355501979-1157-1-git-send-email-lee.jones@linaro.org> References: <1355501979-1157-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQnhvBiQedalsYYACt7HNu/r4iXBZsKuHz215pPMbsrPn6ZcF1QLTAOgo975xnD424VNOZ8M From: Bibek Basu Read register is corrected from "AB8500_GPIO_OUT1_REG" to "AB8500_GPIO_IN1_REG" in get_value api Signed-off-by: Lee Jones Signed-off-by: Bibek Basu Signed-off-by: Mian Yousaf Kaukab Reviewed-by: Jonas ABERG Tested-by: Jonas ABERG --- drivers/gpio/gpio-ab8500.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-ab8500.c b/drivers/gpio/gpio-ab8500.c index b7d4416..77fe1d7 100644 --- a/drivers/gpio/gpio-ab8500.c +++ b/drivers/gpio/gpio-ab8500.c @@ -115,7 +115,7 @@ static int ab8500_gpio_get(struct gpio_chip *chip, unsigned offset) { struct ab8500_gpio *ab8500_gpio = to_ab8500_gpio(chip); u8 mask = 1 << (offset % 8); - u8 reg = AB8500_GPIO_OUT1_REG + (offset / 8); + u8 reg = AB8500_GPIO_IN1_REG + (offset / 8); int ret; u8 data; ret = abx500_get_register_interruptible(ab8500_gpio->dev, AB8500_MISC,