diff options
| author | Marek Vasut <[email protected]> | 2018-12-12 02:39:49 +0100 |
|---|---|---|
| committer | Linus Walleij <[email protected]> | 2018-12-14 15:18:42 +0100 |
| commit | 873d1e8e6fafabc7750e5ef0fe0289548f540f5b (patch) | |
| tree | 1489ab3a806ca57a39551c31f8a66a8eee32f18b /include/linux/debugobjects.h | |
| parent | 651022382c7f8da46cb4872a545ee1da6d097d2a (diff) | |
gpio: pca953x: Deduplicate the bank_shift
The bank_shift = fls(...) code was duplicated in the driver 5 times,
pull it into separate function.
Signed-off-by: Marek Vasut <[email protected]>
Cc: Bartosz Golaszewski <[email protected]>
Reviewed-by: Kieran Bingham <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions