Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Feng Wei and committed by
Ulf Hansson
7ea500bc 18da3ecd

+2 -1
+2 -1
drivers/mmc/host/alcor.c
··· 20 20 #include <linux/irq.h> 21 21 #include <linux/interrupt.h> 22 22 #include <linux/platform_device.h> 23 + #include <linux/string_choices.h> 23 24 24 25 #include <linux/mmc/host.h> 25 26 #include <linux/mmc/mmc.h> ··· 209 208 len = min(host->sg_miter.length, blksize); 210 209 211 210 dev_dbg(host->dev, "PIO, %s block size: 0x%zx\n", 212 - read ? "read" : "write", blksize); 211 + str_read_write(read), blksize); 213 212 214 213 host->sg_miter.consumed = len; 215 214 host->blocks--;