1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct regulator_init_data</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-consumer-supply.html" title="struct regulator_consumer_supply"><link rel="next" href="API-struct-regulator-linear-range.html" title="struct regulator_linear_range"></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_init_data</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-regulator-consumer-supply.html">Prev</a> </td><th width="60%" align="center">Chapter 5. API reference</th><td width="20%" align="right"> <a accesskey="n" href="API-struct-regulator-linear-range.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-regulator-init-data"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct regulator_init_data — 2 regulator platform initialisation data. 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> 4struct regulator_init_data { 5 const char * supply_regulator; 6 struct regulation_constraints constraints; 7 int num_consumer_supplies; 8 struct regulator_consumer_supply * consumer_supplies; 9 int (* regulator_init) (void *driver_data); 10 void * driver_data; 11}; </pre></div><div class="refsect1"><a name="idp1124822020"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">supply_regulator</span></dt><dd><p> 12 Parent regulator. Specified using the regulator name 13 as it appears in the name field in sysfs, which can 14 be explicitly set using the constraints field 'name'. 15 </p></dd><dt><span class="term">constraints</span></dt><dd><p> 16 Constraints. These must be specified for the regulator to 17 be usable. 18 </p></dd><dt><span class="term">num_consumer_supplies</span></dt><dd><p> 19 Number of consumer device supplies. 20 </p></dd><dt><span class="term">consumer_supplies</span></dt><dd><p> 21 Consumer device supply configuration. 22 </p></dd><dt><span class="term">regulator_init</span></dt><dd><p> 23 Callback invoked when the regulator has been registered. 24 </p></dd><dt><span class="term">driver_data</span></dt><dd><p> 25 Data passed to regulator_init. 26 </p></dd></dl></div></div><div class="refsect1"><a name="idp1124826892"></a><h2>Description</h2><p> 27 </p><p> 28 29 Initialisation constraints, our supply and consumers supplies. 30</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-consumer-supply.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-struct-regulator-linear-range.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct regulator_consumer_supply</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">struct regulator_linear_range</span></td></tr></table></div></body></html> 31