From: Thorsten Blum Date: Wed, 19 Feb 2025 11:14:45 +0000 (+0100) Subject: powerpc/ps3: Use str_write_read() in ps3_notification_read_write() X-Git-Tag: v6.16-rc1~200^2~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f69898bce204a67edd48e074069ca3c5d8537334;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Thorsten Blum Reviewed-by: Geert Uytterhoeven Signed-off-by: Madhavan Srinivasan Link: https://patch.msgid.link/20250219111445.2875-2-thorsten.blum@linux.dev --- diff --git a/arch/powerpc/platforms/ps3/device-init.c b/arch/powerpc/platforms/ps3/device-init.c index 61722133eb2d3..22d91ac424ddf 100644 --- a/arch/powerpc/platforms/ps3/device-init.c +++ b/arch/powerpc/platforms/ps3/device-init.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include @@ -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;