Staging: iio/accel: Fix Prefer netdev_warn(netdev, ...then dev_warn(dev, ... then pr_warn(... to printk(KERN_INFO ... in sca3000_ring.c
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>
This commit is contained in:
parent
21d9fbcc4f
commit
941060b4a1
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue