From 4e384108949d4d143109db450efd1ac6a08040e0 Mon Sep 17 00:00:00 2001
From: Patrick Bruenn
Date: Thu, 5 Jun 2014 17:41:48 +0200
Subject: [PATCH] remove print.* from release tree run indent
---
devices/ccat/module.h | 22 ++++++++++------------
devices/ccat/netdev.c | 2 +-
devices/ccat/update.c | 3 ++-
3 files changed, 13 insertions(+), 14 deletions(-)
diff --git a/devices/ccat/module.h b/devices/ccat/module.h
index f0e4b4d3..90cad201 100644
--- a/devices/ccat/module.h
+++ b/devices/ccat/module.h
@@ -156,8 +156,7 @@ struct ccat_device {
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_eth_priv {
*/
struct ccat_mac_infoblock {
u32 reserved;
- u32 mii;
- u32 tx_fifo;
- u32 mac;
- u32 rx_mem;
- u32 tx_mem;
- u32 misc;
+ u32 mii;
+ u32 tx_fifo;
+ u32 mac;
+ u32 rx_mem;
+ u32 tx_mem;
+ u32 misc;
};
-struct ccat_mac_register
-{
+struct ccat_mac_register {
/** MAC error register @+0x0 */
u8 frame_len_err;
u8 rx_err;
@@ -241,8 +239,8 @@ struct ccat_mac_register
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;
diff --git a/devices/ccat/netdev.c b/devices/ccat/netdev.c
index fd93de3b..47eddb8d 100644
--- a/devices/ccat/netdev.c
+++ b/devices/ccat/netdev.c
@@ -432,7 +432,7 @@ static struct rtnl_link_stats64 *ccat_eth_get_stats64(struct net_device *dev, st
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 */
diff --git a/devices/ccat/update.c b/devices/ccat/update.c
index 7703eca9..97455169 100644
--- a/devices/ccat/update.c
+++ b/devices/ccat/update.c
@@ -413,7 +413,8 @@ struct ccat_update *ccat_update_init(const struct ccat_device *const ccatdev,
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;
}