Skip to content

Commit

Permalink
iio: lp8788_adc: fix parent device in kernel message
Browse files Browse the repository at this point in the history
Use 'dev' of iio device in a kernel message rather than i2c client device node.

Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
  • Loading branch information
Kim, Milo authored and Jonathan Cameron committed Jan 6, 2013
1 parent dc11699 commit 5306f41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iio/adc/lp8788_adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ static int lp8788_iio_map_register(struct iio_dev *indio_dev,

ret = iio_map_array_register(indio_dev, map);
if (ret) {
dev_err(adc->lp->dev, "iio map err: %d\n", ret);
dev_err(&indio_dev->dev, "iio map err: %d\n", ret);
return ret;
}

Expand Down

0 comments on commit 5306f41

Please sign in to comment.