Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: bd71828: remove get_voltage operation

Simplify LDO6 voltage getting on BD71828 by removing the
get_voltage call-back and providing the fixed voltage in
regulator_desc instead

Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Suggested-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20191219113444.GA28299@localhost.localdomain
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Matti Vaittinen and committed by
Mark Brown
a14a0b5f 522498f8

+1 -6
+1 -6
drivers/regulator/bd71828-regulator.c
··· 197 197 .get_voltage_sel = regulator_get_voltage_sel_regmap, 198 198 }; 199 199 200 - static int bd71828_ldo6_get_voltage(struct regulator_dev *rdev) 201 - { 202 - return BD71828_LDO_6_VOLTAGE; 203 - } 204 - 205 200 static const struct regulator_ops bd71828_ldo6_ops = { 206 201 .enable = regulator_enable_regmap, 207 202 .disable = regulator_disable_regmap, 208 - .get_voltage = bd71828_ldo6_get_voltage, 209 203 .is_enabled = regulator_is_enabled_regmap, 210 204 }; 211 205 ··· 691 697 .id = BD71828_LDO6, 692 698 .ops = &bd71828_ldo6_ops, 693 699 .type = REGULATOR_VOLTAGE, 700 + .fixed_uV = BD71828_LDO_6_VOLTAGE, 694 701 .n_voltages = 1, 695 702 .enable_reg = BD71828_REG_LDO6_EN, 696 703 .enable_mask = BD71828_MASK_RUN_EN,