Skip to contentSkip to conversation

gpio: tps65910: add missing breaks in tps65910_gpio_init

PATCH In review Axel Lin 2 participants 2 messages Jul 6, 2011 GPIO

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 gpio: tps65910: add missing breaks in tps65910_gpio_init

---
 drivers/gpio/gpio-tps65910.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/gpio/gpio-tps65910.c +2 -0
index 4171033..b9c1c29 100644
@@ -81,8 +81,10 @@ void tps65910_gpio_init(struct tps65910 *tps65910, int gpio_base)
 	switch(tps65910_chip_id(tps65910)) {
 	case TPS65910:
 		tps65910->gpio.ngpio	= 6;
+		break;
 	case TPS65911:
 		tps65910->gpio.ngpio	= 9;
+		break;
 	default:
 		return;
 	}
Signature · 1 line
1.7.4.1
#1 lore raw
Quoted 4 lines · Axel Lin
---
 drivers/gpio/gpio-tps65910.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Merged for v3.0, thanks.

g.

Quoted 21 lines
drivers/gpio/gpio-tps65910.c +2 -0
index 4171033..b9c1c29 100644
@@ -81,8 +81,10 @@ void tps65910_gpio_init(struct tps65910 *tps65910, int gpio_base)
 	switch(tps65910_chip_id(tps65910)) {
 	case TPS65910:
 		tps65910->gpio.ngpio	= 6;
+		break;
 	case TPS65911:
 		tps65910->gpio.ngpio	= 9;
+		break;
 	default:
 		return;
 	}
Signature · 1 line
1.7.4.1