mirror of https://gitee.com/openkylin/linux.git
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:
parent
dc11699908
commit
5306f416ad
|
@ -179,7 +179,7 @@ static int lp8788_iio_map_register(struct iio_dev *indio_dev,
|
||||||
|
|
||||||
ret = iio_map_array_register(indio_dev, map);
|
ret = iio_map_array_register(indio_dev, map);
|
||||||
if (ret) {
|
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;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue