<?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>Chapter 5. API reference</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="index.html" title="Voltage and current regulator API" /><link rel="prev" href="ch04s02.html" title="Constraints" /><link rel="next" href="re01.html" title="struct regulator_bulk_data" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 5. API reference</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch04s02.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="re01.html">Next</a></td></tr></table><hr /></div><div class="chapter" title="Chapter 5. API reference"><div class="titlepage"><div><div><h2 class="title"><a id="api"></a>Chapter 5. API reference</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="refentrytitle"><a href="re01.html"><span>struct regulator_bulk_data</span></a></span><span class="refpurpose"> — Data used for bulk regulator operations. </span></dt><dt><span class="refentrytitle"><a href="re02.html"><span>struct regulator_state</span></a></span><span class="refpurpose"> — regulator state during low power system states </span></dt><dt><span class="refentrytitle"><a href="re03.html"><span>struct regulation_constraints</span></a></span><span class="refpurpose"> — regulator operating constraints. </span></dt><dt><span class="refentrytitle"><a href="re04.html"><span>struct regulator_consumer_supply</span></a></span><span class="refpurpose"> — supply -> device mapping </span></dt><dt><span class="refentrytitle"><a href="re05.html"><span>struct regulator_init_data</span></a></span><span class="refpurpose"> — regulator platform initialisation data. </span></dt><dt><span class="refentrytitle"><a href="re06.html"><span>struct regulator_ops</span></a></span><span class="refpurpose"> — regulator operations. </span></dt><dt><span class="refentrytitle"><a href="re07.html"><span>struct regulator_desc</span></a></span><span class="refpurpose"> — Regulator descriptor </span></dt><dt><span class="refentrytitle"><a href="re08.html"><span>regulator_get</span></a></span><span class="refpurpose"> — lookup and obtain a reference to a regulator. </span></dt><dt><span class="refentrytitle"><a href="re09.html"><span>regulator_get_exclusive</span></a></span><span class="refpurpose"> — obtain exclusive access to a regulator. </span></dt><dt><span class="refentrytitle"><a href="re10.html"><span>regulator_put</span></a></span><span class="refpurpose"> — "free" the regulator source </span></dt><dt><span class="refentrytitle"><a href="re11.html"><span>regulator_enable</span></a></span><span class="refpurpose"> — enable regulator output </span></dt><dt><span class="refentrytitle"><a href="re12.html"><span>regulator_disable</span></a></span><span class="refpurpose"> — disable regulator output </span></dt><dt><span class="refentrytitle"><a href="re13.html"><span>regulator_force_disable</span></a></span><span class="refpurpose"> — force disable regulator output </span></dt><dt><span class="refentrytitle"><a href="re14.html"><span>regulator_is_enabled</span></a></span><span class="refpurpose"> — is the regulator output enabled </span></dt><dt><span class="refentrytitle"><a href="re15.html"><span>regulator_count_voltages</span></a></span><span class="refpurpose"> — count <code class="function">regulator_list_voltage</code> selectors </span></dt><dt><span class="refentrytitle"><a href="re16.html"><span>regulator_list_voltage</span></a></span><span class="refpurpose"> — enumerate supported voltages </span></dt><dt><span class="refentrytitle"><a href="re17.html"><span>regulator_set_voltage</span></a></span><span class="refpurpose"> — set regulator output voltage </span></dt><dt><span class="refentrytitle"><a href="re18.html"><span>regulator_get_voltage</span></a></span><span class="refpurpose"> — get regulator output voltage </span></dt><dt><span class="refentrytitle"><a href="re19.html"><span>regulator_set_current_limit</span></a></span><span class="refpurpose"> — set regulator output current limit </span></dt><dt><span class="refentrytitle"><a href="re20.html"><span>regulator_get_current_limit</span></a></span><span class="refpurpose"> — get regulator output current </span></dt><dt><span class="refentrytitle"><a href="re21.html"><span>regulator_set_mode</span></a></span><span class="refpurpose"> — set regulator operating mode </span></dt><dt><span class="refentrytitle"><a href="re22.html"><span>regulator_get_mode</span></a></span><span class="refpurpose"> — get regulator operating mode </span></dt><dt><span class="refentrytitle"><a href="re23.html"><span>regulator_set_optimum_mode</span></a></span><span class="refpurpose"> — set regulator optimum operating mode </span></dt><dt><span class="refentrytitle"><a href="re24.html"><span>regulator_register_notifier</span></a></span><span class="refpurpose"> — register regulator event notifier </span></dt><dt><span class="refentrytitle"><a href="re25.html"><span>regulator_unregister_notifier</span></a></span><span class="refpurpose"> — unregister regulator event notifier </span></dt><dt><span class="refentrytitle"><a href="re26.html"><span>regulator_bulk_get</span></a></span><span class="refpurpose"> — get multiple regulator consumers </span></dt><dt><span class="refentrytitle"><a href="re27.html"><span>regulator_bulk_enable</span></a></span><span class="refpurpose"> — enable multiple regulator consumers </span></dt><dt><span class="refentrytitle"><a href="re28.html"><span>regulator_bulk_disable</span></a></span><span class="refpurpose"> — disable multiple regulator consumers </span></dt><dt><span class="refentrytitle"><a href="re29.html"><span>regulator_bulk_free</span></a></span><span class="refpurpose"> — free multiple regulator consumers </span></dt><dt><span class="refentrytitle"><a href="re30.html"><span>regulator_notifier_call_chain</span></a></span><span class="refpurpose"> — call regulator event notifier </span></dt><dt><span class="refentrytitle"><a href="re31.html"><span>regulator_mode_to_status</span></a></span><span class="refpurpose"> — convert a regulator mode into a status </span></dt><dt><span class="refentrytitle"><a href="re32.html"><span>regulator_register</span></a></span><span class="refpurpose"> — register regulator </span></dt><dt><span class="refentrytitle"><a href="re33.html"><span>regulator_unregister</span></a></span><span class="refpurpose"> — unregister regulator </span></dt><dt><span class="refentrytitle"><a href="re34.html"><span>regulator_suspend_prepare</span></a></span><span class="refpurpose"> — prepare regulators for system wide suspend </span></dt><dt><span class="refentrytitle"><a href="re35.html"><span>regulator_has_full_constraints</span></a></span><span class="refpurpose"> — the system has fully specified constraints </span></dt><dt><span class="refentrytitle"><a href="re36.html"><span>rdev_get_drvdata</span></a></span><span class="refpurpose"> — get rdev regulator driver data </span></dt><dt><span class="refentrytitle"><a href="re37.html"><span>regulator_get_drvdata</span></a></span><span class="refpurpose"> — get regulator driver data </span></dt><dt><span class="refentrytitle"><a href="re38.html"><span>regulator_set_drvdata</span></a></span><span class="refpurpose"> — set regulator driver data </span></dt><dt><span class="refentrytitle"><a href="re39.html"><span>rdev_get_id</span></a></span><span class="refpurpose"> — get regulator ID </span></dt></dl></div><p> Due to limitations of the kernel documentation framework and the existing layout of the source code the entire regulator API is documented here. </p></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch04s02.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="re01.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Constraints </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span>struct regulator_bulk_data</span></td></tr></table></div></body></html>