aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorLars-Peter Clausen <[email protected]>2020-11-14 12:59:59 +0100
committerJonathan Cameron <[email protected]>2020-12-03 19:32:43 +0000
commiteda20ba1e25e6d8e7fa0c62d1bd685aa5de8e8ff (patch)
treee590dfb932cea6afbf3497b738ab4981daf1de2a /scripts/gdb/linux/modules.py
parent6d90c9a96e68967118149e04b7b170115866795b (diff)
iio: core: Consolidate iio_format_avail_{list,range}()
The iio_format_avail_list() and iio_format_avail_range() functions are almost identical. The only differences are that iio_format_avail_range() expects a fixed amount of items and adds brackets "[ ]" around the output. Refactor them into a common helper function. This improves the maintainability of the code as it makes it easier to modify the implementation of these functions. Signed-off-by: Lars-Peter Clausen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions