From: Sylwester Nawrocki Date: Fri, 13 Jul 2012 09:05:05 +0000 (+0900) Subject: ARM: S3C24XX: Convert the touchscreen setup code to common GPIO API X-Git-Tag: upstream/snapshot3+hdmi~7019^2^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1eea9f12029d8af8a89ef84b8e60212c6d4f31df;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Signed-off-by: Kukjin Kim --- diff --git a/arch/arm/mach-s3c24xx/setup-ts.c b/arch/arm/mach-s3c24xx/setup-ts.c index ed26386..4e11aff 100644 --- a/arch/arm/mach-s3c24xx/setup-ts.c +++ b/arch/arm/mach-s3c24xx/setup-ts.c @@ -16,7 +16,6 @@ struct platform_device; /* don't need the contents */ #include -#include /** * s3c24xx_ts_cfg_gpio - configure gpio for s3c2410 systems @@ -27,8 +26,5 @@ struct platform_device; /* don't need the contents */ */ void s3c24xx_ts_cfg_gpio(struct platform_device *dev) { - s3c2410_gpio_cfgpin(S3C2410_GPG(12), S3C2410_GPG12_XMON); - s3c2410_gpio_cfgpin(S3C2410_GPG(13), S3C2410_GPG13_nXPON); - s3c2410_gpio_cfgpin(S3C2410_GPG(14), S3C2410_GPG14_YMON); - s3c2410_gpio_cfgpin(S3C2410_GPG(15), S3C2410_GPG15_nYPON); + s3c_gpio_cfgpin_range(S3C2410_GPG(12), 4, S3C_GPIO_SFN(3)); }