]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: pca953x: use the correct register address when regcache sync during init
authorHaibo Chen <haibo.chen@nxp.com>
Mon, 18 Jul 2022 08:31:43 +0000 (16:31 +0800)
committerBartosz Golaszewski <brgl@bgdev.pl>
Tue, 19 Jul 2022 09:20:41 +0000 (11:20 +0200)
commit6302b58a9000ace1634612f4d4abafdc5eb2abc8
tree898d9b9a8c092a68efcf4bd0d06e8d159fa66bc1
parentf89d842995a719fac41e2f1df2b2ed93918dd440
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: a86b26974625 ("gpio: pca953x: Zap ad-hoc reg_output cache")
Fixes: 5c79df6a8002 ("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>
drivers/gpio/gpio-pca953x.c