]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
powerpc/ps3: Use str_write_read() in ps3_notification_read_write()
authorThorsten Blum <thorsten.blum@linux.dev>
Wed, 19 Feb 2025 11:14:45 +0000 (12:14 +0100)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Wed, 16 Apr 2025 16:48:12 +0000 (22:18 +0530)
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
arch/powerpc/platforms/ps3/device-init.c

index 61722133eb2d3f99814c5feac113569f630a0c01..22d91ac424ddfaf2a1691f114ee86b702e8e89fe 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/slab.h>
 #include <linux/reboot.h>
 #include <linux/rcuwait.h>
+#include <linux/string_choices.h>
 
 #include <asm/firmware.h>
 #include <asm/lv1call.h>
@@ -724,7 +725,7 @@ static irqreturn_t ps3_notification_interrupt(int irq, void *data)
 static int ps3_notification_read_write(struct ps3_notification_device *dev,
                                       u64 lpar, int write)
 {
-       const char *op = write ? "write" : "read";
+       const char *op = str_write_read(write);
        unsigned long flags;
        int res;