aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorDavid Lechner <[email protected]>2025-07-26 16:28:48 +0000
committerJonathan Cameron <[email protected]>2025-08-11 20:35:01 +0000
commit197e299aae42ffa19028eaea92b2f30dd9fb8445 (patch)
treec4e24861d3f034c6f46f9d132f429f6228e193e8 /fs/btrfs/dev-replace.c
parentiio: temperature: maxim_thermocouple: use DMA-safe buffer for spi_read() (diff)
downloadkernel-197e299aae42ffa19028eaea92b2f30dd9fb8445.tar.gz
kernel-197e299aae42ffa19028eaea92b2f30dd9fb8445.zip
iio: adc: ad7124: fix channel lookup in syscalib functions
Fix possible incorrect channel lookup in the syscalib functions by using the correct channel address instead of the channel number. In the ad7124 driver, the channel field of struct iio_chan_spec is the input pin number of the positive input of the channel. This can be, but is not always the same as the index in the channels array. The correct index in the channels array is stored in the address field (and also scan_index). We use the address field to perform the correct lookup. Fixes: 47036a03a303 ("iio: adc: ad7124: Implement internal calibration at probe time") Signed-off-by: David Lechner <[email protected]> Reviewed-by: Nuno Sá <[email protected]> Link: https://patch.msgid.link/20250726-iio-adc-ad7124-fix-channel-lookup-in-syscalib-v1-1-b9d14bb684af@baylibre.com Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions