Linux Power Management development
 help / color / mirror / Atom feed
* [PATCH 1/2] power: supply: bq25890: Add CC voltage to ADC properties
@ 2022-10-09 19:18 Marek Vasut
  2022-10-09 19:18 ` [PATCH 2/2] power: supply: bq25890: Rename POWER_SUPPLY_PROP_CURRENT_NOW to CC current Marek Vasut
  2022-10-09 23:08 ` [PATCH 1/2] power: supply: bq25890: Add CC voltage to ADC properties Michał Mirosław
  0 siblings, 2 replies; 13+ messages in thread
From: Marek Vasut @ 2022-10-09 19:18 UTC (permalink / raw)
  To: linux-pm
  Cc: Marek Vasut, Andy Shevchenko, Hans de Goede,
	Michał Mirosław, Sebastian Reichel

The POWER_SUPPLY_PROP_CONSTANT_CHARGE_VOLTAGE , representing register
REG0E field BATV is an ADC conversion of Battery Voltage (VBAT). Mark
the property as ADC one.

Fixes: 21d90eda433f ("power: bq25890: fix ADC mode configuration")
Signed-off-by: Marek Vasut <marex@denx.de>
---
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Cc: Sebastian Reichel <sebastian.reichel@collabora.com>
To: linux-pm@vger.kernel.org
---
 drivers/power/supply/bq25890_charger.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply/bq25890_charger.c
index 6020b58c641d2..34dbd498f0f51 100644
--- a/drivers/power/supply/bq25890_charger.c
+++ b/drivers/power/supply/bq25890_charger.c
@@ -432,6 +432,7 @@ static bool bq25890_is_adc_property(enum power_supply_property psp)
 {
 	switch (psp) {
 	case POWER_SUPPLY_PROP_VOLTAGE_NOW:
+	case POWER_SUPPLY_PROP_CONSTANT_CHARGE_VOLTAGE:
 	case POWER_SUPPLY_PROP_CURRENT_NOW:
 	case POWER_SUPPLY_PROP_TEMP:
 		return true;
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-10-11 16:35 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-09 19:18 [PATCH 1/2] power: supply: bq25890: Add CC voltage to ADC properties Marek Vasut
2022-10-09 19:18 ` [PATCH 2/2] power: supply: bq25890: Rename POWER_SUPPLY_PROP_CURRENT_NOW to CC current Marek Vasut
2022-10-09 22:58   ` Michał Mirosław
2022-10-10  0:00     ` Marek Vasut
2022-10-10 13:27       ` Hans de Goede
2022-10-10 16:45         ` Marek Vasut
2022-10-10 17:31           ` Hans de Goede
2022-10-10 17:39             ` Marek Vasut
2022-10-09 23:08 ` [PATCH 1/2] power: supply: bq25890: Add CC voltage to ADC properties Michał Mirosław
2022-10-10 13:50   ` Hans de Goede
2022-10-10 19:22     ` Marek Vasut
2022-10-11  7:38       ` Hans de Goede
2022-10-11 16:35         ` Marek Vasut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox