diff options
| author | Rodrigo Gobbi <rodrigo.gobbi.7@gmail.com> | 2025-07-17 19:13:49 -0300 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-08-16 11:57:04 +0100 |
| commit | d75c7021c08e8ae3f311ef2464dca0eaf75fab9f (patch) | |
| tree | 1053d13f9fea5c4212283ad8dd6ca64ebadf06df /tools/perf/scripts/python | |
| parent | Linux 6.17-rc1 (diff) | |
| download | linux-d75c7021c08e8ae3f311ef2464dca0eaf75fab9f.tar.gz linux-d75c7021c08e8ae3f311ef2464dca0eaf75fab9f.zip | |
iio: adc: spear_adc: mask SPEAR_ADC_STATUS channel and avg sample before setting register
avg sample info is a bit field coded inside the following
bits: 5,6,7 and 8 of a device status register.
Channel num info the same, but over bits: 1, 2 and 3.
Mask both values in order to avoid touching other register bits,
since the first info (avg sample), came from DT.
Signed-off-by: Rodrigo Gobbi <rodrigo.gobbi.7@gmail.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250717221559.158872-1-rodrigo.gobbi.7@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
