<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/drivers/regulator/virtual.c, branch v2.6.31</title>
<subtitle>Linux kernel source tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/'/>
<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>
