summaryrefslogtreecommitdiff
path: root/include/linux/i2c-dev.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <greg@kroah.com>2003-06-10 22:29:42 -0700
committerGreg Kroah-Hartman <greg@kroah.com>2003-06-10 22:29:42 -0700
commitdc4f36c8e7a6f1a2807189276eaf4bf539d660a7 (patch)
tree41d9ba6d5cd210d475cbb0b42b14730413a9756d /include/linux/i2c-dev.h
parent043d475a03bd8f6f9494307a55347305ab30070b (diff)
[PATCH] I2C: fix up sparse warnings in the i2c-dev driver
Diffstat (limited to 'include/linux/i2c-dev.h')
-rw-r--r--include/linux/i2c-dev.h6
1 files changed, 3 insertions, 3 deletions
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 */