* [PATCH] power: bq25890: temperature is also an adc value
@ 2021-11-10 0:24 Angus Ainslie
2021-11-15 15:22 ` Sebastian Reichel
0 siblings, 1 reply; 3+ messages in thread
From: Angus Ainslie @ 2021-11-10 0:24 UTC (permalink / raw)
To: Sebastian Reichel; +Cc: linux-pm, linux-kernel, kernel, Angus Ainslie
Make sure that a conversion is forced when the power supply is offline so
the temperature is valid.
Signed-off-by: Angus Ainslie <angus@akkea.ca>
---
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 945c3257ca93..23a91c5d1f9d 100644
--- a/drivers/power/supply/bq25890_charger.c
+++ b/drivers/power/supply/bq25890_charger.c
@@ -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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] power: bq25890: temperature is also an adc value
2021-11-10 0:24 [PATCH] power: bq25890: temperature is also an adc value Angus Ainslie
@ 2021-11-15 15:22 ` Sebastian Reichel
2021-11-15 15:48 ` Angus Ainslie
0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Reichel @ 2021-11-15 15:22 UTC (permalink / raw)
To: Angus Ainslie; +Cc: linux-pm, linux-kernel, kernel
[-- Attachment #1: Type: text/plain, Size: 914 bytes --]
Hi,
On Tue, Nov 09, 2021 at 04:24:40PM -0800, Angus Ainslie wrote:
> Make sure that a conversion is forced when the power supply is offline so
> the temperature is valid.
>
> Signed-off-by: Angus Ainslie <angus@akkea.ca>
> ---
Thanks, queued to power-supply's fixes branch.
-- Sebastian
> 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 945c3257ca93..23a91c5d1f9d 100644
> --- a/drivers/power/supply/bq25890_charger.c
> +++ b/drivers/power/supply/bq25890_charger.c
> @@ -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
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] power: bq25890: temperature is also an adc value
2021-11-15 15:22 ` Sebastian Reichel
@ 2021-11-15 15:48 ` Angus Ainslie
0 siblings, 0 replies; 3+ messages in thread
From: Angus Ainslie @ 2021-11-15 15:48 UTC (permalink / raw)
To: Sebastian Reichel; +Cc: linux-pm, linux-kernel, kernel
On 2021-11-15 07:22, Sebastian Reichel wrote:
> Hi,
>
> On Tue, Nov 09, 2021 at 04:24:40PM -0800, Angus Ainslie wrote:
>> Make sure that a conversion is forced when the power supply is offline
>> so
>> the temperature is valid.
>>
>> Signed-off-by: Angus Ainslie <angus@akkea.ca>
>> ---
>
> Thanks, queued to power-supply's fixes branch.
>
> -- Sebastian
>
Thanks !
Angus
>> 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 945c3257ca93..23a91c5d1f9d 100644
>> --- a/drivers/power/supply/bq25890_charger.c
>> +++ b/drivers/power/supply/bq25890_charger.c
>> @@ -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
>>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-11-15 15:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-10 0:24 [PATCH] power: bq25890: temperature is also an adc value Angus Ainslie
2021-11-15 15:22 ` Sebastian Reichel
2021-11-15 15:48 ` Angus Ainslie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.