]> 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)
commit830740e6bd064b99f870f20f7028e6175659fc03
tree6c46d73e5b6fab234c3b277d1a4a1702837a72dd
parent2913217dfd69345f94a153a3e5b69149d60698e4
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: eb22e835f4d8 ("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