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

soundwire: intel_ace2.x: Use str_read_write() helper

Remove hard-coded strings by using the str_read_write() helper.

Signed-off-by: Yumeng Fang <fang.yumeng@zte.com.cn>
Signed-off-by: Yunjian Long <long.yunjian@zte.com.cn>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20250523141910793yUFpjomfu0byK_yFddHQu@zte.com.cn
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Yumeng Fang and committed by
Vinod Koul
fdf55961 f93b697e

+2 -1
+2 -1
drivers/soundwire/intel_ace2x.c
··· 11 11 #include <linux/soundwire/sdw_registers.h> 12 12 #include <linux/soundwire/sdw.h> 13 13 #include <linux/soundwire/sdw_intel.h> 14 + #include <linux/string_choices.h> 14 15 #include <sound/hdaudio.h> 15 16 #include <sound/hda-mlink.h> 16 17 #include <sound/hda-sdw-bpt.h> ··· 184 183 return 0; 185 184 186 185 dev_err(cdns->dev, "%s: sdw_prepare_%s_dma_buffer failed %d\n", 187 - __func__, command ? "read" : "write", ret); 186 + __func__, str_read_write(command), ret); 188 187 189 188 ret1 = hda_sdw_bpt_close(cdns->dev->parent, /* PCI device */ 190 189 sdw->bpt_ctx.bpt_tx_stream, &sdw->bpt_ctx.dmab_tx_bdl,