Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9631135d authored by Michael Hennerich's avatar Michael Hennerich Committed by Greg Kroah-Hartman
Browse files

iio: gyro: ADXRS450: Add missing read support for calibbias attribute

parent 90b9b227
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -308,6 +308,13 @@ static int adxrs450_read_raw(struct iio_dev *indio_dev,
		*val = t;
		ret = IIO_VAL_INT;
		break;
	case IIO_CHAN_INFO_CALIBBIAS:
		ret = adxrs450_spi_read_reg_16(indio_dev, ADXRS450_DNC1, &t);
		if (ret)
			break;
		*val = t;
		ret = IIO_VAL_INT;
		break;
	default:
		ret = -EINVAL;
		break;