regulator: refactor valid_ops_mask checking code
authorWEN Pingbo <pingbo.wen@linaro.org>
Sat, 23 Apr 2016 07:11:05 +0000 (15:11 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 25 Apr 2016 17:52:06 +0000 (18:52 +0100)
commit8a34e979f684aa13e6c4bf23b394cca9dfabf4a9
treead1231f9070fc34adef474b32f01e74d7bfc613e
parent45a91e8f767afbbffff46bf7251f81d15d121136
regulator: refactor valid_ops_mask checking code

To make the code more compat and centralized, this patch add a
unified function - regulator_ops_is_valid. So we can add
some extra checking code easily later.

Signed-off-by: WEN Pingbo <pingbo.wen@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c