projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e77482d
)
at24: Init dynamic bin_attribute structures
author
Wolfram Sang
<
[email protected]
>
Sat, 13 Mar 2010 19:56:55 +0000
(20:56 +0100)
committer
Jean Delvare
<
[email protected]
>
Sat, 13 Mar 2010 19:56:55 +0000
(20:56 +0100)
Commit
6992f5334995af474c2b58d010d08bc597f0f2fe
introduced this requirement.
Reported-by: Albrecht Dress <
[email protected]
>
Signed-off-by: Wolfram Sang <
[email protected]
>
Signed-off-by: Eric W. Biederman <
[email protected]
>
Signed-off-by: Jean Delvare <
[email protected]
>
drivers/misc/eeprom/at24.c
patch
|
blob
|
history
diff --git
a/drivers/misc/eeprom/at24.c
b/drivers/misc/eeprom/at24.c
index 2cb2736d65aa41bf959c62f6475d0b5ee57d8f15..db7d0f21b65d34f450db3d731abd1da807c6afbf 100644
(file)
--- a/
drivers/misc/eeprom/at24.c
+++ b/
drivers/misc/eeprom/at24.c
@@
-505,6
+505,7
@@
static int at24_probe(struct i2c_client *client, const struct i2c_device_id *id)
* Export the EEPROM bytes through sysfs, since that's convenient.
* By default, only root should see the data (maybe passwords etc)
*/
+ sysfs_bin_attr_init(&at24->bin);
at24->bin.attr.name = "eeprom";
at24->bin.attr.mode = chip.flags & AT24_FLAG_IRUGO ? S_IRUGO : S_IRUSR;
at24->bin.read = at24_bin_read;