aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2021-07-12 17:23:23 +0300
committerWolfram Sang <[email protected]>2021-08-11 16:48:51 +0200
commitb18f32d9874ec23f12416c08764d65a318aeb9f6 (patch)
treeddc66e54214df17270bb479aeee178d15f4a1459 /net/lapb/lapb_subr.c
parent295e0e7be753e4e329858482236088e41a118487 (diff)
i2c: dev: Use sysfs_emit() in "show" functions
The sysfs_emit() function was introduced to make it less ambiguous which function is preferred when writing to the output buffer in a "show" callback [1]. Convert the I²C device sysfs interface from sprintf() to sysfs_emit() accordingly, as the latter is aware of the PAGE_SIZE buffer and correctly returns the number of bytes written into the buffer. No functional change intended. [1] Documentation/filesystems/sysfs.rst Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions