Skip to content

Commit 2b63744

Browse files
321lipengdavem330
authored andcommitted
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: Peng Li <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b928233 commit 2b63744

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

drivers/net/wan/pci200syn.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ typedef struct {
5656
u32 cs_base[4]; /* 3C-48h : Chip Select Base Addrs */
5757
u32 intr_ctrl_stat; /* 4Ch : Interrupt Control/Status */
5858
u32 init_ctrl; /* 50h : EEPROM ctrl, Init Ctrl, etc */
59-
}plx9052;
59+
} plx9052;
6060

6161
typedef struct port_s {
6262
struct napi_struct napi;
@@ -72,7 +72,7 @@ typedef struct port_s {
7272
u16 txlast;
7373
u8 rxs, txs, tmc; /* SCA registers */
7474
u8 chan; /* physical port # - 0 or 1 */
75-
}port_t;
75+
} port_t;
7676

7777
typedef struct card_s {
7878
u8 __iomem *rambase; /* buffer memory base (virtual) */
@@ -84,7 +84,7 @@ typedef struct card_s {
8484
u8 irq; /* interrupt request level */
8585

8686
port_t ports[2];
87-
}card_t;
87+
} card_t;
8888

8989
#define get_port(card, port) (&card->ports[port])
9090
#define sca_flush(card) (sca_in(IER0, card))
@@ -117,7 +117,7 @@ static void pci200_set_iface(port_t *port)
117117

118118
sca_out(EXS_TES1, (port->chan ? MSCI1_OFFSET : MSCI0_OFFSET) + EXS,
119119
port->card);
120-
switch(port->settings.clock_type) {
120+
switch (port->settings.clock_type) {
121121
case CLOCK_INT:
122122
rxs |= CLK_BRG; /* BRG output */
123123
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)
184184
if (cmd != SIOCWANDEV)
185185
return hdlc_ioctl(dev, ifr, cmd);
186186

187-
switch(ifr->ifr_settings.type) {
187+
switch (ifr->ifr_settings.type) {
188188
case IF_GET_IFACE:
189189
ifr->ifr_settings.type = IF_IFACE_V35;
190190
if (ifr->ifr_settings.size < size) {
@@ -301,13 +301,13 @@ static int pci200_pci_init_one(struct pci_dev *pdev,
301301
return -EFAULT;
302302
}
303303

304-
plxphys = pci_resource_start(pdev,0) & PCI_BASE_ADDRESS_MEM_MASK;
304+
plxphys = pci_resource_start(pdev, 0) & PCI_BASE_ADDRESS_MEM_MASK;
305305
card->plxbase = ioremap(plxphys, PCI200SYN_PLX_SIZE);
306306

307-
scaphys = pci_resource_start(pdev,2) & PCI_BASE_ADDRESS_MEM_MASK;
307+
scaphys = pci_resource_start(pdev, 2) & PCI_BASE_ADDRESS_MEM_MASK;
308308
card->scabase = ioremap(scaphys, PCI200SYN_SCA_SIZE);
309309

310-
ramphys = pci_resource_start(pdev,3) & PCI_BASE_ADDRESS_MEM_MASK;
310+
ramphys = pci_resource_start(pdev, 3) & PCI_BASE_ADDRESS_MEM_MASK;
311311
card->rambase = pci_ioremap_bar(pdev, 3);
312312

313313
if (!card->plxbase || !card->scabase || !card->rambase) {

0 commit comments

Comments
 (0)