File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -1165,7 +1165,6 @@ static int ad7380_init_offload_msg(struct ad7380_state *st,
1165
1165
struct spi_transfer * xfer = & st -> offload_xfer ;
1166
1166
struct device * dev = & st -> spi -> dev ;
1167
1167
const struct iio_scan_type * scan_type ;
1168
- int oversampling_ratio ;
1169
1168
int ret ;
1170
1169
1171
1170
scan_type = iio_get_current_scan_type (indio_dev ,
@@ -1195,10 +1194,6 @@ static int ad7380_init_offload_msg(struct ad7380_state *st,
1195
1194
}
1196
1195
}
1197
1196
1198
- ret = ad7380_get_osr (st , & oversampling_ratio );
1199
- if (ret )
1200
- return ret ;
1201
-
1202
1197
xfer -> bits_per_word = scan_type -> realbits ;
1203
1198
xfer -> offload_flags = SPI_OFFLOAD_XFER_RX_STREAM ;
1204
1199
xfer -> len = AD7380_SPI_BYTES (scan_type ) * st -> chip_info -> num_simult_channels ;
You can’t perform that action at this time.
0 commit comments