[PATCH v3] Support batteries that report both energy and charge.

Benson Leung bleung at chromium.org
Wed Mar 30 10:55:45 PDT 2011


Hi Richard,

Thank you as well! I also noticed just now that i didn't set my tabs
correctly when I sent you this patch, so some of the lines have spaces
instead of tabs. Let me know if you'd like me to send a quick patch to
fix that, or if you caught it yourself.

Benson

On Wed, Mar 30, 2011 at 6:17 AM, Richard Hughes <hughsient at gmail.com> wrote:
> On 24 March 2011 19:04, Benson Leung <bleung at chromium.org> wrote:
>> More cleanly support batteries that report both energy and charge,
>> but do not report power_now. One battery driver in drivers/power
>> (bq20z75) supports reporting energy and charge natively from the
>> fuel gauge, but does not report power_now. The previous legacy behavior
>> would ignore the existence of charge and treat current_now as
>> being in units of power.
>>
>> Signed-off-by: Benson Leung <bleung at chromium.org>
>
> Applied to git master, many thanks.
>
> Richard.
>



-- 
Benson Leung
Software Engineer, Chrom* OS
bleung at chromium.org


More information about the devkit-devel mailing list