Skip to content

Commit

Permalink
Merge tag 'for-v6.9-rc' of git://git.kernel.org/pub/scm/linux/kernel/…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
Linus Torvalds committed Apr 30, 2024
2 parents a52a0b3 + 1e0fb11 commit 50dffbf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/power/supply/mt6360_charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ static const struct regulator_ops mt6360_chg_otg_ops = {
};

static const struct regulator_desc mt6360_otg_rdesc = {
.of_match = "usb-otg-vbus",
.of_match = "usb-otg-vbus-regulator",
.name = "usb-otg-vbus",
.ops = &mt6360_chg_otg_ops,
.owner = THIS_MODULE,
Expand Down
2 changes: 2 additions & 0 deletions drivers/power/supply/rt9455_charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ static const int rt9455_voreg_values[] = {
4450000, 4450000, 4450000, 4450000, 4450000, 4450000, 4450000, 4450000
};

#if IS_ENABLED(CONFIG_USB_PHY)
/*
* When the charger is in boost mode, REG02[7:2] represent boost output
* voltage.
Expand All @@ -207,6 +208,7 @@ static const int rt9455_boost_voltage_values[] = {
5600000, 5600000, 5600000, 5600000, 5600000, 5600000, 5600000, 5600000,
5600000, 5600000, 5600000, 5600000, 5600000, 5600000, 5600000, 5600000,
};
#endif

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

0 comments on commit 50dffbf

Please sign in to comment.