powerpc/ps3: replace open-coded sysfs_emit function
authorPaulo Miguel Almeida <paulo.miguel.almeida.rodenas@gmail.com>
Sat, 19 Oct 2024 02:13:49 +0000 (15:13 +1300)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 5 Nov 2024 09:45:32 +0000 (20:45 +1100)
commit2866949ec889cf383c481119c617b9cead733070
tree3feb4a7d5e77dbf094fd6fed192fe8c1fba4b16e
parentd677ce521334d8f1f327cafc8b1b7854b0833158
powerpc/ps3: replace open-coded sysfs_emit function

sysfs_emit() helper function should be used when formatting the value
to be returned to user space.

This patch replaces open-coded sysfs_emit() in sysfs .show() callbacks

Link: https://github.com/KSPP/linux/issues/105
Signed-off-by: Paulo Miguel Almeida <paulo.miguel.almeida.rodenas@gmail.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://patch.msgid.link/ZxMV3YvSulJFZ8rk@mail.google.com
arch/powerpc/platforms/ps3/system-bus.c