diff options
author | Hugo Villeneuve <hvilleneuve@dimonoff.com> | 2025-07-14 09:37:30 -0400 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2025-07-15 16:29:37 +0200 |
commit | 2aa8ccab5ae67281e4d3660f8d9ee68d8b76fcef (patch) | |
tree | e5551c41c1ebdd9ebd3c1441667afae1757abf70 /rust/helpers/build_bug.c | |
parent | e70513bd98e3912b431b196e3cf53ac821598e6a (diff) |
gpio: pca953x: use regmap_update_bits() to improve performance
Using regmap_update_bits() allows to reduce the number of I2C transfers
when updating bits that haven't changed on non-volatile registers.
For example on a PCAL6416, when changing a GPIO direction from input to
output, the number of I2C transfers can be reduced from 4 to just 1 if
the pull resistors configuration hasn't changed and the output value
is the same as before.
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Link: https://lore.kernel.org/r/20250714133730.6353-1-hugo@hugovil.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'rust/helpers/build_bug.c')
0 files changed, 0 insertions, 0 deletions