diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-10-17 20:15:06 +0300 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-10-26 16:45:01 +0300 |
commit | 98e63c1140a458d6795018ff30e1b259c0e1131c (patch) | |
tree | c3b694cff6463b9bcb1813e0d67cd7bda61cbc0f /drivers/pinctrl/intel | |
parent | 1177ca3a0b53bdfb1438e33a5546527de728ec10 (diff) | |
download | linux-stable-98e63c1140a458d6795018ff30e1b259c0e1131c.tar.gz linux-stable-98e63c1140a458d6795018ff30e1b259c0e1131c.tar.bz2 linux-stable-98e63c1140a458d6795018ff30e1b259c0e1131c.zip |
pinctrl: intel: Use str_enable_disable() helper
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>
Diffstat (limited to 'drivers/pinctrl/intel')
-rw-r--r-- | drivers/pinctrl/intel/pinctrl-intel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pinctrl/intel/pinctrl-intel.c b/drivers/pinctrl/intel/pinctrl-intel.c index b85140eaa9c4..b97657e4792e 100644 --- a/drivers/pinctrl/intel/pinctrl-intel.c +++ b/drivers/pinctrl/intel/pinctrl-intel.c @@ -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; } |