Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/ps3: Use str_write_read() in ps3_notification_read_write()

Remove hard-coded strings by using the str_write_read() helper function.

Suggested-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250219111445.2875-2-thorsten.blum@linux.dev

authored by

Thorsten Blum and committed by
Madhavan Srinivasan
f69898bc 02a1324b

+2 -1
+2 -1
arch/powerpc/platforms/ps3/device-init.c
··· 14 14 #include <linux/slab.h> 15 15 #include <linux/reboot.h> 16 16 #include <linux/rcuwait.h> 17 + #include <linux/string_choices.h> 17 18 18 19 #include <asm/firmware.h> 19 20 #include <asm/lv1call.h> ··· 725 724 static int ps3_notification_read_write(struct ps3_notification_device *dev, 726 725 u64 lpar, int write) 727 726 { 728 - const char *op = write ? "write" : "read"; 727 + const char *op = str_write_read(write); 729 728 unsigned long flags; 730 729 int res; 731 730