Sophie

Sophie

distrib > CentOS > 6 > i386 > by-pkgid > 2c51d8eb79f8810ada971ee8c30ce1e5 > files > 3409

kernel-doc-2.6.32-71.14.1.el6.noarch.rpm

<?xml version="1.0" encoding="ANSI_X3.4-1968" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968" /><title>struct regulator_ops</title><meta name="generator" content="DocBook XSL Stylesheets V1.75.2" /><link rel="home" href="index.html" title="Voltage and current regulator API" /><link rel="up" href="ch05.html" title="Chapter&#160;5.&#160;API reference" /><link rel="prev" href="re05.html" title="struct regulator_init_data" /><link rel="next" href="re07.html" title="struct regulator_desc" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span>struct regulator_ops</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="re05.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;5.&#160;API reference</th><td width="20%" align="right">&#160;<a accesskey="n" href="re07.html">Next</a></td></tr></table><hr /></div><div class="refentry" title="struct regulator_ops"><a id="API-struct-regulator-ops"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct regulator_ops &#8212; 
  regulator operations.
 </p></div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><pre class="programlisting">
struct regulator_ops {
  int (* list_voltage) (struct regulator_dev *, unsigned selector);
  int (* set_voltage) (struct regulator_dev *, int min_uV, int max_uV);
  int (* get_voltage) (struct regulator_dev *);
  int (* set_current_limit) (struct regulator_dev *,int min_uA, int max_uA);
  int (* get_current_limit) (struct regulator_dev *);
  int (* enable) (struct regulator_dev *);
  int (* disable) (struct regulator_dev *);
  int (* is_enabled) (struct regulator_dev *);
  int (* set_mode) (struct regulator_dev *, unsigned int mode);
  unsigned int (* get_mode) (struct regulator_dev *);
  int (* get_status) (struct regulator_dev *);
  unsigned int (* get_optimum_mode) (struct regulator_dev *, int input_uV,int output_uV, int load_uA);
  int (* set_suspend_voltage) (struct regulator_dev *, int uV);
  int (* set_suspend_enable) (struct regulator_dev *);
  int (* set_suspend_disable) (struct regulator_dev *);
  int (* set_suspend_mode) (struct regulator_dev *, unsigned int mode);
};  </pre></div><div class="refsect1" title="Members"><a id="id2928098"></a><h2>Members</h2><div class="variablelist"><dl><dt><span class="term">list_voltage</span></dt><dd><p>
Return one of the supported voltages, in microvolts; zero
if the selector indicates a voltage that is unusable on this system;
or negative errno.  Selectors range from zero to one less than
regulator_desc.n_voltages.  Voltages may be reported in any order.
      </p></dd><dt><span class="term">set_voltage</span></dt><dd><p>
Set the voltage for the regulator within the range specified.
The driver should select the voltage closest to min_uV.
      </p></dd><dt><span class="term">get_voltage</span></dt><dd><p>
Return the currently configured voltage for the regulator.
      </p></dd><dt><span class="term">set_current_limit</span></dt><dd><p>
Configure a limit for a current-limited regulator.
      </p></dd><dt><span class="term">get_current_limit</span></dt><dd><p>
Get the configured limit for a current-limited regulator.
      </p></dd><dt><span class="term">enable</span></dt><dd><p>
Configure the regulator as enabled.
      </p></dd><dt><span class="term">disable</span></dt><dd><p>
Configure the regulator as disabled.
      </p></dd><dt><span class="term">is_enabled</span></dt><dd><p>
Return 1 if the regulator is enabled, 0 if not.
May also return negative errno.
      </p></dd><dt><span class="term">set_mode</span></dt><dd><p>
Set the configured operating mode for the regulator.
      </p></dd><dt><span class="term">get_mode</span></dt><dd><p>
Get the configured operating mode for the regulator.
      </p></dd><dt><span class="term">get_status</span></dt><dd><p>
Return actual (not as-configured) status of regulator, as a
REGULATOR_STATUS value (or negative errno)
      </p></dd><dt><span class="term">get_optimum_mode</span></dt><dd><p>
Get the most efficient operating mode for the regulator
when running with the specified parameters.
      </p></dd><dt><span class="term">set_suspend_voltage</span></dt><dd><p>
Set the voltage for the regulator when the system
is suspended.
      </p></dd><dt><span class="term">set_suspend_enable</span></dt><dd><p>
Mark the regulator as enabled when the system is
suspended.
      </p></dd><dt><span class="term">set_suspend_disable</span></dt><dd><p>
Mark the regulator as disabled when the system is
suspended.
      </p></dd><dt><span class="term">set_suspend_mode</span></dt><dd><p>
Set the operating mode for the regulator when the
system is suspended.
      </p></dd></dl></div></div><div class="refsect1" title="Description"><a id="id2928303"></a><h2>Description</h2><p>
   This struct describes regulator operations which can be implemented by
   regulator chip drivers.
</p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="re05.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="ch05.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="re07.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span>struct regulator_init_data</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span>struct regulator_desc</span></td></tr></table></div></body></html>