diff options
| author | Aidan MacDonald <aidanmacdonald.0x0@gmail.com> | 2023-02-17 15:34:03 +0000 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2023-03-11 12:18:28 +0000 |
| commit | 8957e5344353e9cd3f6b1e3004942e35449fa0e8 (patch) | |
| tree | bfbf350872859d7726a1c53906f602cd7368ea7d /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git | |
| parent | e2b39db176d9d6420669aed477c949e8895d062b (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 <jic23@kernel.org>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Aidan MacDonald <aidanmacdonald.0x0@gmail.com>
Link: https://lore.kernel.org/r/20230217153404.32481-1-aidanmacdonald.0x0@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
