lkml.org 
[lkml]   [2010]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] ACPI / Battery: Return -ENODATA for unknown values in get_property()
From
On 21 October 2010 17:54, Sitsofe Wheeler <sitsofe@yahoo.com> wrote:
> I guess there are a whole bunch of other attributes that could
> theoretically be -1 and shouldn't be used if they return it...

I think checking for <0 is probably a good idea, and I'm a little
surprised we don't do this already. Patch welcome, if this is what you
decide to do.

Richard.


\
 
 \ /
  Last update: 2010-10-22 14:33    [W:0.135 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site