ARM: S5PV210: add common I2C device helpers
[safe/jmp/linux-2.6] / arch / arm / plat-samsung / include / plat / iic-core.h
index 36397ca..f182669 100644 (file)
@@ -32,4 +32,11 @@ static inline void s3c_i2c1_setname(char *name)
 #endif
 }
 
+static inline void s3c_i2c2_setname(char *name)
+{
+#ifdef CONFIG_S3C_DEV_I2C2
+       s3c_device_i2c2.name = name;
+#endif
+}
+
 #endif /* __ASM_ARCH_IIC_H */