aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/pressure
diff options
context:
space:
mode:
authorTomasz Duszynski <tduszyns@gmail.com>2015-06-23 14:45:47 -0400
committerJonathan Cameron <jic23@kernel.org>2015-07-05 09:31:08 -0400
commit7cb46c2a0666547493132327ccfc0698d90e52f7 (patch)
treeb03416883cfe8982caa49bb66ddc978be96c7e2e /drivers/iio/pressure
parent57f7d509c8f60e66d69ac216a03ef39c5ea1ddb8 (diff)
iio: pressure: ms5611: remove IIO_CHAN_INFO_SCALE from mask
IIO_CHAN_INFO_SCALE is useful whenever conversion to standard units is done in userspace. In this case conversion is handled by driver so this bit is unnecessary. Signed-off-by: Tomasz Duszynski <tduszyns@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/pressure')
-rw-r--r--drivers/iio/pressure/ms5611_core.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/iio/pressure/ms5611_core.c b/drivers/iio/pressure/ms5611_core.c
index e42c8531d9b3..1109513cdda9 100644
--- a/drivers/iio/pressure/ms5611_core.c
+++ b/drivers/iio/pressure/ms5611_core.c
@@ -163,13 +163,11 @@ static int ms5611_read_raw(struct iio_dev *indio_dev,
163static const struct iio_chan_spec ms5611_channels[] = { 163static const struct iio_chan_spec ms5611_channels[] = {
164 { 164 {
165 .type = IIO_PRESSURE, 165 .type = IIO_PRESSURE,
166 .info_mask_separate = BIT(IIO_CHAN_INFO_PROCESSED) | 166 .info_mask_separate = BIT(IIO_CHAN_INFO_PROCESSED),
167 BIT(IIO_CHAN_INFO_SCALE)
168 }, 167 },
169 { 168 {
170 .type = IIO_TEMP, 169 .type = IIO_TEMP,
171 .info_mask_separate = BIT(IIO_CHAN_INFO_PROCESSED) | 170 .info_mask_separate = BIT(IIO_CHAN_INFO_PROCESSED),
172 BIT(IIO_CHAN_INFO_SCALE)
173 } 171 }
174}; 172};
175 173