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.

ASoC: SOF: ipc3: Use str_enabled_disabled() helper function

Remove hard-coded strings by using the str_enabled_disabled() helper
function. Remove unnecessary curly braces.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20250210224453.363638-2-thorsten.blum@linux.dev
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Thorsten Blum and committed by
Mark Brown
e0f421d7 9dc016ea

+4 -8
+4 -8
sound/soc/sof/ipc3.c
··· 801 801 return -EINVAL; 802 802 } 803 803 804 - if (ready->flags & SOF_IPC_INFO_BUILD) { 804 + if (ready->flags & SOF_IPC_INFO_BUILD) 805 805 dev_info(sdev->dev, 806 806 "Firmware debug build %d on %s-%s - options:\n" 807 807 " GDB: %s\n" 808 808 " lock debug: %s\n" 809 809 " lock vdebug: %s\n", 810 810 v->build, v->date, v->time, 811 - (ready->flags & SOF_IPC_INFO_GDB) ? 812 - "enabled" : "disabled", 813 - (ready->flags & SOF_IPC_INFO_LOCKS) ? 814 - "enabled" : "disabled", 815 - (ready->flags & SOF_IPC_INFO_LOCKSV) ? 816 - "enabled" : "disabled"); 817 - } 811 + str_enabled_disabled(ready->flags & SOF_IPC_INFO_GDB), 812 + str_enabled_disabled(ready->flags & SOF_IPC_INFO_LOCKS), 813 + str_enabled_disabled(ready->flags & SOF_IPC_INFO_LOCKSV)); 818 814 819 815 /* copy the fw_version into debugfs at first boot */ 820 816 memcpy(&sdev->fw_version, v, sizeof(*v));