git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
i2c: dev: Use sysfs_emit() in "show" functions
[sfrench/cifs-2.6.git]
/
drivers
/
i2c
/
i2c-dev.c
diff --git
a/drivers/i2c/i2c-dev.c
b/drivers/i2c/i2c-dev.c
index 6cf98c06653a16db5dda825f85d0e4e551851c31..e2b1aba964014582238b5b07c967454cfc35338d 100644
(file)
--- a/
drivers/i2c/i2c-dev.c
+++ b/
drivers/i2c/i2c-dev.c
@@
-102,7
+102,7
@@
static ssize_t name_show(struct device *dev,
if (!i2c_dev)
return -ENODEV;
- return s
printf
(buf, "%s\n", i2c_dev->adap->name);
+ return s
ysfs_emit
(buf, "%s\n", i2c_dev->adap->name);
}
static DEVICE_ATTR_RO(name);