Skip to content

Commit

Permalink
leds: leds-lt3593: Fix checkpatch warnings
Browse files Browse the repository at this point in the history
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: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
  • Loading branch information
Sachin Kamat authored and Bryan Wu committed Nov 27, 2012
1 parent 39de81a commit 30e5c3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/leds/leds-lt3593.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 30e5c3e

Please sign in to comment.