diff options
| author | Lars-Peter Clausen <lars@metafoo.de> | 2020-11-14 13:00:00 +0100 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2020-12-03 19:32:44 +0000 |
| commit | e08b60d352dbc3c32d64bdaedbb481fcdc14ff6c (patch) | |
| tree | 9913703ede1f1bff85ca4c6d2580695cd7b0d645 /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | iio: core: Consolidate iio_format_avail_{list,range}() (diff) | |
| download | linux-e08b60d352dbc3c32d64bdaedbb481fcdc14ff6c.tar.gz linux-e08b60d352dbc3c32d64bdaedbb481fcdc14ff6c.zip | |
iio: core: Simplify iio_format_list()
iio_format_list() has two branches in a switch statement that are almost
identical. They only differ in the stride that is used to iterate through
the item list.
Consolidate this into a common code path to simplify the code.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Link: https://lore.kernel.org/r/20201114120000.6533-2-lars@metafoo.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
