Commit 5ea86494 authored by Jonathan Cameron's avatar Jonathan Cameron

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: default avatarJonathan Cameron <jic23@kernel.org>
Acked-by: default avatarDenis Ciocca <denis.ciocca@st.com>
parent 2f6bb534
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include <linux/spi/spi.h> #include <linux/spi/spi.h>
#include <linux/irqreturn.h> #include <linux/irqreturn.h>
#include <linux/iio/trigger.h> #include <linux/iio/trigger.h>
#include <linux/bitops.h>
#define ST_SENSORS_TX_MAX_LENGTH 2 #define ST_SENSORS_TX_MAX_LENGTH 2
#define ST_SENSORS_RX_MAX_LENGTH 6 #define ST_SENSORS_RX_MAX_LENGTH 6
...@@ -45,8 +46,8 @@ ...@@ -45,8 +46,8 @@
{ \ { \
.type = device_type, \ .type = device_type, \
.modified = 1, \ .modified = 1, \
.info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT | \ .info_mask_separate = BIT(IIO_CHAN_INFO_RAW) | \
IIO_CHAN_INFO_SCALE_SEPARATE_BIT, \ BIT(IIO_CHAN_INFO_SCALE), \
.scan_index = index, \ .scan_index = index, \
.channel2 = mod, \ .channel2 = mod, \
.address = addr, \ .address = addr, \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment