Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192075
b: refs/heads/master
c: 658ad39
h: refs/heads/master
i:
  192073: e1bfc10
  192071: 7c1875a
v: v3
  • Loading branch information
Naveen Krishna authored and Ben Dooks committed May 19, 2010
1 parent bedb23e commit 5edf726
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2b6c02abca5a04bf8d9f8a3b1976a5b10d317603
refs/heads/master: 658ad39ea91d8f0597654032a768930497161a58
23 changes: 3 additions & 20 deletions trunk/drivers/input/touchscreen/s3c2410_ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@
#include <plat/regs-adc.h>
#include <plat/ts.h>

#include <mach/regs-gpio.h>

#define TSC_SLEEP (S3C2410_ADCTSC_PULL_UP_DISABLE | S3C2410_ADCTSC_XY_PST(0))

#define INT_DOWN (0)
Expand Down Expand Up @@ -87,21 +85,6 @@ struct s3c2410ts {

static struct s3c2410ts ts;

/**
* s3c2410_ts_connect - configure gpio for s3c2410 systems
*
* Configure the GPIO for the S3C2410 system, where we have external FETs
* connected to the device (later systems such as the S3C2440 integrate
* these into the device).
*/
static inline void s3c2410_ts_connect(void)
{
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);
}

/**
* get_down - return the down state of the pen
* @data0: The data read from ADCDAT0 register.
Expand Down Expand Up @@ -296,9 +279,9 @@ static int __devinit s3c2410ts_probe(struct platform_device *pdev)
goto err_clk;
}

/* Configure the touchscreen external FETs on the S3C2410 */
if (!platform_get_device_id(pdev)->driver_data)
s3c2410_ts_connect();
/* inititalise the gpio */
if (info->cfg_gpio)
info->cfg_gpio(to_platform_device(ts.dev));

ts.client = s3c_adc_register(pdev, s3c24xx_ts_select,
s3c24xx_ts_conversion, 1);
Expand Down

0 comments on commit 5edf726

Please sign in to comment.