From: 黄涛 Date: Fri, 13 Dec 2013 11:44:36 +0000 (+0800) Subject: i2c: rockchip: i2c_msg add scl_rate for compat support old driver X-Git-Tag: firefly_0821_release~6443 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ce551444a18d74e65e1e8b770cac657de250003d;p=firefly-linux-kernel-4.4.55.git i2c: rockchip: i2c_msg add scl_rate for compat support old driver --- diff --git a/include/uapi/linux/i2c.h b/include/uapi/linux/i2c.h index 0e949cbfd333..740002ed9b33 100644 --- a/include/uapi/linux/i2c.h +++ b/include/uapi/linux/i2c.h @@ -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 */