diff options
author | Eddie James <eajames@linux.ibm.com> | 2022-04-12 19:42:10 +0300 |
---|---|---|
committer | Joel Stanley <joel@jms.id.au> | 2022-04-15 07:34:59 +0300 |
commit | 6bb80845fd6b60c3905c65a2411fa0e8d0ba7872 (patch) | |
tree | 1154efd681235c4b907f42fad259699989473b92 /drivers/leds/leds-da9052.c | |
parent | d321b49f93b3c898a557905d793861e6cd609824 (diff) | |
download | linux-6bb80845fd6b60c3905c65a2411fa0e8d0ba7872.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 8 operations by accumulating the changes to the led
selection and comparing with the previous value to write the
selection if different.
OpenBMC-Staging-Count: 1
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220412164211.28824-4-eajames@linux.ibm.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'drivers/leds/leds-da9052.c')
0 files changed, 0 insertions, 0 deletions