aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorAndrea Merello <[email protected]>2022-09-07 15:21:58 +0200
committerJonathan Cameron <[email protected]>2022-09-21 18:42:55 +0100
commite0d27ea3ba1332c81060d9d52182953dbc835b40 (patch)
tree4f09a25ea44e9471bd08852a794e478d6b2fcf5c /tools/perf/scripts/python/net_dropmonitor.py
parentab9d343da3a43c8e28c6341cbf7fd30b6bc42664 (diff)
iio: add support for binary attributes
When a IIO device is registered, the IIO core creates an attribute group on its own, where it puts the channel attributes, and where it copies the attributes in indio_dev->info->attrs. Unfortunately it doesn't take care of binary attributes (i.e. it only consider indio_dev->info->attrs->attrs, and it ignores indio_dev->info->attrs->bin_attrs). Fix this by making the IIO layer take care also of the binary attributes. Note that while it is necessary to copy the non-binary attributes because the IIO layer needs more room to add the channels attribute, it should be enough to assign the bin_attrs pointer to the binary attributes pointed by indio_dev->info->attrs->bin_attrs. Signed-off-by: Andrea Merello <[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/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions