summaryrefslogtreecommitdiff
path: root/arch/arm/plat-samsung/dev-i2c5.c
diff options
context:
space:
mode:
authorNaveen Krishna Chatradhi <ch.naveen@samsung.com>2011-07-16 08:30:09 +0400
committerKukjin Kim <kgene.kim@samsung.com>2011-07-20 21:09:59 +0400
commit696f6fc1be92a8e117b4d07de34bf2d514a9c079 (patch)
tree663f0fc37c4a9a66eb7dbbf2f6c6f995490c7a4e /arch/arm/plat-samsung/dev-i2c5.c
parent2c2e2c27e621e75313a6d0574afc0eedae3da84e (diff)
downloadlinux-696f6fc1be92a8e117b4d07de34bf2d514a9c079.tar.xz
ARM: SAMSUNG: Cleanup I2C code in plat-samsung
Removes the duplication of default info structure in dev-i2c[0 ~ 7].c files 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-i2c5.c')
-rw-r--r--arch/arm/plat-samsung/dev-i2c5.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/arch/arm/plat-samsung/dev-i2c5.c b/arch/arm/plat-samsung/dev-i2c5.c
index a0ce4d333d02..f49655784563 100644
--- a/arch/arm/plat-samsung/dev-i2c5.c
+++ b/arch/arm/plat-samsung/dev-i2c5.c
@@ -43,20 +43,14 @@ struct platform_device s3c_device_i2c5 = {
.resource = s3c_i2c_resource,
};
-static struct s3c2410_platform_i2c default_i2c_data5 __initdata = {
- .flags = 0,
- .bus_num = 5,
- .slave_addr = 0x10,
- .frequency = 100*1000,
- .sda_delay = 100,
-};
-
void __init s3c_i2c5_set_platdata(struct s3c2410_platform_i2c *pd)
{
struct s3c2410_platform_i2c *npd;
- if (!pd)
- pd = &default_i2c_data5;
+ if (!pd) {
+ pd = &default_i2c_data;
+ pd->bus_num = 5;
+ }
npd = s3c_set_platdata(pd, sizeof(struct s3c2410_platform_i2c),
&s3c_device_i2c5);