On 04/09/2019 19.24, Lorenzo Bianconi wrote:
[..]
+ .scan_index = scan_idx, \
+ .scan_type = { \
+ .sign = 's', \
+ .realbits = 16, \
+ .storagebits = 16, \
+ .endianness = IIO_LE, \
+ }, \
+ .event_spec = &st_lsm6dsx_event, \
+ .num_event_specs = 1, \
+}
+
#define ST_LSM6DSX_CHANNEL(chan_type, addr, mod, scan_idx) \
I guess you can rename ST_LSM6DSX_CHANNEL in ST_LSM6DSX_CHANNEL_GYRO now
We still have the channels for the magnetometer, which are similar to
the gyro channels :-)
{ \
.type = chan_type, \
@@ -162,6 +183,13 @@ struct st_lsm6dsx_shub_settings {
u8 batch_en;
};
/Sean