iio: lp8788_adc: fix parent device in kernel message

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>
This commit is contained in:
Kim, Milo 2013-01-03 06:28:00 +00:00 committed by Jonathan Cameron
parent dc11699908
commit 5306f416ad
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}