diff options
| author | Lars-Peter Clausen <[email protected]> | 2020-12-22 20:16:18 +0100 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2021-01-09 21:52:46 +0000 |
| commit | 138daca30ee9d9c0abc6a10f437dd38746c716e9 (patch) | |
| tree | 35367bad2a059f84f3a2ba201dcc65bc88bf7fba /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | de8860b1ed4701ea7e6f760f02d79ca6a3b656a1 (diff) | |
iio: sc27xx_adc: Use DIV_ROUND_CLOSEST() instead of open-coding it
Use DIV_ROUND_CLOSEST() instead of open-coding it. This makes it more clear
what is going on for the casual reviewer.
Generated using the following the Coccinelle semantic patch.
// <smpl>
@@
expression x, y;
@@
-((x) + ((y) / 2)) / (y)
+DIV_ROUND_CLOSEST(x, y)
// </smpl>
Signed-off-by: Lars-Peter Clausen <[email protected]>
Acked-by: Chunyan Zhang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions