]>
git.baikalelectronics.ru Git - kernel.git/commit
gpio: pca953x: use the correct register address when regcache sync during init
For regcache_sync_region, we need to use pca953x_recalc_addr() to get
the real register address.
Fixes: 32978bafc5b7 ("gpio: pca953x: Zap ad-hoc reg_output cache")
Fixes: 34c05ffac073 ("gpio: pca953x: Zap ad-hoc reg_direction cache")
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>