pinctrl: intel: Use str_enable_disable() helper
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 17 Oct 2022 17:15:06 +0000 (20:15 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 26 Oct 2022 13:45:01 +0000 (16:45 +0300)
Use str_enable_disable() helper instead of open coding the same.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/intel/pinctrl-intel.c

index b85140e..b97657e 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/platform_device.h>
 #include <linux/property.h>
 #include <linux/seq_file.h>
+#include <linux/string_helpers.h>
 #include <linux/time.h>
 
 #include <linux/pinctrl/consumer.h>
@@ -1167,7 +1168,7 @@ static int intel_gpio_irq_wake(struct irq_data *d, unsigned int on)
        else
                disable_irq_wake(pctrl->irq);
 
-       dev_dbg(pctrl->dev, "%sable wake for pin %u\n", on ? "en" : "dis", pin);
+       dev_dbg(pctrl->dev, "%s wake for pin %u\n", str_enable_disable(on), pin);
        return 0;
 }