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)
commit5189952238c965cbf76309f2c29b84ff2ec70b75
tree053ce09a39b4f6e0ef37c0539eb4e6bf127ac793
parent37e8ba74d152f359e849072671ffc421b4085dbe
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