1. 31 3月, 2009 1 次提交
    • D
      regulator: add get_status() · 853116a1
      David Brownell 提交于
      Based on previous LKML discussions:
      
       * Update docs for regulator sysfs class attributes to highlight
         the fact that all current attributes are intended to be control
         inputs, including notably "state" and "opmode" which previously
         implied otherwise.
      
       * Define a new regulator driver get_status() method, which is the
         first method reporting regulator outputs instead of inputs.
         It can report on/off and error status; or instead of simply
         "on", report the actual operating mode.
      
      For the moment, this is a sysfs-only interface, not accessible to
      regulator clients.  Such clients can use the current notification
      interfaces to detect errors, if the regulator reports them.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NLiam Girdwood <lrg@slimlogic.co.uk>
      853116a1
  2. 09 1月, 2009 11 次提交
  3. 14 10月, 2008 5 次提交
  4. 30 7月, 2008 1 次提交
    • L
      regulator: regulator framework core · 414c70cb
      Liam Girdwood 提交于
      This adds the regulator framework core.
      
      This framework is designed to provide a generic interface to voltage
      and current regulators within the Linux kernel. It's intended to
      provide voltage and current control to client or consumer drivers and
      also provide status information to user space applications through a
      sysfs interface.
      
      The intention is to allow systems to dynamically control regulator
      output in order to save power and prolong battery life. This applies
      to both voltage regulators (where voltage output is controllable) and
      current sinks (where current output is controllable).
      
      This framework safely compiles out if not selected so that client
      drivers can still be used in systems with no software controllable
      regulators.
      Signed-off-by: NLiam Girdwood <lg@opensource.wolfsonmicro.com>
      Signed-off-by: NGreg Kroah-Hartman <greg@kroah.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      414c70cb