diff options
| author | Lars-Peter Clausen <[email protected]> | 2021-01-07 13:20:49 +0200 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2021-01-22 08:52:03 +0000 |
| commit | d9a0e73c0c879358ca6607fad9a01248a3b27bfc (patch) | |
| tree | 9866d40032c72e30042f19e241c472937127aafe /tools/perf/scripts/python/syscall-counts.py | |
| parent | 3cc718bc798f6dcba43fecafe2be81f0d612c56d (diff) | |
iio: Handle enumerated properties with gaps
Some enums might have gaps or reserved values in the middle of their value
range. E.g. consider a 2-bit enum where the values 0, 1 and 3 have a
meaning, but 2 is a reserved value and can not be used.
Add support for such enums to the IIO enum helper functions. A reserved
values is marked by setting its entry in the items array to NULL rather
than the normal descriptive string value.
Signed-off-by: Lars-Peter Clausen <[email protected]>
Signed-off-by: Alexandru Ardelean <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions