<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/drivers/staging/comedi/drivers.c, branch v2.6.34</title>
<subtitle>Linux kernel source tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/'/>
<entry>
<title>Staging: comedi: drivers.c: Checkpatch cleanup</title>
<updated>2010-03-04T00:43:07+00:00</updated>
<author>
<name>Andrea Gelmini</name>
<email>andrea.gelmini@gelma.net</email>
</author>
<published>2010-02-26T16:37:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=5617f9da4619ec975514e6b385a052e024215da3'/>
<id>5617f9da4619ec975514e6b385a052e024215da3</id>
<content type='text'>
WARNING: Use #include &lt;linux/io.h&gt; instead of &lt;asm/io.h&gt;
+#include &lt;asm/io.h&gt;

WARNING: braces {} are not necessary for any arm of this statement
+	if (dev-&gt;driver) {
[...]
+	} else {
[...]

WARNING: braces {} are not necessary for single statement blocks
+	if (insn-&gt;insn == INSN_READ) {
+		data[0] = (new_data[1] &gt;&gt; (chan - base_bitfield_channel)) &amp; 1;
+	}

WARNING: braces {} are not necessary for single statement blocks
+	if (async-&gt;prealloc_buf &amp;&amp; async-&gt;prealloc_bufsz == new_size) {
+		return 0;
+	}

WARNING: braces {} are not necessary for single statement blocks
+				if (async-&gt;buf_page_list[i].virt_addr == NULL) {
+					break;
+				}

WARNING: braces {} are not necessary for single statement blocks
+	if ((int)(async-&gt;buf_write_alloc_count + nbytes - free_end) &gt; 0) {
+		nbytes = free_end - async-&gt;buf_write_alloc_count;
+	}

WARNING: braces {} are not necessary for single statement blocks
+	if ((int)(async-&gt;buf_write_alloc_count + nbytes - free_end) &gt; 0) {
+		nbytes = 0;
+	}

WARNING: braces {} are not necessary for single statement blocks
+	if (async-&gt;buf_write_ptr &gt;= async-&gt;prealloc_bufsz) {
+		async-&gt;buf_write_ptr %= async-&gt;prealloc_bufsz;
+	}

Signed-off-by: Andrea Gelmini &lt;andrea.gelmini@gelma.net
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
WARNING: Use #include &lt;linux/io.h&gt; instead of &lt;asm/io.h&gt;
+#include &lt;asm/io.h&gt;

WARNING: braces {} are not necessary for any arm of this statement
+	if (dev-&gt;driver) {
[...]
+	} else {
[...]

WARNING: braces {} are not necessary for single statement blocks
+	if (insn-&gt;insn == INSN_READ) {
+		data[0] = (new_data[1] &gt;&gt; (chan - base_bitfield_channel)) &amp; 1;
+	}

WARNING: braces {} are not necessary for single statement blocks
+	if (async-&gt;prealloc_buf &amp;&amp; async-&gt;prealloc_bufsz == new_size) {
+		return 0;
+	}

WARNING: braces {} are not necessary for single statement blocks
+				if (async-&gt;buf_page_list[i].virt_addr == NULL) {
+					break;
+				}

WARNING: braces {} are not necessary for single statement blocks
+	if ((int)(async-&gt;buf_write_alloc_count + nbytes - free_end) &gt; 0) {
+		nbytes = free_end - async-&gt;buf_write_alloc_count;
+	}

WARNING: braces {} are not necessary for single statement blocks
+	if ((int)(async-&gt;buf_write_alloc_count + nbytes - free_end) &gt; 0) {
+		nbytes = 0;
+	}

WARNING: braces {} are not necessary for single statement blocks
+	if (async-&gt;buf_write_ptr &gt;= async-&gt;prealloc_bufsz) {
+		async-&gt;buf_write_ptr %= async-&gt;prealloc_bufsz;
+	}

Signed-off-by: Andrea Gelmini &lt;andrea.gelmini@gelma.net
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>Staging: comedi: drivers.c: checkpatch fix</title>
<updated>2009-12-11T20:21:48+00:00</updated>
<author>
<name>Mithlesh Thukral</name>
<email>mithlesh@linsyssoft.com</email>
</author>
<published>2009-09-21T18:53:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=d43d27abf7a2e8388bb0b1d9bf33bd427bc2137a'/>
<id>d43d27abf7a2e8388bb0b1d9bf33bd427bc2137a</id>
<content type='text'>
Fix a checkpatch.pl error. Fix struct * foo to struct *foo

Signed-off-by: Mithlesh Thukral &lt;mithlesh@linsyssoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix a checkpatch.pl error. Fix struct * foo to struct *foo

Signed-off-by: Mithlesh Thukral &lt;mithlesh@linsyssoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>Staging: comedi: no need for checking vfree call</title>
<updated>2009-09-15T19:01:33+00:00</updated>
<author>
<name>Figo.zhang</name>
<email>figo1802@gmail.com</email>
</author>
<published>2009-06-06T11:11:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=b455073c885cf78cfea1704ce9587806ec8e3c30'/>
<id>b455073c885cf78cfea1704ce9587806ec8e3c30</id>
<content type='text'>
vfree() does it's own NULL checking,so no need for check before
calling it.

'pages' is local variable argment,so in v2, it is no need assignment
 to NULL.

Signed-off-by: Figo.zhang &lt;figo1802@gmail.com&gt;
Acked-by: Pekka Enberg &lt;penberg@cs.helsinki.fi&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
vfree() does it's own NULL checking,so no need for check before
calling it.

'pages' is local variable argment,so in v2, it is no need assignment
 to NULL.

Signed-off-by: Figo.zhang &lt;figo1802@gmail.com&gt;
Acked-by: Pekka Enberg &lt;penberg@cs.helsinki.fi&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>Staging: Comedi: Lindent changes to comdi driver in staging tree</title>
<updated>2009-09-15T19:01:33+00:00</updated>
<author>
<name>Mithlesh Thukral</name>
<email>mithlesh@linsyssoft.com</email>
</author>
<published>2009-06-08T15:34:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=0a85b6f0ab0d2edb0d41b32697111ce0e4f43496'/>
<id>0a85b6f0ab0d2edb0d41b32697111ce0e4f43496</id>
<content type='text'>
Lindent changes to comdi driver in staging tree.
This patch is followed by the checkpatch.pl error fixes.
Did not make them part of this patch as the patch size is already huge.

Signed-off-by: Mithlesh Thukral &lt;mithlesh@linsyssoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Lindent changes to comdi driver in staging tree.
This patch is followed by the checkpatch.pl error fixes.
Did not make them part of this patch as the patch size is already huge.

Signed-off-by: Mithlesh Thukral &lt;mithlesh@linsyssoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>Staging: comedi: remove comedi-specific wrappers</title>
<updated>2009-06-19T18:00:33+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2009-04-27T21:44:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=5f74ea14c07fee91d3bdbaad88bff6264c6200e6'/>
<id>5f74ea14c07fee91d3bdbaad88bff6264c6200e6</id>
<content type='text'>
There are a number of comedi "wrappers" for some RT functions that are
about to go away.  This patch removes all of the wrapper calls within
the comedi drivers and core in order to prepare for removing the RT
comedi code.

Cc: Ian Abbott &lt;abbotti@mev.co.uk&gt;
Cc: Frank Mori Hess &lt;fmhess@users.sourceforge.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There are a number of comedi "wrappers" for some RT functions that are
about to go away.  This patch removes all of the wrapper calls within
the comedi drivers and core in order to prepare for removing the RT
comedi code.

Cc: Ian Abbott &lt;abbotti@mev.co.uk&gt;
Cc: Frank Mori Hess &lt;fmhess@users.sourceforge.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Staging: comedi: make use of ARRAY_SIZE macro</title>
<updated>2009-06-19T18:00:33+00:00</updated>
<author>
<name>Bill Pemberton</name>
<email>wfp5p@virginia.edu</email>
</author>
<published>2009-04-23T19:54:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=8629efa4cbf6f89a54a85af4b8bc31762af01800'/>
<id>8629efa4cbf6f89a54a85af4b8bc31762af01800</id>
<content type='text'>
Replace instances of computing number of elements in an array with
sizeof(foo)/sizeof(struct footype) with the ARRAY_SIZE macro.

Signed-off-by: Bill Pemberton &lt;wfp5p@virginia.edu&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replace instances of computing number of elements in an array with
sizeof(foo)/sizeof(struct footype) with the ARRAY_SIZE macro.

Signed-off-by: Bill Pemberton &lt;wfp5p@virginia.edu&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Staging Comedi: fix spacing around parens</title>
<updated>2009-06-19T18:00:31+00:00</updated>
<author>
<name>Bill Pemberton</name>
<email>wfp5p@virginia.edu</email>
</author>
<published>2009-04-09T20:07:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=53106ae68acf6eda9593150a25fc44e30fd5ff68'/>
<id>53106ae68acf6eda9593150a25fc44e30fd5ff68</id>
<content type='text'>
Signed-off-by: Bill Pemberton &lt;wfp5p@virginia.edu&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Bill Pemberton &lt;wfp5p@virginia.edu&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>Staging: BUG to BUG_ON changes</title>
<updated>2009-04-03T21:54:26+00:00</updated>
<author>
<name>Stoyan Gaydarov</name>
<email>stoyboyker@gmail.com</email>
</author>
<published>2009-03-10T05:10:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=2961f24f78f456a0a2d0dada56ee795232fe21b3'/>
<id>2961f24f78f456a0a2d0dada56ee795232fe21b3</id>
<content type='text'>
Signed-off-by: Stoyan Gaydarov &lt;stoyboyker@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Stoyan Gaydarov &lt;stoyboyker@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>Staging: comedi: Remove comedi_devconfig typedef</title>
<updated>2009-04-03T21:53:58+00:00</updated>
<author>
<name>Bill Pemberton</name>
<email>wfp5p@virginia.edu</email>
</author>
<published>2009-03-17T02:06:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=0707bb04be89b18ee83b5a997e36cc585f0b988d'/>
<id>0707bb04be89b18ee83b5a997e36cc585f0b988d</id>
<content type='text'>
Signed-off-by: Bill Pemberton &lt;wfp5p@virginia.edu&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Bill Pemberton &lt;wfp5p@virginia.edu&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Staging: comedi: Remove comedi_insn typedef</title>
<updated>2009-04-03T21:53:57+00:00</updated>
<author>
<name>Bill Pemberton</name>
<email>wfp5p@virginia.edu</email>
</author>
<published>2009-03-17T02:05:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=90035c0886b256d75bced13b3b3cea5234aff136'/>
<id>90035c0886b256d75bced13b3b3cea5234aff136</id>
<content type='text'>
Signed-off-by: Bill Pemberton &lt;wfp5p@virginia.edu&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Bill Pemberton &lt;wfp5p@virginia.edu&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</pre>
</div>
</content>
</entry>
</feed>
