diff options
| author | Andy Shevchenko <[email protected]> | 2022-12-11 00:06:00 +0200 |
|---|---|---|
| committer | Bartosz Golaszewski <[email protected]> | 2023-01-30 15:55:27 +0100 |
| commit | a87f901b59326c12313dbf224cc4591ae2c63785 (patch) | |
| tree | 46629b3e1f7f1c13f80e1a4a5c2bc406f02eb295 /scripts | |
| parent | b1453d1eb93fd34848082fd181ff247f19c0ee86 (diff) | |
gpio: pca953x: Clean up pcal6534_check_register()
The pcal6534_check_register() is a bit too verbose.
Clean up it, by deduplicating some operations and
switching to the modulo operation as on some architectures
/ and % can become a single assembly instruction.
Signed-off-by: Andy Shevchenko <[email protected]>
Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions