mirror of https://github.com/torvalds/linux.git
s390/cio/scm: Switch over to sysfs_emit()
Per Documentation/filesystems/sysfs.rst, sysfs_emit() is preferred for presenting attributes to user space in sysfs. Convert the left-over uses in the cio/scm code. Signed-off-by: Mete Durlu <meted@linux.ibm.com> Acked-by: Vineeth Vijayan <vneethv@linux.ibm.com> Reviewed-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
This commit is contained in:
parent
ece8f29d69
commit
2c798d583d
|
|
@ -91,7 +91,7 @@ static ssize_t show_##name(struct device *dev, \
|
|||
int ret; \
|
||||
\
|
||||
device_lock(dev); \
|
||||
ret = sprintf(buf, "%u\n", scmdev->attrs.name); \
|
||||
ret = sysfs_emit(buf, "%u\n", scmdev->attrs.name); \
|
||||
device_unlock(dev); \
|
||||
\
|
||||
return ret; \
|
||||
|
|
|
|||
Loading…
Reference in New Issue