pinctrl: intel: Use str_enable_disable() helper
Subsystems (3)
PATCH 1/1 pinctrl: intel: Use str_enable_disable() helper
Use str_enable_disable() helper instead of open coding the same.
Signed-off-by Andy Shevchenko <[email protected]>
--- drivers/pinctrl/intel/pinctrl-intel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/pinctrl/intel/pinctrl-intel.c +2 -1
@@ -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>
@@ -1171,7 +1172,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 ; }
Signature · 1 line
2.35.1
Quoted 3 lines · Andy Shevchenko
Use
str_enable_disable()helper instead of open coding the same.Signed-off-by Andy Shevchenko <[email protected]>
Reviewed-by Linus Walleij <[email protected]>
Yours,
Linus Walleij
Quoted 8 lines · Linus Walleij
Quoted 3 lines · Andy Shevchenko
Use
str_enable_disable()helper instead of open coding the same.Signed-off-by Andy Shevchenko <[email protected]>Reviewed-by Linus Walleij <[email protected]>
Pushed to my review and testing queue, thanks!
Signature · 2 lines
With Best Regards, Andy Shevchenko