diff options
author | Charles Keepax <ckeepax@opensource.cirrus.com> | 2024-01-29 18:31:38 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2024-01-31 11:11:14 +0300 |
commit | b96e00a4749b0c60c4eb159b2b6d1c14401c0014 (patch) | |
tree | 5bfdf9751281fffe25854875c7619eaeb75b5c3f /drivers/pinctrl/cirrus | |
parent | ac98dd1cf0c67c7224ab7f5bbbf0a14c2a2b892a (diff) | |
download | linux-b96e00a4749b0c60c4eb159b2b6d1c14401c0014.tar.xz |
pinctrl: cs42l43: Use str_high_low()
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>
Diffstat (limited to 'drivers/pinctrl/cirrus')
-rw-r--r-- | drivers/pinctrl/cirrus/pinctrl-cs42l43.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/cirrus/pinctrl-cs42l43.c b/drivers/pinctrl/cirrus/pinctrl-cs42l43.c index ac3df58bbe95..628b60ccc2b0 100644 --- a/drivers/pinctrl/cirrus/pinctrl-cs42l43.c +++ b/drivers/pinctrl/cirrus/pinctrl-cs42l43.c @@ -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) { |