mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 17:17:04 -04:00
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
This commit is contained in:
committed by
Madhavan Srinivasan
parent
02a1324b08
commit
f69898bce2
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user