<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/drivers/regulator/virtual.c, branch v2.6.33</title>
<subtitle>Linux kernel source tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/'/>
<entry>
<title>regulator: Improve virtual consumer probe error handling</title>
<updated>2009-09-22T12:32:39+00:00</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2009-07-21T15:00:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=72b86876d437a33253a47373579787b6dcc3bd36'/>
<id>72b86876d437a33253a47373579787b6dcc3bd36</id>
<content type='text'>
Report errors to the user and try harder to clean up if we're not
able to probe.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Liam Girdwood &lt;lrg@slimlogic.co.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Report errors to the user and try harder to clean up if we're not
able to probe.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Liam Girdwood &lt;lrg@slimlogic.co.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>regulator: Make virtual consumer a bit more chatty</title>
<updated>2009-09-22T12:32:35+00:00</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2009-06-17T14:45:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=a5d2abce4373810c0109c5939c0094ac16698625'/>
<id>a5d2abce4373810c0109c5939c0094ac16698625</id>
<content type='text'>
This makes it easier to read the logs when doing testing.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Liam Girdwood &lt;lrg@slimlogic.co.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This makes it easier to read the logs when doing testing.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Liam Girdwood &lt;lrg@slimlogic.co.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>regulator: Make virtual consumer use dev_printk</title>
<updated>2009-09-22T12:32:35+00:00</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2009-06-17T14:45:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=a07ac217146e0fac18c80d93e02109f2c96574d0'/>
<id>a07ac217146e0fac18c80d93e02109f2c96574d0</id>
<content type='text'>
Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Liam Girdwood &lt;lrg@slimlogic.co.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Liam Girdwood &lt;lrg@slimlogic.co.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>regulator: Report regulator_get() failure in virtual consumer</title>
<updated>2009-09-22T12:32:35+00:00</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2009-06-15T19:01:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=d61c3d56e23b3548a91b70ecce9dc226a8655a57'/>
<id>d61c3d56e23b3548a91b70ecce9dc226a8655a57</id>
<content type='text'>
The core will no longer complain so we should log an error here.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Liam Girdwood &lt;lrg@slimlogic.co.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The core will no longer complain so we should log an error here.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Liam Girdwood &lt;lrg@slimlogic.co.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>regulator: Set MODULE_ALIAS for regulator drivers</title>
<updated>2009-06-15T10:18:24+00:00</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2009-04-28T10:13:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=38c53c89139e6140b895b419b18c586e8593a6e8'/>
<id>38c53c89139e6140b895b419b18c586e8593a6e8</id>
<content type='text'>
Several of the regulator drivers didn't have MODULE_ALIAS so couldn't be
auto loaded. Add the MODULE_ALIAS in case they do get built as modules.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Liam Girdwood &lt;lrg@slimlogic.co.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Several of the regulator drivers didn't have MODULE_ALIAS so couldn't be
auto loaded. Add the MODULE_ALIAS in case they do get built as modules.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Liam Girdwood &lt;lrg@slimlogic.co.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>regulator/virtual: fix strings compare predicates</title>
<updated>2009-04-28T17:58:07+00:00</updated>
<author>
<name>Mike Rapoport</name>
<email>mike@compulab.co.il</email>
</author>
<published>2009-04-26T08:49:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=aa61d558f0f9f8b303b9cab1e51e9886896ba1a3'/>
<id>aa61d558f0f9f8b303b9cab1e51e9886896ba1a3</id>
<content type='text'>
Signed-off-by: Mike Rapoport &lt;mike@compulab.co.il&gt;
Acked-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Liam Girdwood &lt;lrg@slimlogic.co.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Mike Rapoport &lt;mike@compulab.co.il&gt;
Acked-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Liam Girdwood &lt;lrg@slimlogic.co.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>regulator: Mark attributes table for virtual regulator static</title>
<updated>2009-03-31T08:56:22+00:00</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2009-01-19T13:37:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=fefdae42465facfa26d41a7f0010f1ade32c3386'/>
<id>fefdae42465facfa26d41a7f0010f1ade32c3386</id>
<content type='text'>
It's not exported.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Liam Girdwood &lt;lrg@slimlogic.co.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It's not exported.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Liam Girdwood &lt;lrg@slimlogic.co.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>regulator: minor cleanup of virtual consumer</title>
<updated>2009-03-31T08:56:20+00:00</updated>
<author>
<name>Andrew Morton</name>
<email>akpm@linux-foundation.org</email>
</author>
<published>2009-01-16T00:13:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=9485397aa2195e82da6373586a66689526675ad4'/>
<id>9485397aa2195e82da6373586a66689526675ad4</id>
<content type='text'>
On Thu, 15 Jan 2009 16:10:22 -0800
Andrew Morton &lt;akpm@linux-foundation.org&gt; wrote:

&gt; On Wed, 14 Jan 2009 13:16:27 -0800
&gt; David Brownell &lt;david-b@pacbell.net&gt; wrote:
&gt;
&gt; &gt; From: David Brownell &lt;dbrownell@users.sourceforge.net&gt;
&gt; &gt;
&gt; &gt; Minor cleanup to the regulator set_mode sysfs support:
&gt; &gt; switch to sysfs_streq() in set_mode(), which is also
&gt; &gt; a code shrink.  Use the same strings that get_mode()
&gt; &gt; uses, shrinking data too.
&gt; &gt;
&gt; &gt; Signed-off-by: David Brownell &lt;dbrownell@users.sourceforge.net&gt;
&gt; &gt; ---
&gt; &gt;  drivers/regulator/virtual.c |    8 ++++----
&gt; &gt;  1 file changed, 4 insertions(+), 4 deletions(-)
&gt; &gt;
&gt; &gt; --- a/drivers/regulator/virtual.c
&gt; &gt; +++ b/drivers/regulator/virtual.c
&gt; &gt; @@ -226,13 +226,13 @@ static ssize_t set_mode(struct device *d
&gt; &gt;  	unsigned int mode;
&gt; &gt;  	int ret;
&gt; &gt;
&gt; &gt; -	if (strncmp(buf, "fast", strlen("fast")) == 0)
&gt; &gt; +	if (sysfs_streq(buf, "fast\n") == 0)
&gt; &gt;  		mode = REGULATOR_MODE_FAST;
&gt; &gt; -	else if (strncmp(buf, "normal", strlen("normal")) == 0)
&gt; &gt; +	else if (sysfs_streq(buf, "normal\n") == 0)
&gt; &gt;  		mode = REGULATOR_MODE_NORMAL;
&gt; &gt; -	else if (strncmp(buf, "idle", strlen("idle")) == 0)
&gt; &gt; +	else if (sysfs_streq(buf, "idle\n") == 0)
&gt; &gt;  		mode = REGULATOR_MODE_IDLE;
&gt; &gt; -	else if (strncmp(buf, "standby", strlen("standby")) == 0)
&gt; &gt; +	else if (sysfs_streq(buf, "standby\n") == 0)
&gt; &gt;  		mode = REGULATOR_MODE_STANDBY;
&gt;
&gt; we don't need the \n's, do we?

oh, it's for the string sharing.  Sneaky.

I wonder how many people will try to fix that up for us?

Acked-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;

Signed-off-by: Liam Girdwood &lt;lrg@slimlogic.co.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On Thu, 15 Jan 2009 16:10:22 -0800
Andrew Morton &lt;akpm@linux-foundation.org&gt; wrote:

&gt; On Wed, 14 Jan 2009 13:16:27 -0800
&gt; David Brownell &lt;david-b@pacbell.net&gt; wrote:
&gt;
&gt; &gt; From: David Brownell &lt;dbrownell@users.sourceforge.net&gt;
&gt; &gt;
&gt; &gt; Minor cleanup to the regulator set_mode sysfs support:
&gt; &gt; switch to sysfs_streq() in set_mode(), which is also
&gt; &gt; a code shrink.  Use the same strings that get_mode()
&gt; &gt; uses, shrinking data too.
&gt; &gt;
&gt; &gt; Signed-off-by: David Brownell &lt;dbrownell@users.sourceforge.net&gt;
&gt; &gt; ---
&gt; &gt;  drivers/regulator/virtual.c |    8 ++++----
&gt; &gt;  1 file changed, 4 insertions(+), 4 deletions(-)
&gt; &gt;
&gt; &gt; --- a/drivers/regulator/virtual.c
&gt; &gt; +++ b/drivers/regulator/virtual.c
&gt; &gt; @@ -226,13 +226,13 @@ static ssize_t set_mode(struct device *d
&gt; &gt;  	unsigned int mode;
&gt; &gt;  	int ret;
&gt; &gt;
&gt; &gt; -	if (strncmp(buf, "fast", strlen("fast")) == 0)
&gt; &gt; +	if (sysfs_streq(buf, "fast\n") == 0)
&gt; &gt;  		mode = REGULATOR_MODE_FAST;
&gt; &gt; -	else if (strncmp(buf, "normal", strlen("normal")) == 0)
&gt; &gt; +	else if (sysfs_streq(buf, "normal\n") == 0)
&gt; &gt;  		mode = REGULATOR_MODE_NORMAL;
&gt; &gt; -	else if (strncmp(buf, "idle", strlen("idle")) == 0)
&gt; &gt; +	else if (sysfs_streq(buf, "idle\n") == 0)
&gt; &gt;  		mode = REGULATOR_MODE_IDLE;
&gt; &gt; -	else if (strncmp(buf, "standby", strlen("standby")) == 0)
&gt; &gt; +	else if (sysfs_streq(buf, "standby\n") == 0)
&gt; &gt;  		mode = REGULATOR_MODE_STANDBY;
&gt;
&gt; we don't need the \n's, do we?

oh, it's for the string sharing.  Sneaky.

I wonder how many people will try to fix that up for us?

Acked-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;

Signed-off-by: Liam Girdwood &lt;lrg@slimlogic.co.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>regulator: minor cleanup of virtual consumer</title>
<updated>2009-03-31T08:56:19+00:00</updated>
<author>
<name>David Brownell</name>
<email>dbrownell@users.sourceforge.net</email>
</author>
<published>2009-01-14T21:16:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=93e14baa4494607efe81608725f591e3ba31e3c1'/>
<id>93e14baa4494607efe81608725f591e3ba31e3c1</id>
<content type='text'>
Minor cleanup to the regulator set_mode sysfs support:
switch to sysfs_streq() in set_mode(), which is also
a code shrink.  Use the same strings that get_mode()
uses, shrinking data too.

Signed-off-by: David Brownell &lt;dbrownell@users.sourceforge.net&gt;
Acked-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Liam Girdwood &lt;lrg@slimlogic.co.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Minor cleanup to the regulator set_mode sysfs support:
switch to sysfs_streq() in set_mode(), which is also
a code shrink.  Use the same strings that get_mode()
uses, shrinking data too.

Signed-off-by: David Brownell &lt;dbrownell@users.sourceforge.net&gt;
Acked-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Liam Girdwood &lt;lrg@slimlogic.co.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>regulator: regulator test harness</title>
<updated>2008-07-30T09:10:21+00:00</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2008-04-30T16:05:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=c080909eef2b3e7fba70f57cde3264fba95bdf09'/>
<id>c080909eef2b3e7fba70f57cde3264fba95bdf09</id>
<content type='text'>
This provides a virtual regulator test harness which exposes a sysfs
interface for setting power requirements, intended for test purposes only.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Philipp Zabel &lt;philipp.zabel@gmail.com&gt;
Signed-off-by: Liam Girdwood &lt;lg@opensource.wolfsonmicro.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This provides a virtual regulator test harness which exposes a sysfs
interface for setting power requirements, intended for test purposes only.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Philipp Zabel &lt;philipp.zabel@gmail.com&gt;
Signed-off-by: Liam Girdwood &lt;lg@opensource.wolfsonmicro.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
