Skip to content

Commit 89ce43f

Browse files
Graeme GregorySamuel Ortiz
authored andcommitted
mfd: twl-core: Change TWL6025 references to TWL6032
The TWL6025 was never released beyond sample form and was replaced by the PhoenixLite range of chips - TWL6032. Change the references to reference the TWL6032 class and name the registers to twl6032 in line with an actual released chip name to avoid confusion. Currently there are no users of TWL6025 in the code. Signed-off-by: Graeme Gregory <gg@slimlogic.co.uk> Signed-off-by: Oleksandr Kozaruk <oleksandr.kozaruk@ti.com> Acked-by: Lee Jones <lee.jones@linaro.org> Reviwed-by: Mark Brown <broonie@linaro.org> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
1 parent 9971747 commit 89ce43f

6 files changed

Lines changed: 91 additions & 91 deletions

File tree

‎Documentation/devicetree/bindings/regulator/twl-regulator.txt‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@ For twl6030 regulators/LDOs
1818
- "ti,twl6030-vdd1" for VDD1 SMPS
1919
- "ti,twl6030-vdd2" for VDD2 SMPS
2020
- "ti,twl6030-vdd3" for VDD3 SMPS
21-
For twl6025 regulators/LDOs
21+
For twl6032 regulators/LDOs
2222
- compatible:
23-
- "ti,twl6025-ldo1" for LDO1 LDO
24-
- "ti,twl6025-ldo2" for LDO2 LDO
25-
- "ti,twl6025-ldo3" for LDO3 LDO
26-
- "ti,twl6025-ldo4" for LDO4 LDO
27-
- "ti,twl6025-ldo5" for LDO5 LDO
28-
- "ti,twl6025-ldo6" for LDO6 LDO
29-
- "ti,twl6025-ldo7" for LDO7 LDO
30-
- "ti,twl6025-ldoln" for LDOLN LDO
31-
- "ti,twl6025-ldousb" for LDOUSB LDO
32-
- "ti,twl6025-smps3" for SMPS3 SMPS
33-
- "ti,twl6025-smps4" for SMPS4 SMPS
34-
- "ti,twl6025-vio" for VIO SMPS
23+
- "ti,twl6032-ldo1" for LDO1 LDO
24+
- "ti,twl6032-ldo2" for LDO2 LDO
25+
- "ti,twl6032-ldo3" for LDO3 LDO
26+
- "ti,twl6032-ldo4" for LDO4 LDO
27+
- "ti,twl6032-ldo5" for LDO5 LDO
28+
- "ti,twl6032-ldo6" for LDO6 LDO
29+
- "ti,twl6032-ldo7" for LDO7 LDO
30+
- "ti,twl6032-ldoln" for LDOLN LDO
31+
- "ti,twl6032-ldousb" for LDOUSB LDO
32+
- "ti,twl6032-smps3" for SMPS3 SMPS
33+
- "ti,twl6032-smps4" for SMPS4 SMPS
34+
- "ti,twl6032-vio" for VIO SMPS
3535
For twl4030 regulators/LDOs
3636
- compatible:
3737
- "ti,twl4030-vaux1" for VAUX1 LDO

‎Documentation/devicetree/bindings/usb/twlxxxx-usb.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ TWL6030 USB COMPARATOR
88
usb interrupt number that raises VBUS interrupts when the controller has to
99
act as device
1010
- usb-supply : phandle to the regulator device tree node. It should be vusb
11-
if it is twl6030 or ldousb if it is twl6025 subclass.
11+
if it is twl6030 or ldousb if it is twl6032 subclass.
1212

1313
twl6030-usb {
1414
compatible = "ti,twl6030-usb";

‎drivers/mfd/twl-core.c‎

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
#define TWL6030_BASEADD_GASGAUGE 0x00C0
119119
#define TWL6030_BASEADD_PIH 0x00D0
120120
#define TWL6030_BASEADD_CHARGER 0x00E0
121-
#define TWL6025_BASEADD_CHARGER 0x00DA
121+
#define TWL6032_BASEADD_CHARGER 0x00DA
122122
#define TWL6030_BASEADD_LED 0x00F4
123123

124124
/* subchip/slave 2 0x4A - DFT */
@@ -718,9 +718,9 @@ add_children(struct twl4030_platform_data *pdata, unsigned irq_base,
718718
| REGULATOR_CHANGE_STATUS,
719719
};
720720

721-
if (features & TWL6025_SUBCLASS) {
721+
if (features & TWL6032_SUBCLASS) {
722722
usb3v3.supply = "ldousb";
723-
regulator = TWL6025_REG_LDOUSB;
723+
regulator = TWL6032_REG_LDOUSB;
724724
} else {
725725
usb3v3.supply = "vusb";
726726
regulator = TWL6030_REG_VUSB;
@@ -747,8 +747,8 @@ add_children(struct twl4030_platform_data *pdata, unsigned irq_base,
747747
usb3v3.dev_name = dev_name(child);
748748
} else if (IS_ENABLED(CONFIG_REGULATOR_TWL4030) &&
749749
twl_class_is_6030()) {
750-
if (features & TWL6025_SUBCLASS)
751-
child = add_regulator(TWL6025_REG_LDOUSB,
750+
if (features & TWL6032_SUBCLASS)
751+
child = add_regulator(TWL6032_REG_LDOUSB,
752752
pdata->ldousb, features);
753753
else
754754
child = add_regulator(TWL6030_REG_VUSB,
@@ -872,7 +872,7 @@ add_children(struct twl4030_platform_data *pdata, unsigned irq_base,
872872

873873
/* twl6030 regulators */
874874
if (IS_ENABLED(CONFIG_REGULATOR_TWL4030) && twl_class_is_6030() &&
875-
!(features & TWL6025_SUBCLASS)) {
875+
!(features & TWL6032_SUBCLASS)) {
876876
child = add_regulator(TWL6030_REG_VDD1, pdata->vdd1,
877877
features);
878878
if (IS_ERR(child))
@@ -952,60 +952,60 @@ add_children(struct twl4030_platform_data *pdata, unsigned irq_base,
952952
return PTR_ERR(child);
953953
}
954954

955-
/* twl6025 regulators */
955+
/* twl6032 regulators */
956956
if (IS_ENABLED(CONFIG_REGULATOR_TWL4030) && twl_class_is_6030() &&
957-
(features & TWL6025_SUBCLASS)) {
958-
child = add_regulator(TWL6025_REG_LDO5, pdata->ldo5,
957+
(features & TWL6032_SUBCLASS)) {
958+
child = add_regulator(TWL6032_REG_LDO5, pdata->ldo5,
959959
features);
960960
if (IS_ERR(child))
961961
return PTR_ERR(child);
962962

963-
child = add_regulator(TWL6025_REG_LDO1, pdata->ldo1,
963+
child = add_regulator(TWL6032_REG_LDO1, pdata->ldo1,
964964
features);
965965
if (IS_ERR(child))
966966
return PTR_ERR(child);
967967

968-
child = add_regulator(TWL6025_REG_LDO7, pdata->ldo7,
968+
child = add_regulator(TWL6032_REG_LDO7, pdata->ldo7,
969969
features);
970970
if (IS_ERR(child))
971971
return PTR_ERR(child);
972972

973-
child = add_regulator(TWL6025_REG_LDO6, pdata->ldo6,
973+
child = add_regulator(TWL6032_REG_LDO6, pdata->ldo6,
974974
features);
975975
if (IS_ERR(child))
976976
return PTR_ERR(child);
977977

978-
child = add_regulator(TWL6025_REG_LDOLN, pdata->ldoln,
978+
child = add_regulator(TWL6032_REG_LDOLN, pdata->ldoln,
979979
features);
980980
if (IS_ERR(child))
981981
return PTR_ERR(child);
982982

983-
child = add_regulator(TWL6025_REG_LDO2, pdata->ldo2,
983+
child = add_regulator(TWL6032_REG_LDO2, pdata->ldo2,
984984
features);
985985
if (IS_ERR(child))
986986
return PTR_ERR(child);
987987

988-
child = add_regulator(TWL6025_REG_LDO4, pdata->ldo4,
988+
child = add_regulator(TWL6032_REG_LDO4, pdata->ldo4,
989989
features);
990990
if (IS_ERR(child))
991991
return PTR_ERR(child);
992992

993-
child = add_regulator(TWL6025_REG_LDO3, pdata->ldo3,
993+
child = add_regulator(TWL6032_REG_LDO3, pdata->ldo3,
994994
features);
995995
if (IS_ERR(child))
996996
return PTR_ERR(child);
997997

998-
child = add_regulator(TWL6025_REG_SMPS3, pdata->smps3,
998+
child = add_regulator(TWL6032_REG_SMPS3, pdata->smps3,
999999
features);
10001000
if (IS_ERR(child))
10011001
return PTR_ERR(child);
10021002

1003-
child = add_regulator(TWL6025_REG_SMPS4, pdata->smps4,
1003+
child = add_regulator(TWL6032_REG_SMPS4, pdata->smps4,
10041004
features);
10051005
if (IS_ERR(child))
10061006
return PTR_ERR(child);
10071007

1008-
child = add_regulator(TWL6025_REG_VIO, pdata->vio6025,
1008+
child = add_regulator(TWL6032_REG_VIO, pdata->vio6025,
10091009
features);
10101010
if (IS_ERR(child))
10111011
return PTR_ERR(child);
@@ -1184,10 +1184,10 @@ twl_probe(struct i2c_client *client, const struct i2c_device_id *id)
11841184
if ((id->driver_data) & TWL6030_CLASS) {
11851185
twl_priv->twl_id = TWL6030_CLASS_ID;
11861186
twl_priv->twl_map = &twl6030_map[0];
1187-
/* The charger base address is different in twl6025 */
1188-
if ((id->driver_data) & TWL6025_SUBCLASS)
1187+
/* The charger base address is different in twl6032 */
1188+
if ((id->driver_data) & TWL6032_SUBCLASS)
11891189
twl_priv->twl_map[TWL_MODULE_MAIN_CHARGE].base =
1190-
TWL6025_BASEADD_CHARGER;
1190+
TWL6032_BASEADD_CHARGER;
11911191
twl_regmap_config = twl6030_regmap_config;
11921192
} else {
11931193
twl_priv->twl_id = TWL4030_CLASS_ID;
@@ -1296,7 +1296,7 @@ static const struct i2c_device_id twl_ids[] = {
12961296
{ "tps65921", TPS_SUBSET }, /* fewer LDOs; no codec, no LED
12971297
and vibrator. Charger in USB module*/
12981298
{ "twl6030", TWL6030_CLASS }, /* "Phoenix power chip" */
1299-
{ "twl6025", TWL6030_CLASS | TWL6025_SUBCLASS }, /* "Phoenix lite" */
1299+
{ "twl6032", TWL6030_CLASS | TWL6032_SUBCLASS }, /* "Phoenix lite" */
13001300
{ /* end of list */ },
13011301
};
13021302
MODULE_DEVICE_TABLE(i2c, twl_ids);

‎drivers/regulator/twl-regulator.c‎

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ struct twlreg_info {
109109
#define SMPS_OFFSET_EN BIT(0)
110110
#define SMPS_EXTENDED_EN BIT(1)
111111

112-
/* twl6025 SMPS EPROM values */
112+
/* twl6032 SMPS EPROM values */
113113
#define TWL6030_SMPS_OFFSET 0xB0
114114
#define TWL6030_SMPS_MULT 0xB3
115115
#define SMPS_MULTOFFSET_SMPS4 BIT(0)
@@ -173,7 +173,7 @@ static int twl6030reg_is_enabled(struct regulator_dev *rdev)
173173
struct twlreg_info *info = rdev_get_drvdata(rdev);
174174
int grp = 0, val;
175175

176-
if (!(twl_class_is_6030() && (info->features & TWL6025_SUBCLASS))) {
176+
if (!(twl_class_is_6030() && (info->features & TWL6032_SUBCLASS))) {
177177
grp = twlreg_grp(rdev);
178178
if (grp < 0)
179179
return grp;
@@ -211,7 +211,7 @@ static int twl6030reg_enable(struct regulator_dev *rdev)
211211
int grp = 0;
212212
int ret;
213213

214-
if (!(twl_class_is_6030() && (info->features & TWL6025_SUBCLASS)))
214+
if (!(twl_class_is_6030() && (info->features & TWL6032_SUBCLASS)))
215215
grp = twlreg_grp(rdev);
216216
if (grp < 0)
217217
return grp;
@@ -245,7 +245,7 @@ static int twl6030reg_disable(struct regulator_dev *rdev)
245245
int grp = 0;
246246
int ret;
247247

248-
if (!(twl_class_is_6030() && (info->features & TWL6025_SUBCLASS)))
248+
if (!(twl_class_is_6030() && (info->features & TWL6032_SUBCLASS)))
249249
grp = P1_GRP_6030 | P2_GRP_6030 | P3_GRP_6030;
250250

251251
/* For 6030, set the off state for all grps enabled */
@@ -339,7 +339,7 @@ static int twl6030reg_set_mode(struct regulator_dev *rdev, unsigned mode)
339339
int grp = 0;
340340
int val;
341341

342-
if (!(twl_class_is_6030() && (info->features & TWL6025_SUBCLASS)))
342+
if (!(twl_class_is_6030() && (info->features & TWL6032_SUBCLASS)))
343343
grp = twlreg_grp(rdev);
344344

345345
if (grp < 0)
@@ -899,14 +899,14 @@ static const struct twlreg_info TWL6030_INFO_##label = { \
899899
}, \
900900
}
901901

902-
#define TWL6025_ADJUSTABLE_LDO(label, offset, min_mVolts, max_mVolts) \
903-
static const struct twlreg_info TWL6025_INFO_##label = { \
902+
#define TWL6032_ADJUSTABLE_LDO(label, offset, min_mVolts, max_mVolts) \
903+
static const struct twlreg_info TWL6032_INFO_##label = { \
904904
.base = offset, \
905905
.min_mV = min_mVolts, \
906906
.max_mV = max_mVolts, \
907907
.desc = { \
908908
.name = #label, \
909-
.id = TWL6025_REG_##label, \
909+
.id = TWL6032_REG_##label, \
910910
.n_voltages = 32, \
911911
.ops = &twl6030ldo_ops, \
912912
.type = REGULATOR_VOLTAGE, \
@@ -933,14 +933,14 @@ static const struct twlreg_info TWLFIXED_INFO_##label = { \
933933
}, \
934934
}
935935

936-
#define TWL6025_ADJUSTABLE_SMPS(label, offset) \
936+
#define TWL6032_ADJUSTABLE_SMPS(label, offset) \
937937
static const struct twlreg_info TWLSMPS_INFO_##label = { \
938938
.base = offset, \
939939
.min_mV = 600, \
940940
.max_mV = 2100, \
941941
.desc = { \
942942
.name = #label, \
943-
.id = TWL6025_REG_##label, \
943+
.id = TWL6032_REG_##label, \
944944
.n_voltages = 63, \
945945
.ops = &twlsmps_ops, \
946946
.type = REGULATOR_VOLTAGE, \
@@ -981,15 +981,15 @@ TWL6030_ADJUSTABLE_LDO(VMMC, 0x68, 1000, 3300);
981981
TWL6030_ADJUSTABLE_LDO(VPP, 0x6c, 1000, 3300);
982982
TWL6030_ADJUSTABLE_LDO(VUSIM, 0x74, 1000, 3300);
983983
/* 6025 are renamed compared to 6030 versions */
984-
TWL6025_ADJUSTABLE_LDO(LDO2, 0x54, 1000, 3300);
985-
TWL6025_ADJUSTABLE_LDO(LDO4, 0x58, 1000, 3300);
986-
TWL6025_ADJUSTABLE_LDO(LDO3, 0x5c, 1000, 3300);
987-
TWL6025_ADJUSTABLE_LDO(LDO5, 0x68, 1000, 3300);
988-
TWL6025_ADJUSTABLE_LDO(LDO1, 0x6c, 1000, 3300);
989-
TWL6025_ADJUSTABLE_LDO(LDO7, 0x74, 1000, 3300);
990-
TWL6025_ADJUSTABLE_LDO(LDO6, 0x60, 1000, 3300);
991-
TWL6025_ADJUSTABLE_LDO(LDOLN, 0x64, 1000, 3300);
992-
TWL6025_ADJUSTABLE_LDO(LDOUSB, 0x70, 1000, 3300);
984+
TWL6032_ADJUSTABLE_LDO(LDO2, 0x54, 1000, 3300);
985+
TWL6032_ADJUSTABLE_LDO(LDO4, 0x58, 1000, 3300);
986+
TWL6032_ADJUSTABLE_LDO(LDO3, 0x5c, 1000, 3300);
987+
TWL6032_ADJUSTABLE_LDO(LDO5, 0x68, 1000, 3300);
988+
TWL6032_ADJUSTABLE_LDO(LDO1, 0x6c, 1000, 3300);
989+
TWL6032_ADJUSTABLE_LDO(LDO7, 0x74, 1000, 3300);
990+
TWL6032_ADJUSTABLE_LDO(LDO6, 0x60, 1000, 3300);
991+
TWL6032_ADJUSTABLE_LDO(LDOLN, 0x64, 1000, 3300);
992+
TWL6032_ADJUSTABLE_LDO(LDOUSB, 0x70, 1000, 3300);
993993
TWL4030_FIXED_LDO(VINTANA1, 0x3f, 1500, 11, 100, 0x08);
994994
TWL4030_FIXED_LDO(VINTDIG, 0x47, 1500, 13, 100, 0x08);
995995
TWL4030_FIXED_LDO(VUSB1V5, 0x71, 1500, 17, 100, 0x08);
@@ -1001,9 +1001,9 @@ TWL6030_FIXED_LDO(VDAC, 0x64, 1800, 0);
10011001
TWL6030_FIXED_LDO(VUSB, 0x70, 3300, 0);
10021002
TWL6030_FIXED_LDO(V1V8, 0x16, 1800, 0);
10031003
TWL6030_FIXED_LDO(V2V1, 0x1c, 2100, 0);
1004-
TWL6025_ADJUSTABLE_SMPS(SMPS3, 0x34);
1005-
TWL6025_ADJUSTABLE_SMPS(SMPS4, 0x10);
1006-
TWL6025_ADJUSTABLE_SMPS(VIO, 0x16);
1004+
TWL6032_ADJUSTABLE_SMPS(SMPS3, 0x34);
1005+
TWL6032_ADJUSTABLE_SMPS(SMPS4, 0x10);
1006+
TWL6032_ADJUSTABLE_SMPS(VIO, 0x16);
10071007

10081008
static u8 twl_get_smps_offset(void)
10091009
{
@@ -1031,7 +1031,7 @@ static u8 twl_get_smps_mult(void)
10311031

10321032
#define TWL4030_OF_MATCH(comp, label) TWL_OF_MATCH(comp, TWL4030, label)
10331033
#define TWL6030_OF_MATCH(comp, label) TWL_OF_MATCH(comp, TWL6030, label)
1034-
#define TWL6025_OF_MATCH(comp, label) TWL_OF_MATCH(comp, TWL6025, label)
1034+
#define TWL6032_OF_MATCH(comp, label) TWL_OF_MATCH(comp, TWL6032, label)
10351035
#define TWLFIXED_OF_MATCH(comp, label) TWL_OF_MATCH(comp, TWLFIXED, label)
10361036
#define TWLSMPS_OF_MATCH(comp, label) TWL_OF_MATCH(comp, TWLSMPS, label)
10371037

@@ -1060,15 +1060,15 @@ static const struct of_device_id twl_of_match[] = {
10601060
TWL6030_OF_MATCH("ti,twl6030-vmmc", VMMC),
10611061
TWL6030_OF_MATCH("ti,twl6030-vpp", VPP),
10621062
TWL6030_OF_MATCH("ti,twl6030-vusim", VUSIM),
1063-
TWL6025_OF_MATCH("ti,twl6025-ldo2", LDO2),
1064-
TWL6025_OF_MATCH("ti,twl6025-ldo4", LDO4),
1065-
TWL6025_OF_MATCH("ti,twl6025-ldo3", LDO3),
1066-
TWL6025_OF_MATCH("ti,twl6025-ldo5", LDO5),
1067-
TWL6025_OF_MATCH("ti,twl6025-ldo1", LDO1),
1068-
TWL6025_OF_MATCH("ti,twl6025-ldo7", LDO7),
1069-
TWL6025_OF_MATCH("ti,twl6025-ldo6", LDO6),
1070-
TWL6025_OF_MATCH("ti,twl6025-ldoln", LDOLN),
1071-
TWL6025_OF_MATCH("ti,twl6025-ldousb", LDOUSB),
1063+
TWL6032_OF_MATCH("ti,twl6032-ldo2", LDO2),
1064+
TWL6032_OF_MATCH("ti,twl6032-ldo4", LDO4),
1065+
TWL6032_OF_MATCH("ti,twl6032-ldo3", LDO3),
1066+
TWL6032_OF_MATCH("ti,twl6032-ldo5", LDO5),
1067+
TWL6032_OF_MATCH("ti,twl6032-ldo1", LDO1),
1068+
TWL6032_OF_MATCH("ti,twl6032-ldo7", LDO7),
1069+
TWL6032_OF_MATCH("ti,twl6032-ldo6", LDO6),
1070+
TWL6032_OF_MATCH("ti,twl6032-ldoln", LDOLN),
1071+
TWL6032_OF_MATCH("ti,twl6032-ldousb", LDOUSB),
10721072
TWLFIXED_OF_MATCH("ti,twl4030-vintana1", VINTANA1),
10731073
TWLFIXED_OF_MATCH("ti,twl4030-vintdig", VINTDIG),
10741074
TWLFIXED_OF_MATCH("ti,twl4030-vusb1v5", VUSB1V5),
@@ -1080,9 +1080,9 @@ static const struct of_device_id twl_of_match[] = {
10801080
TWLFIXED_OF_MATCH("ti,twl6030-vusb", VUSB),
10811081
TWLFIXED_OF_MATCH("ti,twl6030-v1v8", V1V8),
10821082
TWLFIXED_OF_MATCH("ti,twl6030-v2v1", V2V1),
1083-
TWLSMPS_OF_MATCH("ti,twl6025-smps3", SMPS3),
1084-
TWLSMPS_OF_MATCH("ti,twl6025-smps4", SMPS4),
1085-
TWLSMPS_OF_MATCH("ti,twl6025-vio", VIO),
1083+
TWLSMPS_OF_MATCH("ti,twl6032-smps3", SMPS3),
1084+
TWLSMPS_OF_MATCH("ti,twl6032-smps4", SMPS4),
1085+
TWLSMPS_OF_MATCH("ti,twl6032-vio", VIO),
10861086
{},
10871087
};
10881088
MODULE_DEVICE_TABLE(of, twl_of_match);
@@ -1163,19 +1163,19 @@ static int twlreg_probe(struct platform_device *pdev)
11631163
}
11641164

11651165
switch (id) {
1166-
case TWL6025_REG_SMPS3:
1166+
case TWL6032_REG_SMPS3:
11671167
if (twl_get_smps_mult() & SMPS_MULTOFFSET_SMPS3)
11681168
info->flags |= SMPS_EXTENDED_EN;
11691169
if (twl_get_smps_offset() & SMPS_MULTOFFSET_SMPS3)
11701170
info->flags |= SMPS_OFFSET_EN;
11711171
break;
1172-
case TWL6025_REG_SMPS4:
1172+
case TWL6032_REG_SMPS4:
11731173
if (twl_get_smps_mult() & SMPS_MULTOFFSET_SMPS4)
11741174
info->flags |= SMPS_EXTENDED_EN;
11751175
if (twl_get_smps_offset() & SMPS_MULTOFFSET_SMPS4)
11761176
info->flags |= SMPS_OFFSET_EN;
11771177
break;
1178-
case TWL6025_REG_VIO:
1178+
case TWL6032_REG_VIO:
11791179
if (twl_get_smps_mult() & SMPS_MULTOFFSET_VIO)
11801180
info->flags |= SMPS_EXTENDED_EN;
11811181
if (twl_get_smps_offset() & SMPS_MULTOFFSET_VIO)

‎drivers/usb/phy/phy-twl6030-usb.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ static int twl6030_usb_probe(struct platform_device *pdev)
347347
if (np) {
348348
twl->regulator = "usb";
349349
} else if (pdata) {
350-
if (pdata->features & TWL6025_SUBCLASS)
350+
if (pdata->features & TWL6032_SUBCLASS)
351351
twl->regulator = "ldousb";
352352
else
353353
twl->regulator = "vusb";

0 commit comments

Comments
 (0)