diff options
| author | Antoniu Miclaus <[email protected]> | 2021-11-19 10:56:27 +0200 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2021-11-27 16:12:23 +0000 |
| commit | ffc7c5172a6d1f7ec468066a7172ce65baf1e3e1 (patch) | |
| tree | f7b615c572e0e4872568d148e1953a6ad8c0d66e /tools/perf/scripts/python/netdev-times.py | |
| parent | ab1fb45579d876aee70eb736d3d9e6a9bacc798d (diff) | |
iio: expose shared parameter in IIO_ENUM_AVAILABLE
The shared parameter should be configurable based on its usage, and not
constrained to IIO_SHARED_BY_TYPE.
This patch aims to improve the flexibility in using the
IIO_ENUM_AVAILABLE define and avoid redefining custom iio enums that
expose the shared parameter.
An example is the ad5766.c driver where IIO_ENUM_AVAILABLE_SHARED was
defined in order to achieve `shared` parameter customization.
The current state of the IIO_ENUM_AVAILABLE implementation will imply
similar redefinitions each time a driver will require access to the
`shared` parameter. An example would be admv1013 driver which will
require custom device attribute for the frequency translation modes:
Quadrature I/Q mode and Intermediate Frequency mode.
Signed-off-by: Antoniu Miclaus <[email protected]>
Reviewed-by: Alexandru Ardelean <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions