Skip to content

Commit ce3a0a2

Browse files
committed
gpio: merrifield: Use str_enable_disable() helper
Use str_enable_disable() helper instead of open coding the same. Signed-off-by: Andy Shevchenko <[email protected]>
1 parent 9abf231 commit ce3a0a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpio/gpio-merrifield.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <linux/module.h>
1515
#include <linux/pci.h>
1616
#include <linux/pinctrl/consumer.h>
17+
#include <linux/string_helpers.h>
1718

1819
#define GCCR 0x000 /* controller configuration */
1920
#define GPLR 0x004 /* pin level r/o */
@@ -331,7 +332,7 @@ static int mrfld_irq_set_wake(struct irq_data *d, unsigned int on)
331332

332333
raw_spin_unlock_irqrestore(&priv->lock, flags);
333334

334-
dev_dbg(priv->dev, "%sable wake for gpio %u\n", on ? "en" : "dis", gpio);
335+
dev_dbg(priv->dev, "%s wake for gpio %u\n", str_enable_disable(on), gpio);
335336
return 0;
336337
}
337338

0 commit comments

Comments
 (0)