remove print.* from release tree stable-1.5
authorPatrick Bruenn <p.bruenn@beckhoff.com>
Thu, 05 Jun 2014 17:41:48 +0200
branchstable-1.5
changeset 2573 ad9a35065387
parent 2572 0bc1ec2711b1
child 2574 99ef4dcaba0f
remove print.* from release tree
run indent
devices/ccat/module.h
devices/ccat/netdev.c
devices/ccat/update.c
--- a/devices/ccat/module.h	Thu Jun 05 17:27:16 2014 +0200
+++ b/devices/ccat/module.h	Thu Jun 05 17:41:48 2014 +0200
@@ -156,8 +156,7 @@
 	struct ccat_bar bar[3];	//TODO optimize this
 };
 
-struct ccat_info_block
-{
+struct ccat_info_block {
 	u16 type;
 	u16 rev;
 	union {
@@ -217,16 +216,15 @@
  */
 struct ccat_mac_infoblock {
 	u32 reserved;
-	u32	mii;
-	u32	tx_fifo;
-	u32	mac;
-	u32	rx_mem;
-	u32	tx_mem;
-	u32	misc;
-};
-
-struct ccat_mac_register
-{
+	u32 mii;
+	u32 tx_fifo;
+	u32 mac;
+	u32 rx_mem;
+	u32 tx_mem;
+	u32 misc;
+};
+
+struct ccat_mac_register {
 	/** MAC error register     @+0x0 */
 	u8 frame_len_err;
 	u8 rx_err;
@@ -241,8 +239,8 @@
 	u32 rx_frames;
 	u64 reserved3;
 	/** MAC fifo level         @+0x20 */
-	u8 tx_fifo_level : 7;
-	u8 reserved4 : 1;
+	u8 tx_fifo_level:7;
+	u8 reserved4:1;
 	u8 reserved5[7];
 	/** TX memory full error   @+0x28 */
 	u8 tx_mem_full;
--- a/devices/ccat/netdev.c	Thu Jun 05 17:27:16 2014 +0200
+++ b/devices/ccat/netdev.c	Thu Jun 05 17:41:48 2014 +0200
@@ -432,7 +432,7 @@
 	storage->rx_bytes = atomic64_read(&priv->rx_bytes);	/* total bytes received         */
 	storage->tx_bytes = atomic64_read(&priv->tx_bytes);	/* total bytes transmitted      */
 	storage->rx_errors = mac.frame_len_err + mac.rx_mem_full + mac.crc_err + mac.rx_err;	/* bad packets received         */
-	storage->tx_errors = mac.tx_mem_full; /* packet transmit problems     */
+	storage->tx_errors = mac.tx_mem_full;	/* packet transmit problems     */
 	storage->rx_dropped = atomic64_read(&priv->rx_dropped);	/* no space in linux buffers    */
 	storage->tx_dropped = atomic64_read(&priv->tx_dropped);	/* no space available in linux  */
 	//TODO __u64    multicast;              /* multicast packets received   */
--- a/devices/ccat/update.c	Thu Jun 05 17:27:16 2014 +0200
+++ b/devices/ccat/update.c	Thu Jun 05 17:41:48 2014 +0200
@@ -413,7 +413,8 @@
 	memcpy_fromio(&update->info, addr, sizeof(update->info));
 
 	if (0x00 != update->info.rev) {
-		pr_warn("CCAT Update rev. %d not supported\n", update->info.rev);
+		pr_warn("CCAT Update rev. %d not supported\n",
+			update->info.rev);
 		goto cleanup;
 	}