]> www.infradead.org Git - users/willy/xarray.git/commitdiff
mmc: alcor: Use str_read_write() helper
authorFeng Wei <feng.wei8@zte.com.cn>
Tue, 1 Apr 2025 11:57:51 +0000 (19:57 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 14 May 2025 14:59:17 +0000 (16:59 +0200)
Remove hard-coded strings by using the str_read_write() helper.

Signed-off-by: Feng Wei <feng.wei8@zte.com.cn>
Signed-off-by: Shao Mingyin <shao.mingyin@zte.com.cn>
Link: https://lore.kernel.org/r/20250401195751834zbm34YDvwPeQf7ooZBCdh@zte.com.cn
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/alcor.c

index b6b6dd677ae5b8833a6ac9c7e9a2839af6eac588..24abd3a93da9cb2a760451a6a277befadd72f1ca 100644 (file)
@@ -20,6 +20,7 @@
 #include <linux/irq.h>
 #include <linux/interrupt.h>
 #include <linux/platform_device.h>
+#include <linux/string_choices.h>
 
 #include <linux/mmc/host.h>
 #include <linux/mmc/mmc.h>
@@ -208,7 +209,7 @@ static void alcor_trf_block_pio(struct alcor_sdmmc_host *host, bool read)
        len = min(host->sg_miter.length, blksize);
 
        dev_dbg(host->dev, "PIO, %s block size: 0x%zx\n",
-               read ? "read" : "write", blksize);
+               str_read_write(read), blksize);
 
        host->sg_miter.consumed = len;
        host->blocks--;