Skip to content

Commit 50dffbf

Browse files
committed
Merge tag 'for-v6.9-rc' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply
Pull power supply fixes from Sebastian Reichel: - mt6360_charger: Fix of_match for usb-otg-vbus regulator - rt9455: Fix unused-const-variable for !CONFIG_USB_PHY * tag 'for-v6.9-rc' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply: power: supply: mt6360_charger: Fix of_match for usb-otg-vbus regulator power: rt9455: hide unused rt9455_boost_voltage_values
2 parents a52a0b3 + 1e0fb11 commit 50dffbf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

drivers/power/supply/mt6360_charger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ static const struct regulator_ops mt6360_chg_otg_ops = {
588588
};
589589

590590
static const struct regulator_desc mt6360_otg_rdesc = {
591-
.of_match = "usb-otg-vbus",
591+
.of_match = "usb-otg-vbus-regulator",
592592
.name = "usb-otg-vbus",
593593
.ops = &mt6360_chg_otg_ops,
594594
.owner = THIS_MODULE,

drivers/power/supply/rt9455_charger.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ static const int rt9455_voreg_values[] = {
192192
4450000, 4450000, 4450000, 4450000, 4450000, 4450000, 4450000, 4450000
193193
};
194194

195+
#if IS_ENABLED(CONFIG_USB_PHY)
195196
/*
196197
* When the charger is in boost mode, REG02[7:2] represent boost output
197198
* voltage.
@@ -207,6 +208,7 @@ static const int rt9455_boost_voltage_values[] = {
207208
5600000, 5600000, 5600000, 5600000, 5600000, 5600000, 5600000, 5600000,
208209
5600000, 5600000, 5600000, 5600000, 5600000, 5600000, 5600000, 5600000,
209210
};
211+
#endif
210212

211213
/* REG07[3:0] (VMREG) in uV */
212214
static const int rt9455_vmreg_values[] = {

0 commit comments

Comments
 (0)