diff options
author | Kukjin Kim <kgene.kim@samsung.com> | 2010-12-30 10:44:53 +0900 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2010-12-30 10:44:53 +0900 |
commit | 5ed76f3d98ffb6ebd754fc7c4cae547d6ffed5ff (patch) | |
tree | 98bb33961415f8b2d011094a6bc398943f238681 /arch/arm/plat-samsung | |
parent | 724c35cf530651f68f5958dc02e0b49ac6661226 (diff) | |
parent | 9af7d94f2966895b37b8ef1e0d88bd4d9e317e74 (diff) | |
download | op-kernel-dev-5ed76f3d98ffb6ebd754fc7c4cae547d6ffed5ff.zip op-kernel-dev-5ed76f3d98ffb6ebd754fc7c4cae547d6ffed5ff.tar.gz |
Merge branch 'next-s5p64x0' into for-next-new
Diffstat (limited to 'arch/arm/plat-samsung')
-rw-r--r-- | arch/arm/plat-samsung/gpiolib.c | 7 | ||||
-rw-r--r-- | arch/arm/plat-samsung/include/plat/gpio-core.h | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/plat-samsung/gpiolib.c b/arch/arm/plat-samsung/gpiolib.c index c354089..ea37c04 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, s3c_gpiolib_add(chip); } } + +void __init samsung_gpiolib_add_2bit_chips(struct s3c_gpio_chip *chip, + int nr_chips) +{ + for (; nr_chips > 0; nr_chips--, chip++) + s3c_gpiolib_add(chip); +} diff --git a/arch/arm/plat-samsung/include/plat/gpio-core.h b/arch/arm/plat-samsung/include/plat/gpio-core.h index 13a22b8..dac35d0 100644 --- a/arch/arm/plat-samsung/include/plat/gpio-core.h +++ b/arch/arm/plat-samsung/include/plat/gpio-core.h @@ -118,6 +118,8 @@ extern void samsung_gpiolib_add_4bit_chips(struct s3c_gpio_chip *chip, int nr_chips); extern void samsung_gpiolib_add_4bit2_chips(struct s3c_gpio_chip *chip, int nr_chips); +extern void samsung_gpiolib_add_2bit_chips(struct s3c_gpio_chip *chip, + int nr_chips); extern void samsung_gpiolib_add_4bit(struct s3c_gpio_chip *chip); extern void samsung_gpiolib_add_4bit2(struct s3c_gpio_chip *chip); |