Staging: iio/accel: Fix Prefer netdev_warn(netdev, ...then dev_warn(dev, ... then...
authorMonam Agarwal <monamagarwal123@gmail.com>
Mon, 3 Mar 2014 20:06:10 +0000 (01:36 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2014 22:48:47 +0000 (14:48 -0800)
This patch fixes the following checkpatch.pl warning in sca3000_ring.c
WARNING: Prefer netdev_info(netdev, ... then dev_info(dev, ... then pr_info(...  to printk(KERN_INFO ...

Signed-off-by: Monam Agarwal <monamagarwal123@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/accel/sca3000_ring.c

index ea0af6d81d2b8ac3cdf1d31c5bd5fee61844ab73..198710651e0ed3c951c1d5116f438d38615f76b0 100644 (file)
@@ -309,7 +309,7 @@ int __sca3000_hw_ring_state_set(struct iio_dev *indio_dev, bool state)
        if (ret)
                goto error_ret;
        if (state) {
-               printk(KERN_INFO "supposedly enabling ring buffer\n");
+               dev_info(&indio_dev->dev, "supposedly enabling ring buffer\n");
                ret = sca3000_write_reg(st,
                                        SCA3000_REG_ADDR_MODE,
                                        (st->rx[0] | SCA3000_RING_BUF_ENABLE));