iio: dac: stm32: fix error message
authorFabrice Gasnier <fabrice.gasnier@st.com>
Mon, 10 Jul 2017 13:23:58 +0000 (15:23 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 15 Jul 2017 11:26:23 +0000 (12:26 +0100)
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>
drivers/iio/dac/stm32-dac.c

index 50f8ec0..c1864e8 100644 (file)
@@ -268,7 +268,7 @@ static int stm32_dac_chan_of_init(struct iio_dev *indio_dev)
                        break;
        }
        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;
        }