Skip to content
Commit 696868d0 authored by Bartosz Golaszewski's avatar Bartosz Golaszewski
Browse files

gpio: exar: unduplicate address and offset computation



Provide and use helpers for calculating the register address and bit
offset instead of hand coding it in every function.

Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent 0c2c7e13
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment