lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Tue, 17 Apr 2007 10:17:58 +0200
From:	Pavel Machek <pavel@....cz>
To:	Matt Reimer <mattjreimer@...il.com>
Cc:	Anton Vorontsov <cbou@...l.ru>, linux-kernel@...r.kernel.org,
	kernel-discuss@...dhelds.org, dwmw2@...radead.org
Subject: Re: [PATCH 6/7] [RFC] ds2760 battery driver

Hi!

> >> +     /* Calculate the empty level at the present temperature. */
> >> +     scale[4] = di->raw[DS2760_ACTIVE_EMPTY + 4];
> >> +     for (i = 3; i >= 0; i--)
> >> +             scale[i] = scale[i + 1] + di->raw[DS2760_ACTIVE_EMPTY + i];
> >> +
> >> +     di->empty_mAh = battery_interpolate(scale, di->temp_C / 10);
> >
> >Wow.
> 
> Yeah, mea culpa. I don't like its obtuseness either, and haven't
> revisited it since I got it working. Basically the battery has an

No, I actually like the fact that someone cared enough about
temperature's influence on li-ion.
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ