mirror of
https://github.com/torvalds/linux.git
synced 2024-12-03 17:41:22 +00:00
iio: dac: stm32: fix error message
Fix error message, there's no 'st,dac-channel' property, but 'reg' (see https://lkml.org/lkml/2017/4/3/567). Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
ed5c46880b
commit
0c1a1b6cba
@ -268,7 +268,7 @@ static int stm32_dac_chan_of_init(struct iio_dev *indio_dev)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (i >= ARRAY_SIZE(stm32_dac_channels)) {
|
if (i >= ARRAY_SIZE(stm32_dac_channels)) {
|
||||||
dev_err(&indio_dev->dev, "Invalid st,dac-channel\n");
|
dev_err(&indio_dev->dev, "Invalid reg property\n");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user