aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-samsung/gpiolib.c
diff options
context:
space:
mode:
authorKukjin Kim <kgene.kim@samsung.com>2010-11-23 20:59:57 -0500
committerKukjin Kim <kgene.kim@samsung.com>2010-12-29 19:37:28 -0500
commit4603089d7c5186d255c4718171187d00ee4d3452 (patch)
tree7c1827b9938c19884a9dd7710b101b5f3250b5b7 /arch/arm/plat-samsung/gpiolib.c
parentf50266d3139a0e8a26f6f387c91816ab60dac0b4 (diff)
ARM: SAMSUNG: Cleanup GPIOlib adding 2bit chips
This patch adds samsung_gpiolib_add_2bit_chips() for cleanup regarding GPIOlib adding 2bit chips. Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/plat-samsung/gpiolib.c')
-rw-r--r--arch/arm/plat-samsung/gpiolib.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/plat-samsung/gpiolib.c b/arch/arm/plat-samsung/gpiolib.c
index c354089254fc..ea37c0461788 100644
--- a/arch/arm/plat-samsung/gpiolib.c
+++ b/arch/arm/plat-samsung/gpiolib.c
@@ -197,3 +197,10 @@ void __init samsung_gpiolib_add_4bit2_chips(struct s3c_gpio_chip *chip,
197 s3c_gpiolib_add(chip); 197 s3c_gpiolib_add(chip);
198 } 198 }
199} 199}
200
201void __init samsung_gpiolib_add_2bit_chips(struct s3c_gpio_chip *chip,
202 int nr_chips)
203{
204 for (; nr_chips > 0; nr_chips--, chip++)
205 s3c_gpiolib_add(chip);
206}