Skip to content

Commit

Permalink
ASoC: adi: Use str_enabled_disabled() helper
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hongbo Li authored and Mark Brown committed Sep 2, 2024
1 parent f465d10 commit dc70fd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/adi/axi-i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ static int axi_i2s_probe(struct platform_device *pdev)
goto err_clk_disable;

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

return 0;

Expand Down

0 comments on commit dc70fd0

Please sign in to comment.