Skip to content

Commit fdf5596

Browse files
Yumeng Fangvinodkoul
authored andcommitted
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>
1 parent f93b697 commit fdf5596

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/soundwire/intel_ace2x.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <linux/soundwire/sdw_registers.h>
1212
#include <linux/soundwire/sdw.h>
1313
#include <linux/soundwire/sdw_intel.h>
14+
#include <linux/string_choices.h>
1415
#include <sound/hdaudio.h>
1516
#include <sound/hda-mlink.h>
1617
#include <sound/hda-sdw-bpt.h>
@@ -183,7 +184,7 @@ static int intel_ace2x_bpt_open_stream(struct sdw_intel *sdw, struct sdw_slave *
183184
return 0;
184185

185186
dev_err(cdns->dev, "%s: sdw_prepare_%s_dma_buffer failed %d\n",
186-
__func__, command ? "read" : "write", ret);
187+
__func__, str_read_write(command), ret);
187188

188189
ret1 = hda_sdw_bpt_close(cdns->dev->parent, /* PCI device */
189190
sdw->bpt_ctx.bpt_tx_stream, &sdw->bpt_ctx.dmab_tx_bdl,

0 commit comments

Comments
 (0)