Commit 5306f416 authored by Kim, Milo's avatar Kim, Milo Committed by Jonathan Cameron

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: default avatarMilo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent dc116999
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment