Skip to content

Commit fb9ce84

Browse files
andredbroonie
authored andcommitted
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>
1 parent ff97b9c commit fb9ce84

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

drivers/regulator/helpers.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ static int regulator_range_selector_to_index(struct regulator_dev *rdev,
125125
*
126126
* Regulators that use regmap for their register I/O and use pickable
127127
* 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
129129
* operation, saving some code.
130130
*/
131131
int regulator_get_voltage_sel_pickable_regmap(struct regulator_dev *rdev)
@@ -195,7 +195,7 @@ static int write_separate_vsel_and_range(struct regulator_dev *rdev,
195195
*
196196
* Regulators that use regmap for their register I/O and use pickable
197197
* 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
199199
* operation, saving some code.
200200
*/
201201
int regulator_set_voltage_sel_pickable_regmap(struct regulator_dev *rdev,
@@ -250,7 +250,7 @@ EXPORT_SYMBOL_GPL(regulator_set_voltage_sel_pickable_regmap);
250250
*
251251
* Regulators that use regmap for their register I/O can set the
252252
* 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.
254254
*/
255255
int regulator_get_voltage_sel_regmap(struct regulator_dev *rdev)
256256
{
@@ -276,7 +276,7 @@ EXPORT_SYMBOL_GPL(regulator_get_voltage_sel_regmap);
276276
*
277277
* Regulators that use regmap for their register I/O can set the
278278
* 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.
280280
*/
281281
int regulator_set_voltage_sel_regmap(struct regulator_dev *rdev, unsigned sel)
282282
{

drivers/regulator/mt6357-regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ struct mt6357_regulator_info {
123123
*
124124
* Regulators that use regmap for their register I/O can set the
125125
* 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.
127127
*/
128128
static int mt6357_get_buck_voltage_sel(struct regulator_dev *rdev)
129129
{

0 commit comments

Comments
 (0)