<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/staging/dgap, branch v3.19</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=v3.19</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v3.19'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2014-11-26T22:00:22Z</updated>
<entry>
<title>Drivers:staging:dgap: Added a blank line after declaration</title>
<updated>2014-11-26T22:00:22Z</updated>
<author>
<name>Anjana Sasindran</name>
<email>anjanasasindran123@gmail.com</email>
</author>
<published>2014-11-20T18:57:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=d268b50eb21d06cffe949ed3c1c05f1bf9939916'/>
<id>urn:sha1:d268b50eb21d06cffe949ed3c1c05f1bf9939916</id>
<content type='text'>
This patch fixes the checkpatch.pl warning:

WARNING:Missing a blank line after declaration

Signed-off-by: Anjana Sasindran &lt;anjanasasindran123@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: dgap: introducing find_board_by_major()</title>
<updated>2014-11-07T17:30:22Z</updated>
<author>
<name>Daeseok Youn</name>
<email>daeseok.youn@gmail.com</email>
</author>
<published>2014-11-06T10:27:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=48d43be475e48f5673b89c1faa6f7855d25f9a85'/>
<id>urn:sha1:48d43be475e48f5673b89c1faa6f7855d25f9a85</id>
<content type='text'>
use find_board_by_major function instead of getting a brd from static
arrary. Becasue tty's major number doesn't start zero and we can
find a brd from dgap_board[].

Signed-off-by: Daeseok Youn &lt;daeseok.youn@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: dgap: remove useless variables for saving tty's major</title>
<updated>2014-11-07T17:30:22Z</updated>
<author>
<name>Daeseok Youn</name>
<email>daeseok.youn@gmail.com</email>
</author>
<published>2014-11-06T10:27:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=4c5dbca65bb0d2f5e940ca64d0876581f411d1a6'/>
<id>urn:sha1:4c5dbca65bb0d2f5e940ca64d0876581f411d1a6</id>
<content type='text'>
The board_t has a tty_struct(serial_driver and print_driver)
that has a major number. When major number is compared in
dgap_tty_open(), just use brd-&gt;serial_driver{print_driver}-&gt;major.

Signed-off-by: Daeseok Youn &lt;daeseok.youn@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: dgap: fix memory leak caused by double allocation of tty_structs</title>
<updated>2014-11-07T17:30:22Z</updated>
<author>
<name>Daeseok Youn</name>
<email>daeseok.youn@gmail.com</email>
</author>
<published>2014-11-06T10:27:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=429161d164491f430ddbc591f45dc2cd39e0e8a1'/>
<id>urn:sha1:429161d164491f430ddbc591f45dc2cd39e0e8a1</id>
<content type='text'>
The tty_struct of serial_driver and print_driver were getting
allocated twice. One is allocated in tty_alloc_driver(), the other
is in dgap_tty_register(). So remove these in dgap_tty_register().

Signed-off-by: Daeseok Youn &lt;daeseok.youn@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: dgap: set tty's flags by tty_alloc_driver()</title>
<updated>2014-11-07T17:30:21Z</updated>
<author>
<name>Daeseok Youn</name>
<email>daeseok.youn@gmail.com</email>
</author>
<published>2014-11-06T10:26:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=dc3cfcd3f4804c9bf71e3b6152df6eb957856735'/>
<id>urn:sha1:dc3cfcd3f4804c9bf71e3b6152df6eb957856735</id>
<content type='text'>
tty's flags can be set by calling tty_alloc_driver().

Signed-off-by: Daeseok Youn &lt;daeseok.youn@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: dgap: remove unnecessary function</title>
<updated>2014-11-05T22:49:14Z</updated>
<author>
<name>Daeseok Youn</name>
<email>daeseok.youn@gmail.com</email>
</author>
<published>2014-11-05T08:58:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=deaa2c2021c2c00401933f84023bfc4c0a60e281'/>
<id>urn:sha1:deaa2c2021c2c00401933f84023bfc4c0a60e281</id>
<content type='text'>
The dgap_init_global() initialize the dgap_board
that is a global variable as static and dgap_poll_timer.
But init_timer() is called twice in dgap_start() and dgap_board
doesn't need to be initialized to NULL.

Signed-off-by: Daeseok Youn &lt;daeseok.youn@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: dgap: re-arrange functions for removing forward declarations</title>
<updated>2014-11-04T00:24:56Z</updated>
<author>
<name>Daeseok Youn</name>
<email>daeseok.youn@gmail.com</email>
</author>
<published>2014-10-31T01:20:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=0b2cf5c8402bb313c0054b2cd7df5ca50f250a1d'/>
<id>urn:sha1:0b2cf5c8402bb313c0054b2cd7df5ca50f250a1d</id>
<content type='text'>
Re-arrange the functions for removing forward declarations.

Signed-off-by: Daeseok Youn &lt;daeseok.youn@gmail.com&gt;
Tested-by: Mark Hounschell &lt;markh@compro.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: dgap: Remove useless cast on NULL</title>
<updated>2014-10-30T20:09:15Z</updated>
<author>
<name>Tapasweni Pathak</name>
<email>tapaswenipathak@gmail.com</email>
</author>
<published>2014-10-30T12:53:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=d8d34a817bc0041ba2f0ee09e40c18c7161e2c2d'/>
<id>urn:sha1:d8d34a817bc0041ba2f0ee09e40c18c7161e2c2d</id>
<content type='text'>
Cast on NULL to a pointer type is not required. This
patch removes NULL casted to some pointer type.

The sematic patch used is:
@r@
type T;
@@
- (T *)NULL
+ NULL

Build tested it.

Signed-off-by: Tapasweni Pathak &lt;tapaswenipathak@gmail.com&gt;
Reviewed-by: Josh Triplett &lt;josh@joshtriplett.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: dgap: Remove useless cast on void pointer</title>
<updated>2014-10-30T20:05:46Z</updated>
<author>
<name>Tapasweni Pathak</name>
<email>tapaswenipathak@gmail.com</email>
</author>
<published>2014-10-30T11:31:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=d591f5d0e548cb79a942be5fd86fbc714b530a39'/>
<id>urn:sha1:d591f5d0e548cb79a942be5fd86fbc714b530a39</id>
<content type='text'>
void pointers do not need to be cast to other pointer types.

The semantic patch used to find this:

@r@
expression x;
void* e;
type T;
identifier f;
@@

(
  *((T *)e)
|
  ((T *)x)[...]
|
  ((T *)x)-&gt;f
|
- (T *)
  e
)

Build tested it.

Signed-off-by: Tapasweni Pathak &lt;tapaswenipathak@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: dgap: Use unsigned for loop index</title>
<updated>2014-10-28T08:19:02Z</updated>
<author>
<name>Tapasweni Pathak</name>
<email>tapaswenipathak@gmail.com</email>
</author>
<published>2014-10-26T15:08:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=ac2f46c365e655dd2c366f69c609febc4ac310fd'/>
<id>urn:sha1:ac2f46c365e655dd2c366f69c609febc4ac310fd</id>
<content type='text'>
The following semantic patch is used to do this

@r exists@ // find anything that might decrement the variable
identifier i;
expression E;
position p;
@@

  int i@p;
  ...
(
  &amp;i
|
  i--
|
  --i
|
  i-=E
|
  i+=E
)

@x disable decl_init@
identifier r.i;
expression E;
position p1 != r.p;
@@

(
  volatile int i = 0;
|
  volatile int i;
|
+ unsigned
  int i@p1 = 0;
|
+ unsigned
  int i@p1;
)
  &lt;... when != i = E
(
  i = 0
|
  i = 1
)
  ...&gt;

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