diff options
author | Abhishek Tamboli <abhishektamboli9@gmail.com> | 2024-08-16 20:11:29 +0300 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2024-08-22 13:39:47 +0300 |
commit | 8f3f07517834382e819e168740bf855273f13d47 (patch) | |
tree | 231c07beaf40a3ecab9d37ce21e833deee7ca7b7 /tools/perf/scripts/python/task-analyzer.py | |
parent | 17c40f3c94bc2279b879ea9ceb3eea973bcd1ac4 (diff) | |
download | linux-8f3f07517834382e819e168740bf855273f13d47.tar.xz |
leds: sun50i-a100: Replace msleep() with usleep_range()
Replace msleep() with usleep_range() in sun50i_a100_ledc_suspend()
to address the checkpatch.pl warning. msleep() for such short delay
can lead to inaccurate sleep times. Switch to usleep_range()
provide more precise delay.
Fix the following warning from checkpatch.pl:
WARNING: msleep < 20ms can sleep for up to 20ms;
see Documentation/timers/timers-howto.rst
+ msleep(1);
Signed-off-by: Abhishek Tamboli <abhishektamboli9@gmail.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Link: https://lore.kernel.org/r/20240816171129.6411-1-abhishektamboli9@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions