Skip to content

Commit 9fea84f

Browse files
author
Dominik Brodowski
committed
pcmcia: CodingStyle fixes
Fix several CodingStyle issues in drivers/pcmcia/ . checkpatch.pl no longer reports errors in the PCMCIA core. The remaining warnings mostly relate to wrong indent -- PCMCIA historically used 4 spaces --, to lines over 80 characters and to hundreds of typedefs. The cleanup of those will follow in the future. Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
1 parent e15c1c1 commit 9fea84f

14 files changed

Lines changed: 485 additions & 387 deletions

File tree

‎drivers/pcmcia/Kconfig‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ config PCMCIA_IOCTL
6464
If unsure, say Y.
6565

6666
config CARDBUS
67-
bool "32-bit CardBus support"
67+
bool "32-bit CardBus support"
6868
depends on PCI
6969
default y
7070
---help---
@@ -87,8 +87,8 @@ config YENTA
8787
select PCCARD_NONSTATIC
8888
---help---
8989
This option enables support for CardBus host bridges. Virtually
90-
all modern PCMCIA bridges are CardBus compatible. A "bridge" is
91-
the hardware inside your computer that PCMCIA cards are plugged
90+
all modern PCMCIA bridges are CardBus compatible. A "bridge" is
91+
the hardware inside your computer that PCMCIA cards are plugged
9292
into.
9393

9494
To compile this driver as modules, choose M here: the

‎drivers/pcmcia/cardbus.c‎

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
#include <linux/mm.h>
2828
#include <linux/pci.h>
2929
#include <linux/ioport.h>
30+
#include <linux/io.h>
3031
#include <asm/irq.h>
31-
#include <asm/io.h>
3232

3333
#include <pcmcia/cs_types.h>
3434
#include <pcmcia/ss.h>
@@ -58,7 +58,7 @@
5858
image number and an offset within that image. xlate_rom_addr()
5959
converts an image/offset address to an absolute offset from the
6060
ROM's base address.
61-
61+
6262
=====================================================================*/
6363

6464
static u_int xlate_rom_addr(void __iomem *b, u_int addr)
@@ -85,10 +85,10 @@ static u_int xlate_rom_addr(void __iomem *b, u_int addr)
8585
These are similar to setup_cis_mem and release_cis_mem for 16-bit
8686
cards. The "result" that is used externally is the cb_cis_virt
8787
pointer in the struct pcmcia_socket structure.
88-
88+
8989
=====================================================================*/
9090

91-
static void cb_release_cis_mem(struct pcmcia_socket * s)
91+
static void cb_release_cis_mem(struct pcmcia_socket *s)
9292
{
9393
if (s->cb_cis_virt) {
9494
dev_dbg(&s->dev, "cb_release_cis_mem()\n");
@@ -98,7 +98,7 @@ static void cb_release_cis_mem(struct pcmcia_socket * s)
9898
}
9999
}
100100

101-
static int cb_setup_cis_mem(struct pcmcia_socket * s, struct resource *res)
101+
static int cb_setup_cis_mem(struct pcmcia_socket *s, struct resource *res)
102102
{
103103
unsigned int start, size;
104104

@@ -124,10 +124,11 @@ static int cb_setup_cis_mem(struct pcmcia_socket * s, struct resource *res)
124124
125125
This is used by the CIS processing code to read CIS information
126126
from a CardBus device.
127-
127+
128128
=====================================================================*/
129129

130-
int read_cb_mem(struct pcmcia_socket * s, int space, u_int addr, u_int len, void *ptr)
130+
int read_cb_mem(struct pcmcia_socket *s, int space, u_int addr, u_int len,
131+
void *ptr)
131132
{
132133
struct pci_dev *dev;
133134
struct resource *res;
@@ -181,7 +182,7 @@ int read_cb_mem(struct pcmcia_socket * s, int space, u_int addr, u_int len, void
181182
cb_alloc() and cb_free() allocate and free the kernel data
182183
structures for a Cardbus device, and handle the lowest level PCI
183184
device setup issues.
184-
185+
185186
=====================================================================*/
186187

187188
/*
@@ -207,14 +208,14 @@ static void cardbus_assign_irqs(struct pci_bus *bus, int irq)
207208
}
208209
}
209210

210-
int __ref cb_alloc(struct pcmcia_socket * s)
211+
int __ref cb_alloc(struct pcmcia_socket *s)
211212
{
212213
struct pci_bus *bus = s->cb_dev->subordinate;
213214
struct pci_dev *dev;
214215
unsigned int max, pass;
215216

216217
s->functions = pci_scan_slot(bus, PCI_DEVFN(0, 0));
217-
// pcibios_fixup_bus(bus);
218+
/* pcibios_fixup_bus(bus); */
218219

219220
max = bus->secondary;
220221
for (pass = 0; pass < 2; pass++)
@@ -241,7 +242,7 @@ int __ref cb_alloc(struct pcmcia_socket * s)
241242
return 0;
242243
}
243244

244-
void cb_free(struct pcmcia_socket * s)
245+
void cb_free(struct pcmcia_socket *s)
245246
{
246247
struct pci_dev *bridge = s->cb_dev;
247248

0 commit comments

Comments
 (0)