UPSTREAM: regulator: refactor valid_ops_mask checking code
authorWEN Pingbo <pingbo.wen@linaro.org>
Sat, 23 Apr 2016 07:11:05 +0000 (15:11 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 6 Mar 2017 10:28:40 +0000 (18:28 +0800)
commit0b97d6af042bb6b661c10bf1d69241ac49fc7d49
treef18cf9e831a68d8f41b4538777836d5dbdd7178c
parent14b8d1e030574b603d3b5e2919aa84ea6eb62d0a
UPSTREAM: 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>
(cherry picked from commit 8a34e979f684aa13e6c4bf23b394cca9dfabf4a9)

Change-Id: Ib3ffc949004c71abe3b75b4e0ffaf2e303f00d22
Signed-off-by: David Wu <david.wu@rock-chips.com>
drivers/regulator/core.c