regulator: stpmic1: Return REGULATOR_MODE_INVALID for invalid mode
authorAxel Lin <axel.lin@ingics.com>
Tue, 9 Oct 2018 08:52:21 +0000 (16:52 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 10 Oct 2018 11:28:41 +0000 (12:28 +0100)
commitc18fb34ae185ad3b2444cd5e308ef5f91d8c9a46
treea7076641cc790a10d0705b28aea2d2e85ba36af9
parentca55b7185b74e73d2b39dc40efaf96100a2582cd
regulator: stpmic1: Return REGULATOR_MODE_INVALID for invalid mode

-EINVAL is not a valid return value for .of_map_mode, return
REGULATOR_MODE_INVALID instead.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/stpmic1_regulator.c