public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gpio: samsung: remove exynos_gpio_cfg
@ 2012-12-14 10:44 Joonyoung Shim
  2012-12-14 10:44 ` [PATCH] gpio: samsung: add GPIO interrupt registration for exynos5 Joonyoung Shim
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Joonyoung Shim @ 2012-12-14 10:44 UTC (permalink / raw)
  To: grant.likely, linus.walleij
  Cc: linux-samsung-soc, linux-kernel, kgene.kim, kyungmin.park

The exynos_gpio_cfg can be substituted to samsung_gpio_cfgs[8].

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
---
 drivers/gpio/gpio-samsung.c |   25 ++++++++-----------------
 1 file changed, 8 insertions(+), 17 deletions(-)

diff --git a/drivers/gpio/gpio-samsung.c b/drivers/gpio/gpio-samsung.c
index 6f93d36..a462f2c 100644
--- a/drivers/gpio/gpio-samsung.c
+++ b/drivers/gpio/gpio-samsung.c
@@ -452,15 +452,6 @@ static struct samsung_gpio_cfg s3c24xx_gpiocfg_banka = {
 };
 #endif
 
-#if defined(CONFIG_ARCH_EXYNOS4) || defined(CONFIG_ARCH_EXYNOS5)
-static struct samsung_gpio_cfg exynos_gpio_cfg = {
-	.set_pull	= exynos_gpio_setpull,
-	.get_pull	= exynos_gpio_getpull,
-	.set_config	= samsung_gpio_setcfg_4bit,
-	.get_config	= samsung_gpio_getcfg_4bit,
-};
-#endif
-
 #if defined(CONFIG_CPU_S5P6440) || defined(CONFIG_CPU_S5P6450)
 static struct samsung_gpio_cfg s5p64x0_gpio_cfg_rbank = {
 	.cfg_eint	= 0x3,
@@ -2181,7 +2172,7 @@ static struct samsung_gpio_chip s5pv210_gpios_4bit[] = {
  * Followings are the gpio banks in EXYNOS SoCs
  *
  * The 'config' member when left to NULL, is initialized to the default
- * structure exynos_gpio_cfg in the init function below.
+ * structure samsung_gpio_cfgs[8] in the init function below.
  *
  * The 'base' member is also initialized in the init function below.
  * Note: The initialization of 'base' member of samsung_gpio_chip structure
@@ -2837,7 +2828,7 @@ static __init void exynos4_gpiolib_init(void)
 
 	for (i = 0; i < nr_chips; i++, chip++) {
 		if (!chip->config) {
-			chip->config = &exynos_gpio_cfg;
+			chip->config = &samsung_gpio_cfgs[8];
 			chip->group = group++;
 		}
 		exynos_gpiolib_attach_ofnode(chip,
@@ -2864,7 +2855,7 @@ static __init void exynos4_gpiolib_init(void)
 
 	for (i = 0; i < nr_chips; i++, chip++) {
 		if (!chip->config) {
-			chip->config = &exynos_gpio_cfg;
+			chip->config = &samsung_gpio_cfgs[8];
 			chip->group = group++;
 		}
 		exynos_gpiolib_attach_ofnode(chip,
@@ -2885,7 +2876,7 @@ static __init void exynos4_gpiolib_init(void)
 
 	for (i = 0; i < nr_chips; i++, chip++) {
 		if (!chip->config) {
-			chip->config = &exynos_gpio_cfg;
+			chip->config = &samsung_gpio_cfgs[8];
 			chip->group = group++;
 		}
 		exynos_gpiolib_attach_ofnode(chip,
@@ -2940,7 +2931,7 @@ static __init void exynos5_gpiolib_init(void)
 
 	for (i = 0; i < nr_chips; i++, chip++) {
 		if (!chip->config) {
-			chip->config = &exynos_gpio_cfg;
+			chip->config = &samsung_gpio_cfgs[8];
 			chip->group = group++;
 		}
 		exynos_gpiolib_attach_ofnode(chip,
@@ -2961,7 +2952,7 @@ static __init void exynos5_gpiolib_init(void)
 
 	for (i = 0; i < nr_chips; i++, chip++) {
 		if (!chip->config) {
-			chip->config = &exynos_gpio_cfg;
+			chip->config = &samsung_gpio_cfgs[8];
 			chip->group = group++;
 		}
 		exynos_gpiolib_attach_ofnode(chip,
@@ -2989,7 +2980,7 @@ static __init void exynos5_gpiolib_init(void)
 
 	for (i = 0; i < nr_chips; i++, chip++) {
 		if (!chip->config) {
-			chip->config = &exynos_gpio_cfg;
+			chip->config = &samsung_gpio_cfgs[8];
 			chip->group = group++;
 		}
 		exynos_gpiolib_attach_ofnode(chip,
@@ -3010,7 +3001,7 @@ static __init void exynos5_gpiolib_init(void)
 
 	for (i = 0; i < nr_chips; i++, chip++) {
 		if (!chip->config) {
-			chip->config = &exynos_gpio_cfg;
+			chip->config = &samsung_gpio_cfgs[8];
 			chip->group = group++;
 		}
 		exynos_gpiolib_attach_ofnode(chip,
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-01-17  8:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-14 10:44 [PATCH] gpio: samsung: remove exynos_gpio_cfg Joonyoung Shim
2012-12-14 10:44 ` [PATCH] gpio: samsung: add GPIO interrupt registration for exynos5 Joonyoung Shim
2013-01-17  8:14   ` Linus Walleij
2012-12-14 12:09 ` [PATCH] gpio: samsung: remove exynos_gpio_cfg Tomasz Figa
2012-12-19 22:22 ` Grant Likely
2012-12-20  1:13   ` Joonyoung Shim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox