diff options
author | Eddie James <eajames@linux.ibm.com> | 2025-02-12 08:30:37 -0600 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2025-02-20 14:29:13 +0000 |
commit | 14ef0738a31dcecfbba38626884b7d9a60b75cd0 (patch) | |
tree | 9412f2a26b3ebc5bd5125976415ff43989a1c927 /scripts/lib/kdoc/kdoc_parser.py | |
parent | 1ddab1e2de10a37b66b235cff30e5b0a0beb8809 (diff) |
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 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions