Skip to contentSkip to conversation

Staging: tm6000: Checkpatch cleanups

PATCH In review Benjamin Adolphi 2 participants 2 messages Mar 8, 2010 – Apr 8, 2010 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: tm6000: Checkpatch cleanups

This fixes some checkpatch issues in the tm6000 driver.

---
 drivers/staging/tm6000/tm6000-alsa.c     |    5 ++-
 drivers/staging/tm6000/tm6000-i2c.c      |   41 +++++++++++++++--------------
 drivers/staging/tm6000/tm6000-regs.h     |    2 +-
 drivers/staging/tm6000/tm6000-stds.c     |    6 ++--
 drivers/staging/tm6000/tm6000-usb-isoc.h |    2 +-
 5 files changed, 29 insertions(+), 27 deletions(-)
drivers/staging/tm6000/tm6000-alsa.c +3 -2
index 7cc2ac7..6873a0f 100644
@@ -16,7 +16,7 @@
 #include <linux/interrupt.h>
 #include <linux/usb.h>
 
-#include <asm/delay.h>
+#include <linux/delay.h>
 #include <sound/core.h>
 #include <sound/pcm.h>
 #include <sound/pcm_params.h>
@@ -76,7 +76,8 @@ MODULE_PARM_DESC(index, "Index value for tm6000x capture interface(s).");
 				Module macros
  ****************************************************************************/
 
-MODULE_DESCRIPTION("ALSA driver module for tm5600/tm6000/tm6010 based TV cards");
+MODULE_DESCRIPTION("ALSA driver module for tm5600/tm6000/tm6010 "
+		   "based TV cards");
 MODULE_AUTHOR("Mauro Carvalho Chehab <[email protected]>");
 MODULE_LICENSE("GPL");
 MODULE_SUPPORTED_DEVICE("{{Trident,tm5600},"
drivers/staging/tm6000/tm6000-i2c.c +21 -20

99 lines not on this page · raw message

drivers/staging/tm6000/tm6000-regs.h +1 -1
index 6c93688..15c9057 100644
@@ -78,7 +78,7 @@
  */
 
 enum {
-	TM6000_URB_MSG_VIDEO=1,
+	TM6000_URB_MSG_VIDEO = 1,
 	TM6000_URB_MSG_AUDIO,
 	TM6000_URB_MSG_VBI,
 	TM6000_URB_MSG_PTS,
drivers/staging/tm6000/tm6000-stds.c +3 -3
index 1e142e5..421a6bc 100644
@@ -763,11 +763,11 @@ static struct tm6000_std_settings svideo_stds[] = {
 void tm6000_get_std_res(struct tm6000_core *dev)
 {
 	/* Currently, those are the only supported resoltions */
-	if (dev->norm & V4L2_STD_525_60) {
+	if (dev->norm & V4L2_STD_525_60)
 		dev->height = 480;
-	} else {
+	else
 		dev->height = 576;
-	}
+
 	dev->width = 720;
 }
 
drivers/staging/tm6000/tm6000-usb-isoc.h +1 -1
index 5a5049a..e6602bd 100644
@@ -46,7 +46,7 @@ struct usb_isoc_ctl {
 	int				tmp_buf_len;
 
 		/* Stores already requested buffers */
-	struct tm6000_buffer    	*buf;
+	struct tm6000_buffer		*buf;
 
 		/* Stores the number of received fields */
 	int				nfields;
Signature · 1 line
1.6.4.4
#1 lore raw
Quoted 1 line · Benjamin Adolphi

This fixes some checkpatch issues in the tm6000 driver.

This patch doesn't apply :(