diff options
| author | Matti Vaittinen <mazziesaccount@gmail.com> | 2024-12-16 10:56:37 +0200 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-02-03 19:15:38 +0000 |
| commit | 32f80e203401da168826a023d667918b936f85a8 (patch) | |
| tree | c67d92194616e5039e1eb6291222ba1b89b71ec8 /tools/lib/python/kdoc/python_version.py | |
| parent | 6eaf49f1ba15752f2c13621e5ddf27edf34a35a9 (diff) | |
| download | linux-32f80e203401da168826a023d667918b936f85a8.tar.gz linux-32f80e203401da168826a023d667918b936f85a8.zip | |
iio: gts: Simplify available scale table build
Make available scale building more clear. This hurts the performance
quite a bit by looping throgh the scales many times instead of doing
everything in one loop. It however simplifies logic by:
- decoupling the gain and scale allocations & computations
- keeping the temporary 'per_time_gains' table inside the
per_time_scales computation function.
- separating building the 'all scales' table in own function and doing
it based on the already computed per-time scales.
Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Tested-by: subhajit.ghosh@tweaklogic.com
Link: https://patch.msgid.link/Z1_rRXqdhxhL6wBw@mva-rohm
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
