From dc4f36c8e7a6f1a2807189276eaf4bf539d660a7 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Tue, 10 Jun 2003 22:29:42 -0700 Subject: [PATCH] I2C: fix up sparse warnings in the i2c-dev driver --- include/linux/i2c-dev.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/linux/i2c-dev.h b/include/linux/i2c-dev.h index dd2e43c66905..1c78b593851a 100644 --- a/include/linux/i2c-dev.h +++ b/include/linux/i2c-dev.h @@ -34,13 +34,13 @@ struct i2c_smbus_ioctl_data { __u8 read_write; __u8 command; __u32 size; - union i2c_smbus_data *data; + union i2c_smbus_data __user *data; }; /* This is the structure as used in the I2C_RDWR ioctl call */ struct i2c_rdwr_ioctl_data { - struct i2c_msg *msgs; /* pointers to i2c_msgs */ - __u32 nmsgs; /* number of i2c_msgs */ + struct i2c_msg __user *msgs; /* pointers to i2c_msgs */ + __u32 nmsgs; /* number of i2c_msgs */ }; #endif /* _LINUX_I2C_DEV_H */ -- cgit v1.2.3