Skip to content

Commit 3d6c982

Browse files
akemnadebroonie
authored andcommitted
regulator: twl6030: re-add TWL6032_SUBCLASS
In former times, info->feature was populated via the parent driver by pdata/regulator_init_data->driver_data for all regulators when USB_PRODUCT_ID_LSB indicates a TWL6032. Today, the information is not set, so re-add it at the regulator definitions. Fixes: 25d8233 ("regulator: twl: make driver DT only") Signed-off-by: Andreas Kemnade <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 0b24dfa commit 3d6c982

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/regulator/twl6030-regulator.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,7 @@ static const struct twlreg_info TWL6030_INFO_##label = { \
530530
#define TWL6032_ADJUSTABLE_LDO(label, offset) \
531531
static const struct twlreg_info TWL6032_INFO_##label = { \
532532
.base = offset, \
533+
.features = TWL6032_SUBCLASS, \
533534
.desc = { \
534535
.name = #label, \
535536
.id = TWL6032_REG_##label, \
@@ -562,6 +563,7 @@ static const struct twlreg_info TWLFIXED_INFO_##label = { \
562563
#define TWL6032_ADJUSTABLE_SMPS(label, offset) \
563564
static const struct twlreg_info TWLSMPS_INFO_##label = { \
564565
.base = offset, \
566+
.features = TWL6032_SUBCLASS, \
565567
.desc = { \
566568
.name = #label, \
567569
.id = TWL6032_REG_##label, \

0 commit comments

Comments
 (0)