From: Mark Brown Date: Mon, 27 Aug 2012 23:04:47 +0000 (-0700) Subject: regulator: arizona-micsupp: Support get/set bypass X-Git-Tag: v3.7-rc1~204^2^3~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e477ce075d205f9eee3e28795eae7a0efd1e54f6;p=platform%2Fupstream%2Fkernel-adaptation-pc.git regulator: arizona-micsupp: Support get/set bypass Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/arizona-micsupp.c b/drivers/regulator/arizona-micsupp.c index 450a069..d9b1f82 100644 --- a/drivers/regulator/arizona-micsupp.c +++ b/drivers/regulator/arizona-micsupp.c @@ -82,6 +82,9 @@ static struct regulator_ops arizona_micsupp_ops = { .get_voltage_sel = regulator_get_voltage_sel_regmap, .set_voltage_sel = regulator_set_voltage_sel_regmap, + + .get_bypass = regulator_get_bypass_regmap, + .set_bypass = regulator_set_bypass_regmap, }; static const struct regulator_desc arizona_micsupp = { @@ -95,6 +98,8 @@ static const struct regulator_desc arizona_micsupp = { .vsel_mask = ARIZONA_LDO2_VSEL_MASK, .enable_reg = ARIZONA_MIC_CHARGE_PUMP_1, .enable_mask = ARIZONA_CPMIC_ENA, + .bypass_reg = ARIZONA_MIC_CHARGE_PUMP_1, + .bypass_mask = ARIZONA_CPMIC_BYPASS, .owner = THIS_MODULE, };