Skip to content

Commit c0641be

Browse files
tobluxbroonie
authored andcommitted
ASoC: SOF: Intel: Use str_yes_no() helper in atom_dump()
Remove hard-coded strings by using the str_yes_no() helper function. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Acked-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com> Link: https://patch.msgid.link/20241230085717.785718-2-thorsten.blum@linux.dev Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 69dcf02 commit c0641be

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

sound/soc/sof/intel/atom.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,20 +78,20 @@ void atom_dump(struct snd_sof_dev *sdev, u32 flags)
7878
imrd = snd_sof_dsp_read64(sdev, DSP_BAR, SHIM_IMRD);
7979
dev_err(sdev->dev,
8080
"error: ipc host -> DSP: pending %s complete %s raw 0x%llx\n",
81-
(panic & SHIM_IPCX_BUSY) ? "yes" : "no",
82-
(panic & SHIM_IPCX_DONE) ? "yes" : "no", panic);
81+
str_yes_no(panic & SHIM_IPCX_BUSY),
82+
str_yes_no(panic & SHIM_IPCX_DONE), panic);
8383
dev_err(sdev->dev,
8484
"error: mask host: pending %s complete %s raw 0x%llx\n",
85-
(imrx & SHIM_IMRX_BUSY) ? "yes" : "no",
86-
(imrx & SHIM_IMRX_DONE) ? "yes" : "no", imrx);
85+
str_yes_no(imrx & SHIM_IMRX_BUSY),
86+
str_yes_no(imrx & SHIM_IMRX_DONE), imrx);
8787
dev_err(sdev->dev,
8888
"error: ipc DSP -> host: pending %s complete %s raw 0x%llx\n",
89-
(status & SHIM_IPCD_BUSY) ? "yes" : "no",
90-
(status & SHIM_IPCD_DONE) ? "yes" : "no", status);
89+
str_yes_no(status & SHIM_IPCD_BUSY),
90+
str_yes_no(status & SHIM_IPCD_DONE), status);
9191
dev_err(sdev->dev,
9292
"error: mask DSP: pending %s complete %s raw 0x%llx\n",
93-
(imrd & SHIM_IMRD_BUSY) ? "yes" : "no",
94-
(imrd & SHIM_IMRD_DONE) ? "yes" : "no", imrd);
93+
str_yes_no(imrd & SHIM_IMRD_BUSY),
94+
str_yes_no(imrd & SHIM_IMRD_DONE), imrd);
9595

9696
}
9797
EXPORT_SYMBOL_NS(atom_dump, "SND_SOC_SOF_INTEL_ATOM_HIFI_EP");

0 commit comments

Comments
 (0)