Skip to contentSkip to conversation

Staging: tm6000: Fix coding style issues Fixed coding style issues founded by checkpatch.pl in files: tm6000-alsa.c, tm6000-cards, tm6000-core.c, tm6000-dvb.c, tm6000-i2c.c, tm6000-stds.c, tm6000-usb-isoc.h, tm6000.h Signed-off-by: Timofey Trofimov <[email protected]>

PATCH In review Timofey Trofimov 3 participants 5 messages May 29, 2010 – Jun 19, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 6/6 Staging: tm6000: Fix coding style issues Fixed coding style issues founded by checkpatch.pl in files: tm6000-alsa.c, tm6000-cards, tm6000-core.c, tm6000-dvb.c, tm6000-i2c.c, tm6000-stds.c, tm6000-usb-isoc.h, tm6000.h Signed-off-by: Timofey Trofimov <[email protected]>

---
 drivers/staging/tm6000/tm6000-alsa.c     |    2 +-
 drivers/staging/tm6000/tm6000-cards.c    |    2 +-
 drivers/staging/tm6000/tm6000-core.c     |  148 ++++++++++++++---------------
 drivers/staging/tm6000/tm6000-dvb.c      |   92 +++++++++----------
 drivers/staging/tm6000/tm6000-i2c.c      |   25 +++---
 drivers/staging/tm6000/tm6000-stds.c     |    6 +-
 drivers/staging/tm6000/tm6000-usb-isoc.h |    2 +-
 drivers/staging/tm6000/tm6000.h          |   50 +++++-----
 8 files changed, 156 insertions(+), 171 deletions(-)
drivers/staging/tm6000/tm6000-alsa.c +1 -1
index bc89f9d..b80c438 100644
@@ -63,7 +63,7 @@ struct snd_tm6000_card {
 
 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;	/* Index 0-MAX */
 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR;       /* ID for this card */
-static int enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 1};
+static int enable[SNDRV_CARDS] = {1,[1 ... (SNDRV_CARDS - 1)] = 1};
 
 module_param_array(enable, bool, NULL, 0444);
 MODULE_PARM_DESC(enable, "Enable tm6000x soundcard. default enabled.");
drivers/staging/tm6000/tm6000-cards.c +1 -1
index 6143e20..16984de 100644
@@ -732,7 +732,7 @@ static void get_max_endpoint(struct usb_device *udev,
 	unsigned int size = tmp & 0x7ff;
 
 	if (udev->speed == USB_SPEED_HIGH)
-		size = size * hb_mult (tmp);
+		size = size * hb_mult(tmp);
 
 	if (size > tm_ep->maxsize) {
 		tm_ep->endp = curr_e;
drivers/staging/tm6000/tm6000-core.c +71 -77

311 lines not on this page · raw message

drivers/staging/tm6000/tm6000-dvb.c +43 -49

244 lines not on this page · raw message

drivers/staging/tm6000/tm6000-i2c.c +12 -13
index 94ff489..79bc67f 100644
@@ -40,7 +40,7 @@ static unsigned int i2c_debug = 0;
 module_param(i2c_debug, int, 0644);
 MODULE_PARM_DESC(i2c_debug, "enable debug messages [i2c]");
 
-#define i2c_dprintk(lvl,fmt, args...) if (i2c_debug>=lvl) do{ \
+#define i2c_dprintk(lvl, fmt, args...) if (i2c_debug >= lvl) do { \
 			printk(KERN_DEBUG "%s at %s: " fmt, \
 			dev->name, __FUNCTION__ , ##args); } while (0)
 
@@ -171,7 +171,7 @@ static int tm6000_i2c_xfer(struct i2c_adapter *i2c_adap,
 		return 0;
 	for (i = 0; i < num; i++) {
 		addr = (msgs[i].addr << 1) & 0xff;
-		i2c_dprintk(2,"%s %s addr=0x%x len=%d:",
+		i2c_dprintk(2, "%s %s addr=0x%x len=%d:",
 			 (msgs[i].flags & I2C_M_RD) ? "read" : "write",
 			 i == num - 1 ? "stop" : "nonstop", addr, msgs[i].len);
 		if (msgs[i].flags & I2C_M_RD) {
@@ -235,7 +235,7 @@ static int tm6000_i2c_xfer(struct i2c_adapter *i2c_adap,
 
 	return num;
 err:
-	i2c_dprintk(2," ERROR: %i\n", rc);
+	i2c_dprintk(2, " ERROR: %i\n", rc);
 	return rc;
 }
 
@@ -266,11 +266,10 @@ static int tm6000_i2c_eeprom(struct tm6000_core *dev,
 		if (0 == (i % 16))
 			printk(KERN_INFO "%s: i2c eeprom %02x:", dev->name, i);
 		printk(" %02x", eedata[i]);
-		if ((eedata[i] >= ' ') && (eedata[i] <= 'z')) {
+		if ((eedata[i] >= ' ') && (eedata[i] <= 'z'))
 			bytes[i%16] = eedata[i];
-		} else {
-			bytes[i%16]='.';
-		}
+		else
+			bytes[i%16] = '.';
 
 		i++;
 
@@ -305,15 +304,15 @@ static u32 functionality(struct i2c_adapter *adap)
 }
 
 #define mass_write(addr, reg, data...)					\
-	{ const static u8 _val[] = data;				\
-	rc=tm6000_read_write_usb(dev,USB_DIR_OUT | USB_TYPE_VENDOR,	\
-	REQ_16_SET_GET_I2C_WR1_RDN,(reg<<8)+addr, 0x00, (u8 *) _val,	\
+	{ static const u8 _val[] = data;				\
+	rc = tm6000_read_write_usb(dev, USB_DIR_OUT | USB_TYPE_VENDOR,	\
+	REQ_16_SET_GET_I2C_WR1_RDN, (reg<<8)+addr, 0x00, (u8 *) _val,	\
 	ARRAY_SIZE(_val));						\
-	if (rc<0) {							\
-		printk(KERN_ERR "Error on line %d: %d\n",__LINE__,rc);	\
+	if (rc < 0) {							\
+		printk(KERN_ERR "Error on line %d: %d\n", __LINE__, rc);	\
 		return rc;						\
 	}								\
-	msleep (10);							\
+	msleep(10);							\
 	}
 
 static struct i2c_algorithm tm6000_algo = {
drivers/staging/tm6000/tm6000-stds.c +3 -3
index b3564f6..7a43782 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;
drivers/staging/tm6000/tm6000.h +24 -26

116 lines not on this page · raw message

Signature · 1 line
1.7.0.4
#1 lore raw

This patch does not apply properly. What tree did you make it against? Please redo it against the latest linux-next tree and resend it.

thanks,

greg k-h

#2 lore raw

Am 19.06.2010 01:46, schrieb Greg KH:

Quoted 7 lines

This patch does not apply properly. What tree did you make it against? Please redo it against the latest linux-next tree and resend it.

thanks,

greg k-h

please look in staging/tm6000 brunch.

Stefan Ringel

Signature · 1 line
Stefan Ringel <[email protected]>
#3 lore raw
Quoted 9 lines · Stefan Ringel

Am 19.06.2010 01:46, schrieb Greg KH:

Quoted 7 lines

This patch does not apply properly. What tree did you make it against? Please redo it against the latest linux-next tree and resend it.

thanks,

greg k-h

please look in staging/tm6000 brunch.

"brunch"?

I'm still confused.

greg k-h

#4 lore raw

----- Original Nachricht ----

Von:     Greg KH <[email protected]>
An:      Stefan Ringel <[email protected]>
Datum:   19.06.2010 19:25
Betreff: Re: [PATCH 6/6] Staging: tm6000: Fix coding style issues Fixed

coding style issues founded by checkpatch.pl in files: tm6000-alsa.c, tm6000-cards, tm6000-core.c, tm6000-dvb.c, tm6000-i2c.c, tm6000-stds.c, tm6000-usb-isoc.h, tm6000.h Signed-off-by: Timofey Trofimov <[email protected]>

Quoted 9 lines · Stefan Ringel
Quoted 8 lines

Am 19.06.2010 01:46, schrieb Greg KH:

Quoted 7 lines

This patch does not apply properly. What tree did you make it against? Please redo it against the latest linux-next tree and resend it.

thanks,

greg k-h

Quoted 7 lines
Quoted 1 line

please look in staging/tm6000 brunch.

"brunch"?

I'm still confused.

greg k-h

here http://git.linuxtv.org/v4l-dvb.git?a=shortlog;h=refs/heads/staging/tm6000

Quoted 1 line