<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/regulator/ad5398.c, branch linux-4.18.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.18.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.18.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2017-01-31T20:38:27Z</updated>
<entry>
<title>regulator: ad5398: constify regulator_ops structure</title>
<updated>2017-01-31T20:38:27Z</updated>
<author>
<name>Bhumika Goyal</name>
</author>
<published>2017-01-28T13:35:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bb24b9df7c2c75d1876ebcdcfe239fd76cf4e3e0'/>
<id>urn:sha1:bb24b9df7c2c75d1876ebcdcfe239fd76cf4e3e0</id>
<content type='text'>
Declare regulator_ops structure as const as it is only stored in the ops
field of a regulator_desc structure. This field is of type const, so
regulator_ops structures having this property can be made const too.

File size before: drivers/regulator/ad5398.o
   text	   data	    bss	    dec	    hex	filename
   1707	    672	      0	   2379	    94b	drivers/regulator/ad5398.o

File size after: drivers/regulator/ad5398.o
   text	   data	    bss	    dec	    hex	filename
   1963	    416	      0	   2379	    94b	drivers/regulator/ad5398.o

Signed-off-by: Bhumika Goyal &lt;bhumirks@gmail.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>regulator: ad5398: Fix return value of ad5398_write_reg</title>
<updated>2016-02-19T16:02:34Z</updated>
<author>
<name>Axel Lin</name>
</author>
<published>2016-02-11T10:17:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4434cee9b6e9d70c8afea0d46bb211f132039d19'/>
<id>urn:sha1:4434cee9b6e9d70c8afea0d46bb211f132039d19</id>
<content type='text'>
i2c_master_send() returns the number of bytes written on success.
So current code returns 2 if ad5398_write_reg() success.
This return value is propagated to .set_current_limit, .enable and .disable
callbacks of regulator_ops. This can be a problem, for example, if the
users test if the return value of regulator_set_current_limit() is 0.
Fix it by making ad5398_write_reg() return 0 on success.

Signed-off-by: Axel Lin &lt;axel.lin@ingics.com&gt;
Acked-by: Michael Hennerich &lt;michael.hennerich@analog.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>regulator: ad5398: Remove unnecessary MODULE_ALIAS()</title>
<updated>2015-08-30T11:21:01Z</updated>
<author>
<name>Javier Martinez Canillas</name>
</author>
<published>2015-08-29T11:56:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ce317515b43f3e0b789b41df9b54e1608c783c5d'/>
<id>urn:sha1:ce317515b43f3e0b789b41df9b54e1608c783c5d</id>
<content type='text'>
The driver has a I2C device id table that is used to create the modaliases
and also "ad5398-regulator" is not a supported I2C id, so it's never used.

Signed-off-by: Javier Martinez Canillas &lt;javier@osg.samsung.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>regulator: ad5398: Convert to devm_regulator_register</title>
<updated>2013-09-16T23:27:55Z</updated>
<author>
<name>Axel Lin</name>
</author>
<published>2013-09-03T06:20:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9b2cdac712448ca182dabeffd36bd532c53f3935'/>
<id>urn:sha1:9b2cdac712448ca182dabeffd36bd532c53f3935</id>
<content type='text'>
Signed-off-by: Axel Lin &lt;axel.lin@ingics.com&gt;
Signed-off-by: Mark Brown &lt;broonie@linaro.org&gt;
</content>
</entry>
<entry>
<title>regulator: use dev_get_platdata()</title>
<updated>2013-07-30T11:24:20Z</updated>
<author>
<name>Jingoo Han</name>
</author>
<published>2013-07-30T08:20:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dff91d0b721bf8f036c1071a8f16a7effaa87514'/>
<id>urn:sha1:dff91d0b721bf8f036c1071a8f16a7effaa87514</id>
<content type='text'>
Use the wrapper function for retrieving the platform data instead of
accessing dev-&gt;platform_data directly.

Signed-off-by: Jingoo Han &lt;jg1.han@samsung.com&gt;
Signed-off-by: Mark Brown &lt;broonie@linaro.org&gt;
</content>
</entry>
<entry>
<title>regulator: remove use of __devexit</title>
<updated>2012-11-20T01:53:38Z</updated>
<author>
<name>Bill Pemberton</name>
</author>
<published>2012-11-19T18:26:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8dc995f56ef7aedb41873fdeaa1971f3aa166ebd'/>
<id>urn:sha1:8dc995f56ef7aedb41873fdeaa1971f3aa166ebd</id>
<content type='text'>
CONFIG_HOTPLUG is going away as an option so __devexit is no
longer needed.

Signed-off-by: Bill Pemberton &lt;wfp5p@virginia.edu&gt;
Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>regulator: remove use of __devinit</title>
<updated>2012-11-20T01:31:26Z</updated>
<author>
<name>Bill Pemberton</name>
</author>
<published>2012-11-19T18:22:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a5023574d120ca3b9337cedd4e27de90cae9aff7'/>
<id>urn:sha1:a5023574d120ca3b9337cedd4e27de90cae9aff7</id>
<content type='text'>
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.

Signed-off-by: Bill Pemberton &lt;wfp5p@virginia.edu&gt;
Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>regulator: remove use of __devexit_p</title>
<updated>2012-11-20T01:31:19Z</updated>
<author>
<name>Bill Pemberton</name>
</author>
<published>2012-11-19T18:20:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5eb9f2b96381ac3fa4a5910c37213c1cb62e9c65'/>
<id>urn:sha1:5eb9f2b96381ac3fa4a5910c37213c1cb62e9c65</id>
<content type='text'>
CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer
needed.

Signed-off-by: Bill Pemberton &lt;wfp5p@virginia.edu&gt;
Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>regulator: ad5398: Fix min/max current limit boundary checking</title>
<updated>2012-07-04T11:39:38Z</updated>
<author>
<name>Axel Lin</name>
</author>
<published>2012-07-04T03:55:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9c6a74c5e0ca3bfac09cb1e7bf7629cc0f3aa48c'/>
<id>urn:sha1:9c6a74c5e0ca3bfac09cb1e7bf7629cc0f3aa48c</id>
<content type='text'>
It is ok to request current limit with min_uA &lt; chip-&gt;min_uA and
max_uA &gt; chip-&gt;max_uA.

We need to set min_uA = chip-&gt;min_uA if (min_uA &lt; chip-&gt;min_uA),
this ensures the equation to calcuate selator does not return negative number.

Also set max_uA = chip-&gt;max_uA if (max_uA &gt; chip-&gt;max_uA), as suggested by
Sonic.

Signed-off-by: Axel Lin &lt;axel.lin@gmail.com&gt;
Acked-by: Sonic Zhang &lt;sonic.zhang@analog.com&gt;
Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>regulator: core: Use a struct to pass in regulator runtime configuration</title>
<updated>2012-04-09T11:37:09Z</updated>
<author>
<name>Mark Brown</name>
</author>
<published>2012-04-03T23:50:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c172708d38a401b2f3f841dfcd862b469fa0b670'/>
<id>urn:sha1:c172708d38a401b2f3f841dfcd862b469fa0b670</id>
<content type='text'>
Rather than adding new arguments to regulator_register() every time we
want to add a new bit of dynamic information at runtime change the function
to take these via a struct. By doing this we avoid needing to do further
changes like the recent addition of device tree support which required each
regulator driver to be updated to take an additional parameter.

The regulator_desc which should (mostly) be static data is still passed
separately as most drivers are able to configure this statically at build
time.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
</feed>
