Skip to content

Commit dc70fd0

Browse files
Hongbo Libroonie
authored andcommitted
ASoC: adi: Use str_enabled_disabled() helper
Use str_enabled_disabled() helper instead of open coding the same. Signed-off-by: Hongbo Li <lihongbo22@huawei.com> Link: https://patch.msgid.link/20240831095149.4161729-1-lihongbo22@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent f465d10 commit dc70fd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/adi/axi-i2s.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ static int axi_i2s_probe(struct platform_device *pdev)
264264
goto err_clk_disable;
265265

266266
dev_info(&pdev->dev, "probed, capture %s, playback %s\n",
267-
i2s->has_capture ? "enabled" : "disabled",
268-
i2s->has_playback ? "enabled" : "disabled");
267+
str_enabled_disabled(i2s->has_capture),
268+
str_enabled_disabled(i2s->has_playback));
269269

270270
return 0;
271271

0 commit comments

Comments
 (0)