Skip to content

Commit 7ea500b

Browse files
fengwei0328Ulf Hansson
authored andcommitted
mmc: alcor: Use str_read_write() helper
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>
1 parent 18da3ec commit 7ea500b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/mmc/host/alcor.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <linux/irq.h>
2121
#include <linux/interrupt.h>
2222
#include <linux/platform_device.h>
23+
#include <linux/string_choices.h>
2324

2425
#include <linux/mmc/host.h>
2526
#include <linux/mmc/mmc.h>
@@ -208,7 +209,7 @@ static void alcor_trf_block_pio(struct alcor_sdmmc_host *host, bool read)
208209
len = min(host->sg_miter.length, blksize);
209210

210211
dev_dbg(host->dev, "PIO, %s block size: 0x%zx\n",
211-
read ? "read" : "write", blksize);
212+
str_read_write(read), blksize);
212213

213214
host->sg_miter.consumed = len;
214215
host->blocks--;

0 commit comments

Comments
 (0)