diff options
author | Eddie James <eajames@linux.ibm.com> | 2025-02-12 17:30:37 +0300 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2025-02-20 17:29:13 +0300 |
commit | 14ef0738a31dcecfbba38626884b7d9a60b75cd0 (patch) | |
tree | 9412f2a26b3ebc5bd5125976415ff43989a1c927 /tools/perf/scripts/python/task-analyzer.py | |
parent | 1ddab1e2de10a37b66b235cff30e5b0a0beb8809 (diff) | |
download | linux-14ef0738a31dcecfbba38626884b7d9a60b75cd0.tar.xz |
leds: pca955x: Optimize probe LED selection
Previously, the probe function might do up to 32 reads and writes
to the same 4 registers to program the LED selection. Reduce this to
a maximum of 5 operations by accumulating the changes to the LED
selection and comparing with the previous value to write the
selection if different.
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20250212143038.1416501-4-eajames@linux.ibm.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