All of lore.kernel.org
 help / color / mirror / Atom feed
* - mfd-sm501-fix-gpio-number-calculation-for-upper-bank.patch removed from -mm tree
@ 2008-07-25 22:55 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2008-07-25 22:55 UTC (permalink / raw)
  To: ben-linux, mm-commits


The patch titled
     mfd: sm501 fix gpio number calculation for upper bank
has been removed from the -mm tree.  Its filename was
     mfd-sm501-fix-gpio-number-calculation-for-upper-bank.patch

This patch was dropped because it was merged into mainline or a subsystem tree

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: mfd: sm501 fix gpio number calculation for upper bank
From: Ben Dooks <ben-linux@fluff.org>

The sm501_gpio_pin2nr() routine returns the wrong values for gpios in the
upper bank.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/mfd/sm501.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff -puN drivers/mfd/sm501.c~mfd-sm501-fix-gpio-number-calculation-for-upper-bank drivers/mfd/sm501.c
--- a/drivers/mfd/sm501.c~mfd-sm501-fix-gpio-number-calculation-for-upper-bank
+++ a/drivers/mfd/sm501.c
@@ -1108,7 +1108,9 @@ static void sm501_gpio_remove(struct sm5
 static inline int sm501_gpio_pin2nr(struct sm501_devdata *sm, unsigned int pin)
 {
 	struct sm501_gpio *gpio = &sm->gpio;
-	return pin + (pin < 32) ? gpio->low.gpio.base : gpio->high.gpio.base;
+	int base = (pin < 32) ? gpio->low.gpio.base : gpio->high.gpio.base;
+
+	return (pin % 32) + base;
 }
 
 static inline int sm501_gpio_isregistered(struct sm501_devdata *sm)
_

Patches currently in -mm which might be from ben-linux@fluff.org are

origin.patch
linux-next.patch
resource-add-resource_size.patch
resource-add-resource_type-and-ioresource_type_bits.patch
resource-add-new-ioresource_clk-type-v2.patch
i2c-sh_mobile-ioresource_clk-support.patch


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

only message in thread, other threads:[~2008-07-25 22:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-25 22:55 - mfd-sm501-fix-gpio-number-calculation-for-upper-bank.patch removed from -mm tree akpm

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.