counter/counter-sysfs: use sysfs_emit everywhere
authorDavid Lechner <david@lechnology.com>
Sun, 17 Oct 2021 19:01:06 +0000 (14:01 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Oct 2021 07:40:49 +0000 (09:40 +0200)
commitc3ed761c9e1e4987406671b326dab48a048614ee
tree7f531c051063e13676e9b703e1be626894d39524
parent15c9a359094ec6251578b02387436bc64f11a477
counter/counter-sysfs: use sysfs_emit everywhere

In the counter subsystem, we are already using sysfs_emit(), but there
were a few places where we were still using sprintf() in *_show()
functions. For consistency and added protections, use sysfs_emit()
everywhere.

Suggested-by: Greg KH <gregkh@linuxfoundation.org>
Acked-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: David Lechner <david@lechnology.com>
Link: https://lore.kernel.org/r/20211017190106.3472645-1-david@lechnology.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/counter/counter-sysfs.c