]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: intel_soc_pmic_bxtwc: Don't shadow error codes in show()/store()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 28 Jun 2022 22:17:37 +0000 (01:17 +0300)
committerLee Jones <lee@kernel.org>
Tue, 19 Jul 2022 09:54:41 +0000 (10:54 +0100)
commitd18cb2c58060a66a2ed042b38286ae3a4b31b3e3
tree053ce09a39b4f6e0ef37c0539eb4e6bf127ac793
parente37a320f58c623a6c144a208985356f89b87c287
mfd: intel_soc_pmic_bxtwc: Don't shadow error codes in show()/store()

kstrtox() along with regmap API can return different error codes based on
circumstances.

Don't shadow them when returning to the caller.

While at it, remove rather confusing message from addr_store().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20220628221747.33956-1-andriy.shevchenko@linux.intel.com
drivers/mfd/intel_soc_pmic_bxtwc.c