<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/staging/dgap, branch v4.3</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.3</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v4.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2015-07-31T23:14:53Z</updated>
<entry>
<title>Staging:dgap :Compression of lines for immediate return</title>
<updated>2015-07-31T23:14:53Z</updated>
<author>
<name>Shraddha Barke</name>
<email>shraddha.6596@gmail.com</email>
</author>
<published>2015-07-27T18:00:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=6ba4df24bb87246472be90b11fcecb720c2a15ba'/>
<id>urn:sha1:6ba4df24bb87246472be90b11fcecb720c2a15ba</id>
<content type='text'>
This patch compresses two lines into a single line
if immediate return statement is found. Remove variable rc as
it is no longer needed.

It is done using script Coccinelle. And coccinelle uses the following
semantic patch for this compression function:

@@
type T;
identifier i,f;
constant C;
@@
- T i;
  ...when != i
     when strict
(
  return -C;
|
- i =
+ return
     f(...);
- return i;
)

Signed-off-by: Shraddha Barke &lt;shraddha.6596@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: dgap: remove duplicate code</title>
<updated>2015-07-16T17:19:55Z</updated>
<author>
<name>Sudip Mukherjee</name>
<email>sudipm.mukherjee@gmail.com</email>
</author>
<published>2015-07-16T12:58:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=b8d1f261fe7e4967593a5637d62991b6197a03f8'/>
<id>urn:sha1:b8d1f261fe7e4967593a5637d62991b6197a03f8</id>
<content type='text'>
Remove the duplicate code of dgap_remove_one() and dgap_stop().

Signed-off-by: Sudip Mukherjee &lt;sudip@vectorindia.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: dgap: new arguments to dgap_stop</title>
<updated>2015-07-16T17:19:55Z</updated>
<author>
<name>Sudip Mukherjee</name>
<email>sudipm.mukherjee@gmail.com</email>
</author>
<published>2015-07-16T12:58:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=174b83c0eb577d7db8f1867f1d76dc14f0b8eb40'/>
<id>urn:sha1:174b83c0eb577d7db8f1867f1d76dc14f0b8eb40</id>
<content type='text'>
In a later patch we will remove the duplicate codes. But the code also
needs to execute dgap_remove_driver_sysfiles() if it is being called
from dgap_remove_one() but if being called fron the error path of the
dgap_init_module() then the sysfiles should not be removed.

Signed-off-by: Sudip Mukherjee &lt;sudip@vectorindia.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: dgap: rearrange function</title>
<updated>2015-07-16T17:19:55Z</updated>
<author>
<name>Sudip Mukherjee</name>
<email>sudipm.mukherjee@gmail.com</email>
</author>
<published>2015-07-16T12:58:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=eda03951c3edc1f95e974096770ee3b02df2a8f5'/>
<id>urn:sha1:eda03951c3edc1f95e974096770ee3b02df2a8f5</id>
<content type='text'>
Relocate the function dgap_stop() so that in a later patch we can remove
the duplicate codes between dgap_stop() and dgap_remove_one().

Signed-off-by: Sudip Mukherjee &lt;sudip@vectorindia.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: dgap: fix error path</title>
<updated>2015-07-16T17:19:55Z</updated>
<author>
<name>Sudip Mukherjee</name>
<email>sudipm.mukherjee@gmail.com</email>
</author>
<published>2015-07-16T12:58:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=ac4e504a597903f65e6b365eee3e2675a7d8fe4e'/>
<id>urn:sha1:ac4e504a597903f65e6b365eee3e2675a7d8fe4e</id>
<content type='text'>
The code in dgap_stop() is almost a duplicate of the code that will be
executed on pci_unregister_driver(). So the error code was stopping and
unregistering everything twice.

Signed-off-by: Sudip Mukherjee &lt;sudip@vectorindia.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Staging: dgap: dgap: Fixed spelling errors</title>
<updated>2015-05-31T02:40:14Z</updated>
<author>
<name>Colin Cronin</name>
<email>colinpatrickcronin@gmail.com</email>
</author>
<published>2015-05-15T20:02:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=469caabe52aaa051f4a18a14055af459db2dcb01'/>
<id>urn:sha1:469caabe52aaa051f4a18a14055af459db2dcb01</id>
<content type='text'>
Fixed comment spelling errors

Signed-off-by: Colin Cronin &lt;colinpatrickcronin@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: dgap: remove unused code</title>
<updated>2015-05-10T13:17:50Z</updated>
<author>
<name>Sudip Mukherjee</name>
<email>sudipm.mukherjee@gmail.com</email>
</author>
<published>2015-05-09T12:29:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=56f40e521047ae8623ad5dcbb5a08ad91684cab6'/>
<id>urn:sha1:56f40e521047ae8623ad5dcbb5a08ad91684cab6</id>
<content type='text'>
dgap_sindex() is being only called from dgap_getword() which searches
for either ' ' or '\t' or '\n'. this part of the code with '^' at the
beginning is never used.

Signed-off-by: Sudip Mukherjee &lt;sudip@vectorindia.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: dgap: use remove function</title>
<updated>2015-05-10T13:12:09Z</updated>
<author>
<name>Sudip Mukherjee</name>
<email>sudipm.mukherjee@gmail.com</email>
</author>
<published>2015-05-07T11:12:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=1397e2fd065a87f623263e23028f3b252917121b'/>
<id>urn:sha1:1397e2fd065a87f623263e23028f3b252917121b</id>
<content type='text'>
the remove callback will be called in two cases, 1) if the driver is
removed and 2) if the pci device is removed. as of now all the board
cleanups were being done in the module unload section so if the module
is unloaded everything works. But if the pci device is removed then the
loaded driver will be left in an inconsistent state.
So moved the cleanups in the remove callback and since there was no
reference of dgap_driver in remove_one(), so had to define the
pci_driver in the function.

Signed-off-by: Sudip Mukherjee &lt;sudip@vectorindia.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: dgap: move function before remove</title>
<updated>2015-05-10T13:12:09Z</updated>
<author>
<name>Sudip Mukherjee</name>
<email>sudipm.mukherjee@gmail.com</email>
</author>
<published>2015-05-07T11:12:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=d1c9f3efc47f48bc93106b6bf3fd43f9915da46e'/>
<id>urn:sha1:d1c9f3efc47f48bc93106b6bf3fd43f9915da46e</id>
<content type='text'>
move the cleanup function before the remove call as the next patch of
the series is going to use that.

Signed-off-by: Sudip Mukherjee &lt;sudip@vectorindia.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Staging: dgap: Use setup_timer to combine initialization</title>
<updated>2015-03-16T15:17:31Z</updated>
<author>
<name>Somya Anand</name>
<email>somyaanand214@gmail.com</email>
</author>
<published>2015-03-11T11:32:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=2049f1ea88fa07e5912c67c4c623bb342b4b02af'/>
<id>urn:sha1:2049f1ea88fa07e5912c67c4c623bb342b4b02af</id>
<content type='text'>
The function setup_timer combines the initialization of a timer with the
initialization of the timer's function and data fields.

So, this patch combines the multiline code for timer initialization using the function
setup_timer. This issue is identified via coccinelle script.

@@
expression E1, E2, E3;
type T;
@@
- init_timer(&amp;E1);
...
(
- E1.function = E2;
...
- E1.data = (T)E3;
+ setup_timer(&amp;E1, E2, (T)E3);
|
- E1.data = (T)E3;
...
- E1.function = E2;
+ setup_timer(&amp;E1, E2, (T)E3);
|
- E1.function = E2;
+ setup_timer(&amp;E1, E2, 0);
)

Signed-off-by: Somya Anand &lt;somyaanand214@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
