* [PATCH] iio: imu: adis16400: Avoid using printk facility
@ 2011-08-25 15:23 michael.hennerich
2011-08-25 16:05 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: michael.hennerich @ 2011-08-25 15:23 UTC (permalink / raw)
To: jic23; +Cc: linux-iio, device-drivers-devel, drivers, Michael Hennerich
From: Michael Hennerich <michael.hennerich@analog.com>
use dev_info() instead.
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
---
drivers/staging/iio/imu/adis16400_core.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/staging/iio/imu/adis16400_core.c b/drivers/staging/iio/imu/adis16400_core.c
index c1ed832..2f0d221 100644
--- a/drivers/staging/iio/imu/adis16400_core.c
+++ b/drivers/staging/iio/imu/adis16400_core.c
@@ -392,7 +392,7 @@ static int adis16400_initial_setup(struct iio_dev *indio_dev)
if ((prod_id & 0xF000) != st->variant->product_id)
dev_warn(&indio_dev->dev, "incorrect id");
- printk(KERN_INFO "%s: prod_id 0x%04x at CS%d (irq %d)\n",
+ dev_info(&indio_dev->dev, "%s: prod_id 0x%04x at CS%d (irq %d)\n",
indio_dev->name, prod_id,
st->us->chip_select, st->us->irq);
}
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] iio: imu: adis16400: Avoid using printk facility
2011-08-25 15:23 [PATCH] iio: imu: adis16400: Avoid using printk facility michael.hennerich
@ 2011-08-25 16:05 ` Jonathan Cameron
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2011-08-25 16:05 UTC (permalink / raw)
To: michael.hennerich; +Cc: linux-iio, device-drivers-devel, drivers
On 08/25/11 16:23, michael.hennerich@analog.com wrote:
> From: Michael Hennerich <michael.hennerich@analog.com>
>
> use dev_info() instead.
>
> Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
merge to iio-blue.git. Feel free to send it directly to Greg if you like though.
As an aside: I've done a fairly substantial reorganization of what was in iio-blue.git master
branch to make it more coherent for merging. Will push out shortly.
Jonathan
> ---
> drivers/staging/iio/imu/adis16400_core.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/staging/iio/imu/adis16400_core.c b/drivers/staging/iio/imu/adis16400_core.c
> index c1ed832..2f0d221 100644
> --- a/drivers/staging/iio/imu/adis16400_core.c
> +++ b/drivers/staging/iio/imu/adis16400_core.c
> @@ -392,7 +392,7 @@ static int adis16400_initial_setup(struct iio_dev *indio_dev)
> if ((prod_id & 0xF000) != st->variant->product_id)
> dev_warn(&indio_dev->dev, "incorrect id");
>
> - printk(KERN_INFO "%s: prod_id 0x%04x at CS%d (irq %d)\n",
> + dev_info(&indio_dev->dev, "%s: prod_id 0x%04x at CS%d (irq %d)\n",
> indio_dev->name, prod_id,
> st->us->chip_select, st->us->irq);
> }
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-08-25 15:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-25 15:23 [PATCH] iio: imu: adis16400: Avoid using printk facility michael.hennerich
2011-08-25 16:05 ` Jonathan Cameron
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.