pinctrl: cs42l43: Use str_high_low()
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 29 Jan 2024 15:31:38 +0000 (15:31 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 31 Jan 2024 08:11:14 +0000 (09:11 +0100)
Use str_high_low() rather than open coding.

Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20240129153138.3221604-3-ckeepax@opensource.cirrus.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/cirrus/pinctrl-cs42l43.c

index ac3df58bbe95183f959c40123ab2af4602d5106e..628b60ccc2b07dc77e36da8919436fa348749e0c 100644 (file)
@@ -490,7 +490,7 @@ static void cs42l43_gpio_set(struct gpio_chip *chip, unsigned int offset, int va
        int ret;
 
        dev_dbg(priv->dev, "Setting gpio%d to %s\n",
-               offset + 1, value ? "high" : "low");
+               offset + 1, str_high_low(value));
 
        ret = pm_runtime_resume_and_get(priv->dev);
        if (ret) {