diff options
author | Laurent Pinchart <[email protected]> | 2018-09-18 15:04:16 +0300 |
---|---|---|
committer | Laurent Pinchart <[email protected]> | 2018-09-25 18:48:09 +0300 |
commit | 4f2a6552c2888b317984e64b292f0f1ca1832d44 (patch) | |
tree | 47688121cbf4ce61878b06a2ae3067f39f76d679 /tools/perf/scripts/python/intel-pt-events.py | |
parent | 78c9e7ce00c3fabf5c6dd3a6eab3a3dcf21dd213 (diff) |
usb: gadget: uvc: configfs: Simplify attributes macros
Several macros used to define attributes and their access functions take
multiple arguments to specify endianness and string conversion
functions, based on the size of the attribute. This can be simplified by
passing the number of bits explicitly, and constructing the name of the
functions internally.
The UVCG_OPTS_ATTR macro can be simplified further as all fields it
deals with are unsigned int.
Signed-off-by: Laurent Pinchart <[email protected]>
Reviewed-by: Paul Elder <[email protected]>
Tested-by: Paul Elder <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions