gpio: pca953x: Split pca953x_restore_context() and pca953x_save_context()

Split regcache handling to the respective helpers. It will allow to
have further refactoring with ease.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
This commit is contained in:
Andy Shevchenko 2023-09-01 16:40:35 +03:00 • committed by Bartosz Golaszewski
commit ec5bde6201