Commit 1eea9f12029d8af8a89ef84b8e60212c6d4f31df

Authored by Sylwester Nawrocki
Committed by Kukjin Kim
1 parent 949117356e

ARM: S3C24XX: Convert the touchscreen setup code to common GPIO API

Replace the S3C24XX SoC specific calls with the common gpiolib
API. This removes one more user of an obsolete GPIO API.

Signed-off-by: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>

Showing 1 changed file with 1 additions and 5 deletions Side-by-side Diff

arch/arm/mach-s3c24xx/setup-ts.c
... ... @@ -16,7 +16,6 @@
16 16 struct platform_device; /* don't need the contents */
17 17  
18 18 #include <mach/hardware.h>
19   -#include <mach/regs-gpio.h>
20 19  
21 20 /**
22 21 * s3c24xx_ts_cfg_gpio - configure gpio for s3c2410 systems
... ... @@ -27,9 +26,6 @@
27 26 */
28 27 void s3c24xx_ts_cfg_gpio(struct platform_device *dev)
29 28 {
30   - s3c2410_gpio_cfgpin(S3C2410_GPG(12), S3C2410_GPG12_XMON);
31   - s3c2410_gpio_cfgpin(S3C2410_GPG(13), S3C2410_GPG13_nXPON);
32   - s3c2410_gpio_cfgpin(S3C2410_GPG(14), S3C2410_GPG14_YMON);
33   - s3c2410_gpio_cfgpin(S3C2410_GPG(15), S3C2410_GPG15_nYPON);
  29 + s3c_gpio_cfgpin_range(S3C2410_GPG(12), 4, S3C_GPIO_SFN(3));
34 30 }