regulator: qcom_spmi: Use regmap helpers for enable/disable/is_enabled callback
authorAxel Lin <axel.lin@ingics.com>
Wed, 29 Nov 2017 14:02:46 +0000 (22:02 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 24 Jan 2018 17:31:01 +0000 (17:31 +0000)
commit9d4853322ffcc76a2eb62d720ec3903d427b39bc
treea2ae61204692f60b75110c816c3e02f6dacad541
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323
regulator: qcom_spmi: Use regmap helpers for enable/disable/is_enabled callback

Setup .enable_reg/.enable_mask/.enable_val fields, then we can use the
regmap helpers for enable/disable/is_enabled callback implementation.

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