summaryrefslogtreecommitdiffstats
path: root/drivers/iio/dac
diff options
context:
space:
mode:
authorPavel Roskin <plroskin@gmail.com>2017-04-13 14:54:23 -0700
committerJonathan Cameron <jic23@kernel.org>2017-04-14 14:44:29 +0100
commitce420fd4251809b4c3119b3b20c8b13bd8eba150 (patch)
treef879268eee1135f4b324467deb1d9c7b7fff2be9 /drivers/iio/dac
parent77a9febfd81f9e8550d09dc76e8e9c06307b7aca (diff)
downloadlinux-ce420fd4251809b4c3119b3b20c8b13bd8eba150.tar.gz
linux-ce420fd4251809b4c3119b3b20c8b13bd8eba150.tar.bz2
linux-ce420fd4251809b4c3119b3b20c8b13bd8eba150.zip
iio: dac: ad7303: fix channel description
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>
Diffstat (limited to 'drivers/iio/dac')
-rw-r--r--drivers/iio/dac/ad7303.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/iio/dac/ad7303.c b/drivers/iio/dac/ad7303.c
index e690dd11e99f..4b0f942b8914 100644
--- a/drivers/iio/dac/ad7303.c
+++ b/drivers/iio/dac/ad7303.c
@@ -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, \
}