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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sun, 3 Feb 2013 21:01:54 +0100
From:	Pali Rohár <pali.rohar@...il.com>
To:	Anton Vorontsov <anton@...msg.org>
Cc:	David Woodhouse <dwmw2@...radead.org>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] bq27x00_battery: Fix reporting battery temperature

On Sunday 03 February 2013 04:44:51 Anton Vorontsov wrote:
> On Sat, Feb 02, 2013 at 11:06:09AM +0100, Pali Rohár wrote:
> > Reported temperature can be also negative, so cache value in
> > non negative Kelvin degree.
> > 
> > Signed-off-by: Pali Rohár <pali.rohar@...il.com>
> > ---
> 
> Applied, thanks!

Now I looked at bq27x00_battery and rx51_battery drivers and I 
see that both drivers reporting temperature in different units. 
bq27x00_battery in 1/10 °C and rx51_battery in 1/100 °C. What is 
correct degree for kernel power power supply API? Maybe other 
kernel drivers have different units too... Note that my above 
patch did not changed anything units, only fixed reporting 
(possible) negative temperature.

-- 
Pali Rohár
pali.rohar@...il.com

Download attachment "signature.asc " of type "application/pgp-signature" (199 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ