leds: leds-pca955x: Use dev_info instead of printk
authorSachin Kamat <sachin.kamat@linaro.org>
Sun, 25 Nov 2012 06:51:47 +0000 (12:21 +0530)
committerBryan Wu <cooloney@gmail.com>
Tue, 27 Nov 2012 22:49:28 +0000 (14:49 -0800)
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>
drivers/leds/leds-pca955x.c

index aef3cf0..f1b36ad 100644 (file)
@@ -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);