iio: dac: ad7303: fix channel description
authorPavel Roskin <plroskin@gmail.com>
Thu, 13 Apr 2017 21:54:23 +0000 (14:54 -0700)
committerSasha Levin <alexander.levin@verizon.com>
Tue, 13 Jun 2017 13:29:21 +0000 (09:29 -0400)
[ Upstream commit ce420fd4251809b4c3119b3b20c8b13bd8eba150 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
drivers/iio/dac/ad7303.c

index fa281003296846b35bc1086ca1eb58299f82d535..9b7d2a3311e8199cfdc87ec3f83c2e013f8968b5 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,                            \
 }