i2c: rockchip: i2c_msg add scl_rate for compat support old driver
author黄涛 <huangtao@rock-chips.com>
Fri, 13 Dec 2013 11:44:36 +0000 (19:44 +0800)
committer黄涛 <huangtao@rock-chips.com>
Fri, 13 Dec 2013 11:44:36 +0000 (19:44 +0800)
include/uapi/linux/i2c.h

index 0e949cbfd333388fc12d42bcf26e91a2cf1524cf..740002ed9b33f2545d78aaad59a6f0f388128f0f 100644 (file)
@@ -78,6 +78,9 @@ struct i2c_msg {
 #define I2C_M_RECV_LEN         0x0400  /* length will be first received byte */
        __u16 len;              /* msg length                           */
        __u8 *buf;              /* pointer to msg data                  */
+#ifdef CONFIG_I2C_ROCKCHIP_COMPAT
+       __u32 scl_rate;         /* add by kfx */
+#endif
 };
 
 /* To determine what functionality is present */