summaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-11-25 07:51:47 +0100
committerBryan Wu <cooloney@gmail.com>2012-11-27 23:49:28 +0100
commitb40b0c17d7fa5973e88e5453e000b7ff6ba4060d (patch)
treee9b7b5c6b8db634a393cc3e3de35f3dc993c9df2 /drivers/leds
parentleds: leds-net48xx: Use linux/io.h instead of asm/io.h (diff)
downloadlinux-b40b0c17d7fa5973e88e5453e000b7ff6ba4060d.tar.xz
linux-b40b0c17d7fa5973e88e5453e000b7ff6ba4060d.zip
leds: leds-pca955x: Use dev_info instead of printk
Fixes the following checkpatch warning: 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>
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/leds-pca955x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-pca955x.c b/drivers/leds/leds-pca955x.c
index aef3cf0432fe..f1b36ada099e 100644
--- a/drivers/leds/leds-pca955x.c
+++ b/drivers/leds/leds-pca955x.c
@@ -277,7 +277,7 @@ static int __devinit pca955x_probe(struct i2c_client *client,
return -ENODEV;
}
- printk(KERN_INFO "leds-pca955x: Using %s %d-bit LED driver at "
+ dev_info(&client->dev, "leds-pca955x: Using %s %d-bit LED driver at "
"slave address 0x%02x\n",
id->name, chip->bits, client->addr);