public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] Regulator: Possibility of passing notifications of non alarm events.
@ 2009-01-03 21:11 Jonathan Cameron
  2009-01-04 10:31 ` Liam Girdwood
  0 siblings, 1 reply; 8+ messages in thread
From: Jonathan Cameron @ 2009-01-03 21:11 UTC (permalink / raw)
  To: LKML; +Cc: lrg, broonie

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?

Thanks

--
Jonathan Cameron

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-01-20 20:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-03 21:11 [RFC] Regulator: Possibility of passing notifications of non alarm events Jonathan Cameron
2009-01-04 10:31 ` Liam Girdwood
2009-01-18 18:47   ` [RFC] Regulator: Add a voltage changed event to notify consumers Jonathan Cameron
2009-01-19 15:29     ` Mark Brown
2009-01-19 16:57       ` Jonathan Cameron
2009-01-19 18:08         ` Jonathan Cameron
2009-01-19 18:20           ` [RFC] Regulator: Push lock out of _notifier_call_chain + add voltage change event Jonathan Cameron
2009-01-20 20:09             ` Liam Girdwood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox