Angelo Compagnucci
3f1093d83d
iio: adc: mcp3422: fix locking scope
...
Locking should be held for the entire reading sequence involving setting
the channel, waiting for the channel switch and reading from the
channel.
If not, reading from a channel can result mixing with the reading from
another channel.
Fixes: 07914c84ba30 ("iio: adc: Add driver for Microchip MCP3422/3/4 high resolution ADC")
Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
Link: https://lore.kernel.org/r/20200819075525.1395248-1-angelo.compagnucci@gmail.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2020-08-31 10:47:53 +01:00
..
2020-06-14 14:20:08 +01:00
2020-07-20 09:03:20 +01:00
2019-11-16 17:06:10 +00:00
2020-06-14 11:49:59 +01:00
2019-11-16 17:06:10 +00:00
2020-07-22 14:36:05 +01:00
2020-07-20 09:03:37 +01:00
2020-06-20 17:34:44 +01:00
2020-06-14 14:20:08 +01:00
2020-06-14 11:49:59 +01:00
2020-07-20 09:02:49 +01:00
2020-06-14 14:20:08 +01:00
2019-08-05 15:59:14 +01:00
2019-08-25 16:11:00 +01:00
2020-06-20 17:34:44 +01:00
2019-08-25 16:11:00 +01:00
2020-06-20 17:34:44 +01:00
2020-06-20 17:34:44 +01:00
2020-07-20 09:37:31 +02:00
2020-06-14 14:20:08 +01:00
2020-06-14 14:20:08 +01:00
2020-07-20 09:02:57 +01:00
2020-07-20 09:02:49 +01:00
2020-07-13 15:05:59 +01:00
2020-04-19 16:56:23 +01:00
2020-07-20 09:02:46 +01:00
2020-07-20 09:37:31 +02:00
2020-06-14 11:49:59 +01:00
2020-07-20 09:03:22 +01:00
2020-07-20 09:03:22 +01:00
2020-06-14 14:20:08 +01:00
2020-06-14 11:49:59 +01:00
2020-06-14 14:20:08 +01:00
2020-06-14 11:49:59 +01:00
2020-06-14 11:49:59 +01:00
2020-07-20 09:03:23 +01:00
2020-06-14 14:20:08 +01:00
2020-06-20 17:34:44 +01:00
2020-06-14 14:20:08 +01:00
2020-06-14 11:49:59 +01:00
2020-06-14 14:20:08 +01:00
2020-06-14 11:49:59 +01:00
2020-07-07 20:24:08 +01:00
2020-06-14 11:50:04 +01:00
2020-06-14 11:49:59 +01:00
2020-08-31 10:47:52 +01:00
2020-07-22 14:36:31 +01:00
2020-06-14 11:49:59 +01:00
2020-08-22 11:38:45 +01:00
2020-06-14 14:20:08 +01:00
2020-06-14 11:49:59 +01:00
2020-07-07 20:24:08 +01:00
2020-06-14 11:49:59 +01:00
2020-06-14 11:49:59 +01:00
2020-07-07 20:24:08 +01:00
2020-06-14 11:50:04 +01:00
2020-07-07 20:24:09 +01:00
2019-12-15 12:15:19 +00:00
2020-06-07 10:45:08 -07:00
2020-07-07 20:24:08 +01:00
2020-08-31 10:47:52 +01:00
2020-06-14 11:49:59 +01:00
2020-07-20 09:03:27 +01:00
2020-07-20 09:03:27 +01:00
2020-07-07 20:24:09 +01:00
2020-07-13 15:05:59 +01:00
2020-08-31 10:47:53 +01:00
2020-06-14 14:20:08 +01:00
2020-06-14 11:49:59 +01:00
2020-08-31 10:47:52 +01:00
2020-05-26 10:41:47 +01:00
2020-06-14 11:49:59 +01:00
2020-06-20 17:34:44 +01:00
2020-06-14 14:20:08 +01:00
2020-06-14 11:49:59 +01:00
2020-07-20 09:03:28 +01:00
2020-07-20 09:03:31 +01:00
2020-06-27 14:10:52 +01:00
2020-06-14 14:20:08 +01:00
2020-06-14 14:20:08 +01:00
2020-06-14 11:49:21 +01:00
2020-06-14 11:49:21 +01:00
2020-06-14 14:20:08 +01:00
2020-06-14 11:49:59 +01:00
2020-07-20 09:03:35 +01:00
2020-06-14 11:49:59 +01:00
2020-07-07 20:24:09 +01:00
2020-06-14 11:49:59 +01:00
2020-05-22 17:29:25 +01:00
2019-12-15 11:42:17 +00:00
2020-06-20 17:34:44 +01:00
2020-06-20 17:34:44 +01:00
2019-04-27 14:09:28 +01:00
2019-06-22 10:29:19 +01:00
2020-06-14 11:49:59 +01:00
2020-06-14 11:49:59 +01:00
2020-06-14 14:20:08 +01:00
2020-07-20 09:03:11 +01:00
2020-08-31 10:47:41 +01:00
2020-08-31 10:47:52 +01:00
2020-06-14 11:49:59 +01:00
2020-07-13 15:05:59 +01:00
2020-07-07 20:24:10 +01:00
2020-07-13 15:05:59 +01:00
2020-06-14 11:49:59 +01:00
2020-07-13 15:05:59 +01:00
2020-08-22 11:38:44 +01:00
2020-07-13 15:05:59 +01:00
2020-07-13 15:05:59 +01:00
2020-06-14 14:20:08 +01:00
2020-07-13 15:05:59 +01:00
2020-07-20 09:03:14 +01:00
2020-07-20 09:03:15 +01:00
2020-06-20 17:34:44 +01:00
2020-06-14 11:49:59 +01:00
2020-06-20 17:34:44 +01:00
2020-03-21 10:25:35 +00:00
2020-03-21 10:25:35 +00:00