Commit 30e5c3e6 authored by Sachin Kamat's avatar Sachin Kamat Committed by Bryan Wu

leds: leds-lt3593: Fix checkpatch warnings

Fixes the following type of checkpatch warnings:
WARNING: Prefer netdev_info(netdev, ... then dev_info(dev, ...
then pr_info(...  to printk(KERN_INFO ...
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarBryan Wu <cooloney@gmail.com>
parent 39de81a9
......@@ -89,7 +89,7 @@ static int __devinit create_lt3593_led(const struct gpio_led *template,
/* skip leds on GPIOs that aren't available */
if (!gpio_is_valid(template->gpio)) {
printk(KERN_INFO "%s: skipping unavailable LT3593 LED at gpio %d (%s)\n",
dev_info(parent, "%s: skipping unavailable LT3593 LED at gpio %d (%s)\n",
KBUILD_MODNAME, template->gpio, template->name);
return 0;
}
......@@ -117,7 +117,7 @@ static int __devinit create_lt3593_led(const struct gpio_led *template,
if (ret < 0)
return ret;
printk(KERN_INFO "%s: registered LT3593 LED '%s' at GPIO %d\n",
dev_info(parent, "%s: registered LT3593 LED '%s' at GPIO %d\n",
KBUILD_MODNAME, template->name, template->gpio);
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment