pinctrl: at91: use dev_dbg() instead of printk()
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Wed, 31 Aug 2022 13:56:36 +0000 (16:56 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 2 Sep 2022 22:19:23 +0000 (00:19 +0200)
Use dev_dbg() instead of printk(KERN_DEBUG) to avoid the following
checkpatch.pl warning:
"Prefer [subsystem eg: netdev]_dbg([subsystem]dev, ... then
dev_dbg(dev, ... then pr_debug(...  to printk(KERN_DEBUG ...".

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20220831135636.3176406-4-claudiu.beznea@microchip.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-at91.c

index 631a628..81dbffa 100644 (file)
@@ -1659,8 +1659,8 @@ static int at91_gpio_suspend(struct device *dev)
        if (!at91_chip->wakeups)
                clk_disable_unprepare(at91_chip->clock);
        else
-               printk(KERN_DEBUG "GPIO-%c may wake for %08x\n",
-                      'A' + at91_chip->id, at91_chip->wakeups);
+               dev_dbg(dev, "GPIO-%c may wake for %08x\n",
+                       'A' + at91_chip->id, at91_chip->wakeups);
 
        return 0;
 }