Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7cb46c2a authored by Tomasz Duszynski's avatar Tomasz Duszynski Committed by Jonathan Cameron
Browse files

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: default avatarTomasz Duszynski <tduszyns@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 57f7d509
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -163,13 +163,11 @@ static int ms5611_read_raw(struct iio_dev *indio_dev,
static const struct iio_chan_spec ms5611_channels[] = {
static const struct iio_chan_spec ms5611_channels[] = {
	{
	{
		.type = IIO_PRESSURE,
		.type = IIO_PRESSURE,
		.info_mask_separate = BIT(IIO_CHAN_INFO_PROCESSED) |
		.info_mask_separate = BIT(IIO_CHAN_INFO_PROCESSED),
			BIT(IIO_CHAN_INFO_SCALE)
	},
	},
	{
	{
		.type = IIO_TEMP,
		.type = IIO_TEMP,
		.info_mask_separate = BIT(IIO_CHAN_INFO_PROCESSED) |
		.info_mask_separate = BIT(IIO_CHAN_INFO_PROCESSED),
			BIT(IIO_CHAN_INFO_SCALE)
	}
	}
};
};