<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/regulator/virtual.c, branch linux-2.6.30.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.30.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.30.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2009-04-28T17:58:07Z</updated>
<entry>
<title>regulator/virtual: fix strings compare predicates</title>
<updated>2009-04-28T17:58:07Z</updated>
<author>
<name>Mike Rapoport</name>
</author>
<published>2009-04-26T08:49:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aa61d558f0f9f8b303b9cab1e51e9886896ba1a3'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>regulator: Mark attributes table for virtual regulator static</title>
<updated>2009-03-31T08:56:22Z</updated>
<author>
<name>Mark Brown</name>
</author>
<published>2009-01-19T13:37:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fefdae42465facfa26d41a7f0010f1ade32c3386'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>regulator: minor cleanup of virtual consumer</title>
<updated>2009-03-31T08:56:20Z</updated>
<author>
<name>Andrew Morton</name>
</author>
<published>2009-01-16T00:13:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9485397aa2195e82da6373586a66689526675ad4'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>regulator: minor cleanup of virtual consumer</title>
<updated>2009-03-31T08:56:19Z</updated>
<author>
<name>David Brownell</name>
</author>
<published>2009-01-14T21:16:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=93e14baa4494607efe81608725f591e3ba31e3c1'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>regulator: regulator test harness</title>
<updated>2008-07-30T09:10:21Z</updated>
<author>
<name>Mark Brown</name>
</author>
<published>2008-04-30T16:05:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c080909eef2b3e7fba70f57cde3264fba95bdf09'/>
<id>urn:sha1: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>
</entry>
</feed>
