[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b972f2db-b67b-41e6-9f41-b3a0fb5f4da2@uclouvain.be>
Date: Wed, 23 Apr 2025 09:48:42 +0200
From: Thomas Antoine <t.antoine@...ouvain.be>
To: Dimitri Fedrau <dima.fedrau@...il.com>
Cc: Rob Herring <robh@...nel.org>, Peter Griffin <peter.griffin@...aro.org>,
André Draszik <andre.draszik@...aro.org>,
Tudor Ambarus <tudor.ambarus@...aro.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley
<conor+dt@...nel.org>, Alim Akhtar <alim.akhtar@...sung.com>,
Catalin Marinas <catalin.marinas@....com>, Will Deacon <will@...nel.org>,
Sebastian Reichel <sre@...nel.org>, linux-arm-kernel@...ts.infradead.org,
linux-samsung-soc@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-pm@...r.kernel.org
Subject: Re: [PATCH v3 1/5] power: supply: correct capacity computation
Hi Dimitri,
On 4/22/25 11:46, Dimitri Fedrau wrote:
> Hi Thomas,
>
> On Mon, Apr 21, 2025 at 08:13:32PM +0200, Thomas Antoine via B4 Relay wrote:
>> From: Thomas Antoine <t.antoine@...ouvain.be>
[...]
>> -static int max172xx_capacity_to_ps(unsigned int reg)
>> +static int max172xx_capacity_to_ps(unsigned int reg,
>> + struct max1720x_device_info *info)
>> {
>> - return reg * 500; /* in uAh */
>> + return reg * (500000 / info->rsense); /* in uAh */
>> }
>>
>> /*
>>
>> --
>> 2.49.0
>>
>>
> thanks for finding this.
>
> Reviewed-by: Dimitri Fedrau <dimitri.fedrau@...bherr.com>
>
> Best regards,
> Dimitri Fedrau
I just realized I forgot to change the function calls in this patch, it is only
changed in the next patch. This will not compile as the function call does not
pass info as argument. I will change this in the next version.
Best regards,
Thomas Antoine
Powered by blists - more mailing lists