gpio: merrifield: Use str_enable_disable() helper
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 8 Oct 2022 19:33:53 +0000 (22:33 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 18 Oct 2022 14:31:20 +0000 (17:31 +0300)
Use str_enable_disable() helper instead of open coding the same.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/gpio/gpio-merrifield.c

index 72ac09a..92ea841 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/module.h>
 #include <linux/pci.h>
 #include <linux/pinctrl/consumer.h>
+#include <linux/string_helpers.h>
 
 #define GCCR           0x000   /* controller configuration */
 #define GPLR           0x004   /* pin level r/o */
@@ -331,7 +332,7 @@ static int mrfld_irq_set_wake(struct irq_data *d, unsigned int on)
 
        raw_spin_unlock_irqrestore(&priv->lock, flags);
 
-       dev_dbg(priv->dev, "%sable wake for gpio %u\n", on ? "en" : "dis", gpio);
+       dev_dbg(priv->dev, "%s wake for gpio %u\n", str_enable_disable(on), gpio);
        return 0;
 }