diff options
author | 2025-02-12 08:30:37 -0600 | |
---|---|---|
committer | 2025-02-20 14:29:13 +0000 | |
commit | 14ef0738a31dcecfbba38626884b7d9a60b75cd0 (patch) | |
tree | 9412f2a26b3ebc5bd5125976415ff43989a1c927 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | leds: pca955x: Use pointers to driver data rather than I2C client (diff) | |
download | wireguard-linux-14ef0738a31dcecfbba38626884b7d9a60b75cd0.tar.xz wireguard-linux-14ef0738a31dcecfbba38626884b7d9a60b75cd0.zip |
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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions