aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stat-cpi.py
diff options
context:
space:
mode:
authorAidan MacDonald <[email protected]>2023-02-17 15:34:03 +0000
committerJonathan Cameron <[email protected]>2023-03-11 12:18:28 +0000
commit8957e5344353e9cd3f6b1e3004942e35449fa0e8 (patch)
treebfbf350872859d7726a1c53906f602cd7368ea7d /tools/perf/scripts/python/stat-cpi.py
parente2b39db176d9d6420669aed477c949e8895d062b (diff)
iio: adc: axp20x_adc: Minor code cleanups
The code may be clearer if parameters are not re-purposed to hold temporary results like register values, so introduce local variables as necessary to avoid that. Regroup macros based on chip type, and use the FIELD_PREP() macro instead of a hand-rolled version. Suggested-by: Jonathan Cameron <[email protected]> Reviewed-by: Chen-Yu Tsai <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Aidan MacDonald <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions