Skip to content
Unverified Commit 0b1e5526 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

regulator: da9121: Return REGULATOR_MODE_INVALID for invalid mode



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

Fixes: 65ac9704 ("regulator: da9121: add mode support")
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarAdam Ward <Adam.Ward.opensource@diasemi.com>
Link: https://lore.kernel.org/r/20210517052721.1063375-1-axel.lin@ingics.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent adf1471b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment