lkml.org 
[lkml]   [2009]   [Jan]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC] Regulator: Possibility of passing notifications of non alarm events.
From
Date
On Sat, 2009-01-03 at 21:11 +0000, Jonathan Cameron wrote:
> Dear All,
>
> I am in the process of writing an hwmon driver for the Sensiron SHT15 humidity
> sensor.
>
> In common (I assume) with lots of other devices, the formula for converting
> the outputs of this chip to real units involves the supply voltage.
> Unfortunately the chip doesn't itself have any means of measuring this.
> Obviously this can be supplied via a board config if it is constant.
>
> As I have it connected to a DA9030 pmic I can register it as a consumer
> and hence query what the pmic thinks it is supplying.
>
> Unfortunately this regulator is shared with a number of other chips and so
> there is no guarantee that this voltage won't be changed (within the bounds
> supported by the SHT15). I'd like to avoid querying the regulator voltage
> every time I do a conversion.
>
> As the regulator framework already allows you to register to receive events
> such as under voltage detections, it seems to me that it would also make sense
> to allow registrations of handlers for events that occur during normal
> operation such as voltage changes.
>
> What do people think to adding this functionality?

Sounds fine. I assume you have a patch in development ;)

Thanks

Liam




\
 
 \ /
  Last update: 2009-01-04 11:33    [W:0.047 / U:0.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site