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

regulator: update some comments ([gs]et_voltage_vsel vs [gs]et_voltage_sel)

Some comments here are referring to a non-existent
regulator_ops::get_voltage_vsel() where ::get_voltage_sel() is meant,
and similar for ::set_voltage_vsel() / ::set_voltage_sel().

Update the comments.

Signed-off-by: André Draszik <andre.draszik@linaro.org>
Link: https://patch.msgid.link/20240913-regulator-typos-v1-1-92781c93f638@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

André Draszik and committed by
Mark Brown
fb9ce84a ff97b9c0

+5 -5
+4 -4
drivers/regulator/helpers.c
··· 125 125 * 126 126 * Regulators that use regmap for their register I/O and use pickable 127 127 * ranges can set the vsel_reg, vsel_mask, vsel_range_reg and vsel_range_mask 128 - * fields in their descriptor and then use this as their get_voltage_vsel 128 + * fields in their descriptor and then use this as their get_voltage_sel 129 129 * operation, saving some code. 130 130 */ 131 131 int regulator_get_voltage_sel_pickable_regmap(struct regulator_dev *rdev) ··· 195 195 * 196 196 * Regulators that use regmap for their register I/O and use pickable 197 197 * ranges can set the vsel_reg, vsel_mask, vsel_range_reg and vsel_range_mask 198 - * fields in their descriptor and then use this as their set_voltage_vsel 198 + * fields in their descriptor and then use this as their set_voltage_sel 199 199 * operation, saving some code. 200 200 */ 201 201 int regulator_set_voltage_sel_pickable_regmap(struct regulator_dev *rdev, ··· 250 250 * 251 251 * Regulators that use regmap for their register I/O can set the 252 252 * vsel_reg and vsel_mask fields in their descriptor and then use this 253 - * as their get_voltage_vsel operation, saving some code. 253 + * as their get_voltage_sel operation, saving some code. 254 254 */ 255 255 int regulator_get_voltage_sel_regmap(struct regulator_dev *rdev) 256 256 { ··· 276 276 * 277 277 * Regulators that use regmap for their register I/O can set the 278 278 * vsel_reg and vsel_mask fields in their descriptor and then use this 279 - * as their set_voltage_vsel operation, saving some code. 279 + * as their set_voltage_sel operation, saving some code. 280 280 */ 281 281 int regulator_set_voltage_sel_regmap(struct regulator_dev *rdev, unsigned sel) 282 282 {
+1 -1
drivers/regulator/mt6357-regulator.c
··· 123 123 * 124 124 * Regulators that use regmap for their register I/O can set the 125 125 * da_vsel_reg and da_vsel_mask fields in the info structure and 126 - * then use this as their get_voltage_vsel operation. 126 + * then use this as their get_voltage_sel operation. 127 127 */ 128 128 static int mt6357_get_buck_voltage_sel(struct regulator_dev *rdev) 129 129 {