iio: dac: ad7303: fix channel description
authorPavel Roskin <plroskin@gmail.com>
Thu, 13 Apr 2017 21:54:23 +0000 (14:54 -0700)
committerJonathan Cameron <jic23@kernel.org>
Fri, 14 Apr 2017 13:44:29 +0000 (14:44 +0100)
realbits, storagebits and shift should be numbers, not ASCII characters.

Signed-off-by: Pavel Roskin <plroskin@gmail.com>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/dac/ad7303.c

index e690dd1..4b0f942 100644 (file)
@@ -184,9 +184,9 @@ static const struct iio_chan_spec_ext_info ad7303_ext_info[] = {
        .address = (chan),                                      \
        .scan_type = {                                          \
                .sign = 'u',                                    \
-               .realbits = '8',                                \
-               .storagebits = '8',                             \
-               .shift = '0',                                   \
+               .realbits = 8,                                  \
+               .storagebits = 8,                               \
+               .shift = 0,                                     \
        },                                                      \
        .ext_info = ad7303_ext_info,                            \
 }