Skip to contentSkip to conversation

power: bq25890: temperature is also an adc value

PATCH In review Angus Ainslie 2 participants 3 messages Nov 10, 2021 – Nov 15, 2021 Power supply

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 power: bq25890: temperature is also an adc value

Make sure that a conversion is forced when the power supply is offline so the temperature is valid.

---
 drivers/power/supply/bq25890_charger.c | 1 +
 1 file changed, 1 insertion(+)
drivers/power/supply/bq25890_charger.c +1 -0
index 945c3257ca93..23a91c5d1f9d 100644
@@ -388,6 +388,7 @@ static bool bq25890_is_adc_property(enum power_supply_property psp)
 	switch (psp) {
 	case POWER_SUPPLY_PROP_VOLTAGE_NOW:
 	case POWER_SUPPLY_PROP_CURRENT_NOW:
+	case POWER_SUPPLY_PROP_TEMP:
 		return true;
 
 	default:
Signature · 1 line
2.25.1
#1 lore raw

Hi,

Quoted 5 lines · Angus Ainslie

Make sure that a conversion is forced when the power supply is offline so the temperature is valid.

---

Thanks, queued to power-supply's fixes branch.

-- Sebastian

Quoted 18 lines
 drivers/power/supply/bq25890_charger.c | 1 +
 1 file changed, 1 insertion(+)
drivers/power/supply/bq25890_charger.c +1 -0
index 945c3257ca93..23a91c5d1f9d 100644
@@ -388,6 +388,7 @@ static bool bq25890_is_adc_property(enum power_supply_property psp)
 	switch (psp) {
 	case POWER_SUPPLY_PROP_VOLTAGE_NOW:
 	case POWER_SUPPLY_PROP_CURRENT_NOW:
+	case POWER_SUPPLY_PROP_TEMP:
 		return true;
 
 	default:
Signature · 1 line
2.25.1
#2 lore raw
Quoted 6 lines · Sebastian Reichel

Hi,

Quoted 3 lines · Angus Ainslie

Make sure that a conversion is forced when the power supply is offline so the temperature is valid.

Quoted 7 lines
Quoted 2 lines

---

Thanks, queued to power-supply's fixes branch.

-- Sebastian

Thanks !

Angus

Quoted 19 lines
Quoted 19 lines
 drivers/power/supply/bq25890_charger.c | 1 +
 1 file changed, 1 insertion(+)
drivers/power/supply/bq25890_charger.c +1 -0
index 945c3257ca93..23a91c5d1f9d 100644
@@ -388,6 +388,7 @@ static bool bq25890_is_adc_property(enum 
 power_supply_property psp)
 	switch (psp) {
 	case POWER_SUPPLY_PROP_VOLTAGE_NOW:
 	case POWER_SUPPLY_PROP_CURRENT_NOW:
+	case POWER_SUPPLY_PROP_TEMP:
 		return true;
 

default:
--
2.25.1