<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/net/rfkill/rfkill-gpio.c, branch v3.4-rc2</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/net/rfkill/rfkill-gpio.c?h=v3.4-rc2</id>
<link rel='self' href='https://git.amat.us/linux/atom/net/rfkill/rfkill-gpio.c?h=v3.4-rc2'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2012-01-04T19:30:46Z</updated>
<entry>
<title>net/rfkill/rfkill-gpio.c: introduce missing kfree</title>
<updated>2012-01-04T19:30:46Z</updated>
<author>
<name>Julia Lawall</name>
<email>julia@diku.dk</email>
</author>
<published>2011-12-23T17:39:27Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=841f1d92fb8ca6aa70b56003d1da8874c593e820'/>
<id>urn:sha1:841f1d92fb8ca6aa70b56003d1da8874c593e820</id>
<content type='text'>
Error handling code following a kmalloc should free the allocated data.
The label fail_alloc already does this for rfkill.

A simplified version of the semantic match that finds the problem is as
follows: (http://coccinelle.lip6.fr)

// &lt;smpl&gt;
@r exists@
local idexpression x;
statement S;
identifier f1;
position p1,p2;
expression *ptr != NULL;
@@

x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...);
...
if (x == NULL) S
&lt;... when != x
     when != if (...) { &lt;+...x...+&gt; }
x-&gt;f1
...&gt;
(
 return \(0\|&lt;+...x...+&gt;\|ptr\);
|
 return@p2 ...;
)

@script:python@
p1 &lt;&lt; r.p1;
p2 &lt;&lt; r.p2;
@@

print "* file: %s kmalloc %s return %s" % (p1[0].file,p1[0].line,p2[0].line)
// &lt;/smpl&gt;

Signed-off-by: Julia Lawall &lt;julia@diku.dk&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
<entry>
<title>net: rfkill: convert net/rfkill/* to use module_platform_driver()</title>
<updated>2011-11-30T20:08:27Z</updated>
<author>
<name>Axel Lin</name>
<email>axel.lin@gmail.com</email>
</author>
<published>2011-11-28T09:15:04Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=98ef55f66f791a04877c9e0a272a8c50cceaf9a5'/>
<id>urn:sha1:98ef55f66f791a04877c9e0a272a8c50cceaf9a5</id>
<content type='text'>
This patch converts the drivers in net/rfkill/* to use the
module_platform_driver() macro which makes the code smaller and a bit
simpler.

Cc: "David S. Miller" &lt;davem@davemloft.net&gt;
Cc: "John W. Linville" &lt;linville@tuxdriver.com&gt;
Cc: Johannes Berg &lt;johannes@sipsolutions.net&gt;
Cc: Antonio Ospite &lt;ospite@studenti.unina.it&gt;
Cc: Rhyland Klein &lt;rklein@nvidia.com&gt;
Signed-off-by: Axel Lin &lt;axel.lin@gmail.com&gt;
Acked-by: Rhyland Klein &lt;rklein@nvidia.com&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
<entry>
<title>net:rfkill: add a gpio setup function into GPIO rfkill</title>
<updated>2011-10-03T19:19:19Z</updated>
<author>
<name>Sangwook Lee</name>
<email>sangwook.lee@linaro.org</email>
</author>
<published>2011-09-29T11:57:17Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=e209c5a7ed1870ab7f112ad47083b5d616e8b6a4'/>
<id>urn:sha1:e209c5a7ed1870ab7f112ad47083b5d616e8b6a4</id>
<content type='text'>
Add a gpio setup function which gives a chance to set up
platform specific configuration such as pin multiplexing,
input/output direction at the runtime or booting time.

Signed-off-by: Sangwook Lee &lt;sangwook.lee@linaro.org&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
<entry>
<title>net: rfkill: add generic gpio rfkill driver</title>
<updated>2011-05-19T17:53:54Z</updated>
<author>
<name>Rhyland Klein</name>
<email>rklein@nvidia.com</email>
</author>
<published>2011-05-16T21:41:48Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=7176ba23f8b589b1df3229574ff46fb904ce9ec5'/>
<id>urn:sha1:7176ba23f8b589b1df3229574ff46fb904ce9ec5</id>
<content type='text'>
This adds a new generic gpio rfkill driver to support rfkill switches
which are controlled by gpios. The driver also supports passing in
data about the clock for the radio, so that when rfkill is blocking,
it can disable the clock.

This driver assumes platform data is passed from the board files to
configure it for specific devices.

Original-patch-by: Anantha Idapalapati &lt;aidapalapati@nvidia.com&gt;
Signed-off-by: Rhyland Klein &lt;rklein@nvidia.com&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
</feed>
