case 1: {
if (ch->type == IIO_CURRENT) {
neuronspi_spi_iio_stm_ai_read_current(indio_dev, ch, val, val2, mask);
- return IIO_VAL_INT;
+ return IIO_VAL_FRACTIONAL;
} else {
return -EINVAL;
}
stm_true_val += stm_i_off;
do_div(stm_true_val, 10000);
*val = stm_true_val;
+ *val2 = 1000;
}
void neuronspi_spi_iio_stm_ao_read_resistance(struct iio_dev *indio_dev, struct iio_chan_spec const *ch, int *val, int *val2, long mask)
-Repository:neuron-kernel ActiveBranch:[uart_timeout] PrecedingRelease:v.0.12 PrecedingRevision:85(dc69d07) LatestCommit:Wed Jul 4 15:22:26 CEST 2018
+Repository:neuron-kernel ActiveBranch:[uart_timeout] PrecedingRelease:v.0.12 PrecedingRevision:86(27aaaf9) LatestCommit:Wed Jul 4 15:26:29 CEST 2018