]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: adc: ad7124: Implement internal calibration at probe time
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Mon, 3 Mar 2025 11:47:05 +0000 (12:47 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 11 Mar 2025 19:09:16 +0000 (19:09 +0000)
commit47036a03a303b5aa4ebd5fa42a9db805983f72b8
tree25ded40a0ac9a9d61866d1e8e069b136bb359a1d
parent780c9dbb160f442ed460ee091fbf646f6d7c3b08
iio: adc: ad7124: Implement internal calibration at probe time

Use the calibration function provided by the ad_sigma_delta shim to
calibrate all channels at probe time.

For measurements with gain 1 (i.e. if CONFIG_x.PGA = 0) full-scale
calibrations are not supported and the reset default value of the GAIN
register is supposed to be used then.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/20250303114659.1672695-17-u.kleine-koenig@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7124.c