summaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-samsung/dev-ts.c
diff options
context:
space:
mode:
authorNaveen Krishna Chatradhi <ch.naveen@samsung.com>2011-08-19 14:56:10 +0200
committerKukjin Kim <kgene.kim@samsung.com>2011-09-16 08:43:20 +0200
commit0804765afcafe9c88890af7ab71710603ccd9442 (patch)
treec721c77ce5af556ac86e06900a0b7f30a320646e /arch/arm/plat-samsung/dev-ts.c
parentARM: SAMSUNG: Consolidate common function to set SDHCI plat data (diff)
downloadlinux-0804765afcafe9c88890af7ab71710603ccd9442.tar.xz
linux-0804765afcafe9c88890af7ab71710603ccd9442.zip
ARM: SAMSUNG: Remove unnecessary duplication of plat_data on TSADC
The default plat_data struct for TSADC is added in devs-ts.c and duplication is removed from the following machines. Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/plat-samsung/dev-ts.c')
-rw-r--r--arch/arm/plat-samsung/dev-ts.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/plat-samsung/dev-ts.c b/arch/arm/plat-samsung/dev-ts.c
index 82543f0248ac..5f3d46a9bd88 100644
--- a/arch/arm/plat-samsung/dev-ts.c
+++ b/arch/arm/plat-samsung/dev-ts.c
@@ -43,8 +43,17 @@ struct platform_device s3c_device_ts = {
.resource = s3c_ts_resource,
};
+static struct s3c2410_ts_mach_info default_ts_data __initdata = {
+ .delay = 10000,
+ .presc = 49,
+ .oversampling_shift = 2,
+};
+
void __init s3c24xx_ts_set_platdata(struct s3c2410_ts_mach_info *pd)
{
+ if (!pd)
+ pd = &default_ts_data;
+
s3c_set_platdata(pd, sizeof(struct s3c2410_ts_mach_info),
&s3c_device_ts);
}