Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio:st_sensors move to info_mask_(shared_by_type/separate)

The original info_mask is going away in favour of the broken out versions.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Acked-by: Denis Ciocca <denis.ciocca@st.com>

+3 -2
+3 -2
include/linux/iio/common/st_sensors.h
··· 15 15 #include <linux/spi/spi.h> 16 16 #include <linux/irqreturn.h> 17 17 #include <linux/iio/trigger.h> 18 + #include <linux/bitops.h> 18 19 19 20 #define ST_SENSORS_TX_MAX_LENGTH 2 20 21 #define ST_SENSORS_RX_MAX_LENGTH 6 ··· 46 45 { \ 47 46 .type = device_type, \ 48 47 .modified = 1, \ 49 - .info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT | \ 50 - IIO_CHAN_INFO_SCALE_SEPARATE_BIT, \ 48 + .info_mask_separate = BIT(IIO_CHAN_INFO_RAW) | \ 49 + BIT(IIO_CHAN_INFO_SCALE), \ 51 50 .scan_index = index, \ 52 51 .channel2 = mod, \ 53 52 .address = addr, \