<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/staging/nvec/nvec.c, branch v4.1</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v4.1</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v4.1'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2015-03-16T15:28:47Z</updated>
<entry>
<title>Staging: nvec: use !x instead of x == NULL</title>
<updated>2015-03-16T15:28:47Z</updated>
<author>
<name>Somya Anand</name>
<email>somyaanand214@gmail.com</email>
</author>
<published>2015-03-16T14:04:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=4c42d979816a0bc1d87aaabc4089d857942ddfe2'/>
<id>urn:sha1:4c42d979816a0bc1d87aaabc4089d857942ddfe2</id>
<content type='text'>
Functions like devm_kzalloc, kmalloc_array, devm_ioremap,
usb_alloc_urb, alloc_netdev return NULL as a return value on failure.
Generally, When NULL represents failure, !x is commonly used.

This patch cleans up the tests on the results of these functions, thereby
using !x instead of x == NULL or NULL == x. This is done via following
coccinelle script:
@prob_7@
identifier x;
statement S;
@@

(
 x = devm_kzalloc(...);
|
 x = usb_alloc_urb(...);
|
 x = kmalloc_array(...);
|
 x = devm_ioremap(...);
|
 x = alloc_netdev(...);
)
 ...
- if(NULL == x)
+ if(!x)
        S
Further we have used isomorphism characteristics of coccinelle to
indicate x == NULL and NULL == x are equivalent. This is done via
following iso script.

Expression
@ is_null @ expression X; @@
X == NULL &lt;=&gt; NULL == X

Signed-off-by: Somya Anand &lt;somyaanand214@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: nvec: specify a platform-device base id</title>
<updated>2015-01-21T02:31:09Z</updated>
<author>
<name>Marc Dietrich</name>
<email>marvin24@gmx.de</email>
</author>
<published>2015-01-20T22:01:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=3ec698816ab3a7aca39dd3389115840a48d5266d'/>
<id>urn:sha1:3ec698816ab3a7aca39dd3389115840a48d5266d</id>
<content type='text'>
commit 6e3f62f079 (mfd: core: Fix platform-device id generation) modified
the computation of the mfd cell id. Negative numbers forbit the specification
of cell ids as we do. Fix this for now by specifying a base of 0 instead. In
the long run, this may be changed to automatic cell ids (base -2).

Reported-by: Misha Komarovskiy &lt;zombah@gmail.com&gt;
Signed-off-by: Marc Dietrich &lt;marvin24@gmx.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;greg@kroah.com&gt;
</content>
</entry>
<entry>
<title>Staging: nvec: Fixed a typo</title>
<updated>2015-01-17T23:18:33Z</updated>
<author>
<name>Gustavo A. R. Silva</name>
<email>silvagustavosilva@gmail.com</email>
</author>
<published>2015-01-11T21:49:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=9b872a74b8d15d388065ac7919555a5e036046dc'/>
<id>urn:sha1:9b872a74b8d15d388065ac7919555a5e036046dc</id>
<content type='text'>
Fixed a typo in nvec.c file

Signed-off-by: Gustavo A. R. Silva &lt;garsilva@embeddedor.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: nvec: drop owner assignment from platform_drivers</title>
<updated>2014-10-20T14:21:41Z</updated>
<author>
<name>Wolfram Sang</name>
<email>wsa@the-dreams.de</email>
</author>
<published>2014-10-20T14:21:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=d5dbc0245a7da65b95fc14f99ccfc5f1fad078f0'/>
<id>urn:sha1:d5dbc0245a7da65b95fc14f99ccfc5f1fad078f0</id>
<content type='text'>
A platform_driver does not need to set an owner, it will be populated by the
driver core.

Signed-off-by: Wolfram Sang &lt;wsa@the-dreams.de&gt;
</content>
</entry>
<entry>
<title>staging/nvec: Use platform_get_irq()</title>
<updated>2014-07-31T00:18:47Z</updated>
<author>
<name>Thierry Reding</name>
<email>treding@nvidia.com</email>
</author>
<published>2014-07-29T11:16:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=b5b628ba4980762b290bb794d44dce629d0126f2'/>
<id>urn:sha1:b5b628ba4980762b290bb794d44dce629d0126f2</id>
<content type='text'>
As opposed to platform_get_resource(), the platform_get_irq() function
has special code to handle driver probe deferral when booting using DT
and where an interrupt provider hasn't been registered yet. While this
is unlikely to become an issue for nvec, platform_get_irq() is the
recommended way to get at interrupts.

Signed-off-by: Thierry Reding &lt;treding@nvidia.com&gt;
Acked-by: Marc Dietrich &lt;marvin24@gmx.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging/nvec: Do not pass resource to mfd_add_devices()</title>
<updated>2014-07-31T00:18:47Z</updated>
<author>
<name>Thierry Reding</name>
<email>treding@nvidia.com</email>
</author>
<published>2014-07-29T11:16:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=47e7b05001d8634704b1563ba93863194ac129f0'/>
<id>urn:sha1:47e7b05001d8634704b1563ba93863194ac129f0</id>
<content type='text'>
The mfd_add_devices() function takes a struct resource * as fifth
argument, but the nvec driver passes in a void __iomem *. The driver
gets away with it because none of the subdevices ever directly access
the registers.

Since subdevices never need to access the registers we can simply pass
NULL instead.

Signed-off-by: Thierry Reding &lt;treding@nvidia.com&gt;
Acked-by: Marc Dietrich &lt;marvin24@gmx.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging/nvec: Remove double const qualifier</title>
<updated>2014-07-21T21:20:50Z</updated>
<author>
<name>Thierry Reding</name>
<email>treding@nvidia.com</email>
</author>
<published>2014-07-21T11:54:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=5d30566f7383f7f33a1c8ece38f5306bcd12890e'/>
<id>urn:sha1:5d30566f7383f7f33a1c8ece38f5306bcd12890e</id>
<content type='text'>
The SIMPLE_DEV_PM_OPS macro already uses the const qualifier, so there's
no need to repeat it.

Signed-off-by: Thierry Reding &lt;treding@nvidia.com&gt;
Acked-by: Marc Dietrich &lt;marvin24@gmx.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: nvec: remove unneccessary 'out of memory' message</title>
<updated>2014-07-09T19:14:06Z</updated>
<author>
<name>Pawel Lebioda</name>
<email>pawel.lebioda89@gmail.com</email>
</author>
<published>2014-07-05T20:30:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=5a9077a83321abe390b2dffde0e3fe2be0f4e6bb'/>
<id>urn:sha1:5a9077a83321abe390b2dffde0e3fe2be0f4e6bb</id>
<content type='text'>
Fix the following warning reported by checkpatch.pl:

WARNING: Possible unnecessary 'out of memory' message
811: FILE: drivers/staging/nvec/nvec.c:811

Signed-off-by: Pawel Lebioda &lt;pawel.lebioda89@gmail.com&gt;
Acked-by: Marc Dietrich &lt;marvin24@gmx.de&gt;
Reviewed-by: Thierry Reding &lt;treding@nvidia.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: nvec: remove unnecessary 'else' after 'return' statement</title>
<updated>2014-07-09T19:14:06Z</updated>
<author>
<name>Pawel Lebioda</name>
<email>pawel.lebioda89@gmail.com</email>
</author>
<published>2014-07-05T20:30:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=aea2cda3d817a53ee13ffe0105644d1ac500cc5e'/>
<id>urn:sha1:aea2cda3d817a53ee13ffe0105644d1ac500cc5e</id>
<content type='text'>
Fix the following warning reported by checkpatch.pl:

WARNING: else is not generally useful after a break or return
235: FILE: drivers/staging/nvec/nvec.c:235

Signed-off-by: Pawel Lebioda &lt;pawel.lebioda89@gmail.com&gt;
Acked-by: Marc Dietrich &lt;marvin24@gmx.de&gt;
Reviewed-by: Thierry Reding &lt;treding@nvidia.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Staging:nvec: fix quoted string split across lines</title>
<updated>2014-03-07T23:19:36Z</updated>
<author>
<name>Ebru Akagunduz</name>
<email>ebru.akagunduz@gmail.com</email>
</author>
<published>2014-03-05T20:48:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=b77f2767a76eaf6a26eb3c2128877b362544b804'/>
<id>urn:sha1:b77f2767a76eaf6a26eb3c2128877b362544b804</id>
<content type='text'>
Fix checkpatch.pl issues with quoted string split
across lines in nvec.c

Signed-off-by: Ebru Akagunduz &lt;ebru.akagunduz@gmail.com&gt;
Acked-by: Paul E. McKenney &lt;paulmck@linux.vnet.ibm.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
