diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-12 16:40:20 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-12 16:40:20 -0400 |
commit | dc690d8ef842b464f1c429a376ca16cb8dbee6ae (patch) | |
tree | 77955849af5a15755f5e55e24ae4b9c520583a72 /drivers/i2c | |
parent | 57399ec9077a4b962b81037aaa279fab52f5e989 (diff) | |
parent | 91a6902958f052358899f58683d44e36228d85c2 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6: (61 commits)
sysfs: add parameter "struct bin_attribute *" in .read/.write methods for sysfs binary attributes
sysfs: make directory dentries and inodes reclaimable
sysfs: implement sysfs_get_dentry()
sysfs: move sysfs_drop_dentry() to dir.c and make it static
sysfs: restructure add/remove paths and fix inode update
sysfs: use sysfs_mutex to protect the sysfs_dirent tree
sysfs: consolidate sysfs spinlocks
sysfs: make kobj point to sysfs_dirent instead of dentry
sysfs: implement sysfs_find_dirent() and sysfs_get_dirent()
sysfs: implement SYSFS_FLAG_REMOVED flag
sysfs: rename sysfs_dirent->s_type to s_flags and make room for flags
sysfs: make sysfs_drop_dentry() access inodes using ilookup()
sysfs: Fix oops in sysfs_drop_dentry on x86_64
sysfs: use singly-linked list for sysfs_dirent tree
sysfs: slim down sysfs_dirent->s_active
sysfs: move s_active functions to fs/sysfs/dir.c
sysfs: fix root sysfs_dirent -> root dentry association
sysfs: use iget_locked() instead of new_inode()
sysfs: reorganize sysfs_new_indoe() and sysfs_create()
sysfs: fix parent refcounting during rename and move
...
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/chips/eeprom.c | 4 | ||||
-rw-r--r-- | drivers/i2c/chips/max6875.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/i2c/chips/eeprom.c b/drivers/i2c/chips/eeprom.c index 48f857ae8748..d3da1fb05b9b 100644 --- a/drivers/i2c/chips/eeprom.c +++ b/drivers/i2c/chips/eeprom.c | |||
@@ -112,7 +112,8 @@ exit: | |||
112 | mutex_unlock(&data->update_lock); | 112 | mutex_unlock(&data->update_lock); |
113 | } | 113 | } |
114 | 114 | ||
115 | static ssize_t eeprom_read(struct kobject *kobj, char *buf, loff_t off, size_t count) | 115 | static ssize_t eeprom_read(struct kobject *kobj, struct bin_attribute *bin_attr, |
116 | char *buf, loff_t off, size_t count) | ||
116 | { | 117 | { |
117 | struct i2c_client *client = to_i2c_client(container_of(kobj, struct device, kobj)); | 118 | struct i2c_client *client = to_i2c_client(container_of(kobj, struct device, kobj)); |
118 | struct eeprom_data *data = i2c_get_clientdata(client); | 119 | struct eeprom_data *data = i2c_get_clientdata(client); |
@@ -145,7 +146,6 @@ static struct bin_attribute eeprom_attr = { | |||
145 | .attr = { | 146 | .attr = { |
146 | .name = "eeprom", | 147 | .name = "eeprom", |
147 | .mode = S_IRUGO, | 148 | .mode = S_IRUGO, |
148 | .owner = THIS_MODULE, | ||
149 | }, | 149 | }, |
150 | .size = EEPROM_SIZE, | 150 | .size = EEPROM_SIZE, |
151 | .read = eeprom_read, | 151 | .read = eeprom_read, |
diff --git a/drivers/i2c/chips/max6875.c b/drivers/i2c/chips/max6875.c index e9e9e5171b53..64692f666372 100644 --- a/drivers/i2c/chips/max6875.c +++ b/drivers/i2c/chips/max6875.c | |||
@@ -126,8 +126,9 @@ exit_up: | |||
126 | mutex_unlock(&data->update_lock); | 126 | mutex_unlock(&data->update_lock); |
127 | } | 127 | } |
128 | 128 | ||
129 | static ssize_t max6875_read(struct kobject *kobj, char *buf, loff_t off, | 129 | static ssize_t max6875_read(struct kobject *kobj, |
130 | size_t count) | 130 | struct bin_attribute *bin_attr, |
131 | char *buf, loff_t off, size_t count) | ||
131 | { | 132 | { |
132 | struct i2c_client *client = kobj_to_i2c_client(kobj); | 133 | struct i2c_client *client = kobj_to_i2c_client(kobj); |
133 | struct max6875_data *data = i2c_get_clientdata(client); | 134 | struct max6875_data *data = i2c_get_clientdata(client); |
@@ -153,7 +154,6 @@ static struct bin_attribute user_eeprom_attr = { | |||
153 | .attr = { | 154 | .attr = { |
154 | .name = "eeprom", | 155 | .name = "eeprom", |
155 | .mode = S_IRUGO, | 156 | .mode = S_IRUGO, |
156 | .owner = THIS_MODULE, | ||
157 | }, | 157 | }, |
158 | .size = USER_EEPROM_SIZE, | 158 | .size = USER_EEPROM_SIZE, |
159 | .read = max6875_read, | 159 | .read = max6875_read, |