gpio: pca953x: use the correct register address to do regcache sync
authorHaibo Chen <haibo.chen@nxp.com>
Mon, 30 May 2022 10:48:48 +0000 (18:48 +0800)
committerBartosz Golaszewski <brgl@bgdev.pl>
Wed, 1 Jun 2022 17:20:27 +0000 (19:20 +0200)
commit43624eda86c98b0de726d0b6f2516ccc3ef7313f
tree6c46d73e5b6fab234c3b277d1a4a1702837a72dd
parent8a172952fc597ab9a56d4511d5a72af7c4419c7a
gpio: pca953x: use the correct register address to do regcache sync

For regcache_sync_region, need to use pca953x_recalc_addr() to get
the real register address.

Fixes: b76574300504 ("gpio: pca953x: Restore registers after suspend/resume cycle")
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpio-pca953x.c