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

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>

authored by

Thorsten Blum and committed by
Mark Brown
c0641be5 69dcf023

+8 -8
+8 -8
sound/soc/sof/intel/atom.c
··· 78 78 imrd = snd_sof_dsp_read64(sdev, DSP_BAR, SHIM_IMRD); 79 79 dev_err(sdev->dev, 80 80 "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); 83 83 dev_err(sdev->dev, 84 84 "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); 87 87 dev_err(sdev->dev, 88 88 "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); 91 91 dev_err(sdev->dev, 92 92 "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); 95 95 96 96 } 97 97 EXPORT_SYMBOL_NS(atom_dump, "SND_SOC_SOF_INTEL_ATOM_HIFI_EP");