1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct regulator_config</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Voltage and current regulator API"><link rel="up" href="api.html" title="Chapter 5. API reference"><link rel="prev" href="API-struct-regulator-desc.html" title="struct regulator_desc"><link rel="next" href="API-regulator-get.html" title="regulator_get"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct regulator_config</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-regulator-desc.html">Prev</a> </td><th width="60%" align="center">Chapter 5. API reference</th><td width="20%" align="right"> <a accesskey="n" href="API-regulator-get.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-regulator-config"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct regulator_config — 2 Dynamic regulator descriptor 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> 4struct regulator_config { 5 struct device * dev; 6 const struct regulator_init_data * init_data; 7 void * driver_data; 8 struct device_node * of_node; 9 struct regmap * regmap; 10 bool ena_gpio_initialized; 11 int ena_gpio; 12 unsigned int ena_gpio_invert:1; 13 unsigned int ena_gpio_flags; 14}; </pre></div><div class="refsect1"><a name="idp1124897612"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">dev</span></dt><dd><p> 15 struct device for the regulator 16 </p></dd><dt><span class="term">init_data</span></dt><dd><p> 17 platform provided init data, passed through by driver 18 </p></dd><dt><span class="term">driver_data</span></dt><dd><p> 19 private regulator data 20 </p></dd><dt><span class="term">of_node</span></dt><dd><p> 21 OpenFirmware node to parse for device tree bindings (may be 22 NULL). 23 </p></dd><dt><span class="term">regmap</span></dt><dd><p> 24 regmap to use for core regmap helpers if <code class="function">dev_get_regmap</code> is 25 insufficient. 26 </p></dd><dt><span class="term">ena_gpio_initialized</span></dt><dd><p> 27 GPIO controlling regulator enable was properly 28 initialized, meaning that >= 0 is a valid gpio 29 identifier and < 0 is a non existent gpio. 30 </p></dd><dt><span class="term">ena_gpio</span></dt><dd><p> 31 GPIO controlling regulator enable. 32 </p></dd><dt><span class="term">ena_gpio_invert</span></dt><dd><p> 33 Sense for GPIO enable control. 34 </p></dd><dt><span class="term">ena_gpio_flags</span></dt><dd><p> 35 Flags to use when calling <code class="function">gpio_request_one</code> 36 </p></dd></dl></div></div><div class="refsect1"><a name="idp1124905188"></a><h2>Description</h2><p> 37 </p><p> 38 39 Each regulator registered with the core is described with a 40 structure of this type and a struct regulator_desc. This structure 41 contains the runtime variable parts of the regulator description. 42</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-struct-regulator-desc.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="api.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-regulator-get.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct regulator_desc</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">regulator_get</span></td></tr></table></div></body></html> 43