]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit252f8acd1ec9e907613a3e6b5e57ff3d526fd4c4
tree6c46d73e5b6fab234c3b277d1a4a1702837a72dd
parentf63a206ab52bfc35ed62ff37539ea809052b53cd
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: 1f4183c28ac6 ("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