Skip to content

Commit 4628b80

Browse files
Andre-ARMlag-linaro
authored andcommitted
regulator: axp20x: fix typo-ed identifier
The registers to set the X-Powers AXP313 regulators are of course "CONTROL" registers, not "CONRTOL" ones. Fix the typo in the header file and in its users. No functional change. Signed-off-by: Andre Przywara <[email protected]> Acked-by: Jernej Skrabec <[email protected]> Tested-by: Ryan Walklin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 4cece76 commit 4628b80

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

drivers/regulator/axp20x-regulator.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -733,21 +733,21 @@ static const struct linear_range axp313a_dcdc3_ranges[] = {
733733
static const struct regulator_desc axp313a_regulators[] = {
734734
AXP_DESC_RANGES(AXP313A, DCDC1, "dcdc1", "vin1",
735735
axp313a_dcdc1_ranges, AXP313A_DCDC1_NUM_VOLTAGES,
736-
AXP313A_DCDC1_CONRTOL, AXP313A_DCDC_V_OUT_MASK,
736+
AXP313A_DCDC1_CONTROL, AXP313A_DCDC_V_OUT_MASK,
737737
AXP313A_OUTPUT_CONTROL, BIT(0)),
738738
AXP_DESC_RANGES(AXP313A, DCDC2, "dcdc2", "vin2",
739739
axp313a_dcdc2_ranges, AXP313A_DCDC23_NUM_VOLTAGES,
740-
AXP313A_DCDC2_CONRTOL, AXP313A_DCDC_V_OUT_MASK,
740+
AXP313A_DCDC2_CONTROL, AXP313A_DCDC_V_OUT_MASK,
741741
AXP313A_OUTPUT_CONTROL, BIT(1)),
742742
AXP_DESC_RANGES(AXP313A, DCDC3, "dcdc3", "vin3",
743743
axp313a_dcdc3_ranges, AXP313A_DCDC23_NUM_VOLTAGES,
744-
AXP313A_DCDC3_CONRTOL, AXP313A_DCDC_V_OUT_MASK,
744+
AXP313A_DCDC3_CONTROL, AXP313A_DCDC_V_OUT_MASK,
745745
AXP313A_OUTPUT_CONTROL, BIT(2)),
746746
AXP_DESC(AXP313A, ALDO1, "aldo1", "vin1", 500, 3500, 100,
747-
AXP313A_ALDO1_CONRTOL, AXP313A_LDO_V_OUT_MASK,
747+
AXP313A_ALDO1_CONTROL, AXP313A_LDO_V_OUT_MASK,
748748
AXP313A_OUTPUT_CONTROL, BIT(3)),
749749
AXP_DESC(AXP313A, DLDO1, "dldo1", "vin1", 500, 3500, 100,
750-
AXP313A_DLDO1_CONRTOL, AXP313A_LDO_V_OUT_MASK,
750+
AXP313A_DLDO1_CONTROL, AXP313A_LDO_V_OUT_MASK,
751751
AXP313A_OUTPUT_CONTROL, BIT(4)),
752752
AXP_DESC_FIXED(AXP313A, RTC_LDO, "rtc-ldo", "vin1", 1800),
753753
};

include/linux/mfd/axp20x.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ enum axp20x_variants {
104104

105105
#define AXP313A_ON_INDICATE 0x00
106106
#define AXP313A_OUTPUT_CONTROL 0x10
107-
#define AXP313A_DCDC1_CONRTOL 0x13
108-
#define AXP313A_DCDC2_CONRTOL 0x14
109-
#define AXP313A_DCDC3_CONRTOL 0x15
110-
#define AXP313A_ALDO1_CONRTOL 0x16
111-
#define AXP313A_DLDO1_CONRTOL 0x17
107+
#define AXP313A_DCDC1_CONTROL 0x13
108+
#define AXP313A_DCDC2_CONTROL 0x14
109+
#define AXP313A_DCDC3_CONTROL 0x15
110+
#define AXP313A_ALDO1_CONTROL 0x16
111+
#define AXP313A_DLDO1_CONTROL 0x17
112112
#define AXP313A_SHUTDOWN_CTRL 0x1a
113113
#define AXP313A_IRQ_EN 0x20
114114
#define AXP313A_IRQ_STATE 0x21

0 commit comments

Comments
 (0)