Commit 2b637446 authored by Peng Li's avatar Peng Li Committed by David S. Miller

net: pci200syn: add some required spaces

Add spaces required after that close brace '}'.
Add spaces required before the open parenthesis '('.
Add spaces required after that ','.
Signed-off-by: default avatarPeng Li <lipeng321@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b9282333
...@@ -56,7 +56,7 @@ typedef struct { ...@@ -56,7 +56,7 @@ typedef struct {
u32 cs_base[4]; /* 3C-48h : Chip Select Base Addrs */ u32 cs_base[4]; /* 3C-48h : Chip Select Base Addrs */
u32 intr_ctrl_stat; /* 4Ch : Interrupt Control/Status */ u32 intr_ctrl_stat; /* 4Ch : Interrupt Control/Status */
u32 init_ctrl; /* 50h : EEPROM ctrl, Init Ctrl, etc */ u32 init_ctrl; /* 50h : EEPROM ctrl, Init Ctrl, etc */
}plx9052; } plx9052;
typedef struct port_s { typedef struct port_s {
struct napi_struct napi; struct napi_struct napi;
...@@ -72,7 +72,7 @@ typedef struct port_s { ...@@ -72,7 +72,7 @@ typedef struct port_s {
u16 txlast; u16 txlast;
u8 rxs, txs, tmc; /* SCA registers */ u8 rxs, txs, tmc; /* SCA registers */
u8 chan; /* physical port # - 0 or 1 */ u8 chan; /* physical port # - 0 or 1 */
}port_t; } port_t;
typedef struct card_s { typedef struct card_s {
u8 __iomem *rambase; /* buffer memory base (virtual) */ u8 __iomem *rambase; /* buffer memory base (virtual) */
...@@ -84,7 +84,7 @@ typedef struct card_s { ...@@ -84,7 +84,7 @@ typedef struct card_s {
u8 irq; /* interrupt request level */ u8 irq; /* interrupt request level */
port_t ports[2]; port_t ports[2];
}card_t; } card_t;
#define get_port(card, port) (&card->ports[port]) #define get_port(card, port) (&card->ports[port])
#define sca_flush(card) (sca_in(IER0, card)) #define sca_flush(card) (sca_in(IER0, card))
...@@ -117,7 +117,7 @@ static void pci200_set_iface(port_t *port) ...@@ -117,7 +117,7 @@ static void pci200_set_iface(port_t *port)
sca_out(EXS_TES1, (port->chan ? MSCI1_OFFSET : MSCI0_OFFSET) + EXS, sca_out(EXS_TES1, (port->chan ? MSCI1_OFFSET : MSCI0_OFFSET) + EXS,
port->card); port->card);
switch(port->settings.clock_type) { switch (port->settings.clock_type) {
case CLOCK_INT: case CLOCK_INT:
rxs |= CLK_BRG; /* BRG output */ rxs |= CLK_BRG; /* BRG output */
txs |= CLK_PIN_OUT | CLK_TX_RXCLK; /* RX clock */ txs |= CLK_PIN_OUT | CLK_TX_RXCLK; /* RX clock */
...@@ -184,7 +184,7 @@ static int pci200_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ...@@ -184,7 +184,7 @@ static int pci200_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
if (cmd != SIOCWANDEV) if (cmd != SIOCWANDEV)
return hdlc_ioctl(dev, ifr, cmd); return hdlc_ioctl(dev, ifr, cmd);
switch(ifr->ifr_settings.type) { switch (ifr->ifr_settings.type) {
case IF_GET_IFACE: case IF_GET_IFACE:
ifr->ifr_settings.type = IF_IFACE_V35; ifr->ifr_settings.type = IF_IFACE_V35;
if (ifr->ifr_settings.size < size) { if (ifr->ifr_settings.size < size) {
...@@ -301,13 +301,13 @@ static int pci200_pci_init_one(struct pci_dev *pdev, ...@@ -301,13 +301,13 @@ static int pci200_pci_init_one(struct pci_dev *pdev,
return -EFAULT; return -EFAULT;
} }
plxphys = pci_resource_start(pdev,0) & PCI_BASE_ADDRESS_MEM_MASK; plxphys = pci_resource_start(pdev, 0) & PCI_BASE_ADDRESS_MEM_MASK;
card->plxbase = ioremap(plxphys, PCI200SYN_PLX_SIZE); card->plxbase = ioremap(plxphys, PCI200SYN_PLX_SIZE);
scaphys = pci_resource_start(pdev,2) & PCI_BASE_ADDRESS_MEM_MASK; scaphys = pci_resource_start(pdev, 2) & PCI_BASE_ADDRESS_MEM_MASK;
card->scabase = ioremap(scaphys, PCI200SYN_SCA_SIZE); card->scabase = ioremap(scaphys, PCI200SYN_SCA_SIZE);
ramphys = pci_resource_start(pdev,3) & PCI_BASE_ADDRESS_MEM_MASK; ramphys = pci_resource_start(pdev, 3) & PCI_BASE_ADDRESS_MEM_MASK;
card->rambase = pci_ioremap_bar(pdev, 3); card->rambase = pci_ioremap_bar(pdev, 3);
if (!card->plxbase || !card->scabase || !card->rambase) { if (!card->plxbase || !card->scabase || !card->rambase) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment