Skip to content

Commit

Permalink
ARM: S3C24XX: Convert the touchscreen setup code to common GPIO API
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sylwester Nawrocki authored and Kukjin Kim committed Jul 13, 2012
1 parent 9491173 commit 1eea9f1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions arch/arm/mach-s3c24xx/setup-ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
struct platform_device; /* don't need the contents */

#include <mach/hardware.h>
#include <mach/regs-gpio.h>

/**
* s3c24xx_ts_cfg_gpio - configure gpio for s3c2410 systems
Expand All @@ -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));
}

0 comments on commit 1eea9f1

Please sign in to comment.