diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2009-12-07 16:11:45 -0500 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2009-12-07 16:23:40 -0500 |
commit | 9fea84f46a821aa1ff2d034ffda8ad33bff48015 (patch) | |
tree | fba7293e771309970d3f20fc9d3ce73f49f90a33 /include/pcmcia | |
parent | e15c1c1f3f903f679c9782b540f9d52c80c99610 (diff) |
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>
Diffstat (limited to 'include/pcmcia')
-rw-r--r-- | include/pcmcia/ds.h | 6 | ||||
-rw-r--r-- | include/pcmcia/mem_op.h | 2 | ||||
-rw-r--r-- | include/pcmcia/ss.h | 12 |
3 files changed, 10 insertions, 10 deletions
diff --git a/include/pcmcia/ds.h b/include/pcmcia/ds.h index d403c12f7978..ee148573c114 100644 --- a/include/pcmcia/ds.h +++ b/include/pcmcia/ds.h | |||
@@ -82,7 +82,7 @@ struct pcmcia_device { | |||
82 | /* the hardware "function" device; certain subdevices can | 82 | /* the hardware "function" device; certain subdevices can |
83 | * share one hardware "function" device. */ | 83 | * share one hardware "function" device. */ |
84 | u8 func; | 84 | u8 func; |
85 | struct config_t* function_config; | 85 | struct config_t *function_config; |
86 | 86 | ||
87 | struct list_head socket_device_list; | 87 | struct list_head socket_device_list; |
88 | 88 | ||
@@ -121,14 +121,14 @@ struct pcmcia_device { | |||
121 | u16 manf_id; | 121 | u16 manf_id; |
122 | u16 card_id; | 122 | u16 card_id; |
123 | 123 | ||
124 | char * prod_id[4]; | 124 | char *prod_id[4]; |
125 | 125 | ||
126 | u64 dma_mask; | 126 | u64 dma_mask; |
127 | struct device dev; | 127 | struct device dev; |
128 | 128 | ||
129 | #ifdef CONFIG_PCMCIA_IOCTL | 129 | #ifdef CONFIG_PCMCIA_IOCTL |
130 | /* device driver wanted by cardmgr */ | 130 | /* device driver wanted by cardmgr */ |
131 | struct pcmcia_driver * cardmgr; | 131 | struct pcmcia_driver *cardmgr; |
132 | #endif | 132 | #endif |
133 | 133 | ||
134 | /* data private to drivers */ | 134 | /* data private to drivers */ |
diff --git a/include/pcmcia/mem_op.h b/include/pcmcia/mem_op.h index 8d19b9401a5b..0fa06e5d5376 100644 --- a/include/pcmcia/mem_op.h +++ b/include/pcmcia/mem_op.h | |||
@@ -15,8 +15,8 @@ | |||
15 | #ifndef _LINUX_MEM_OP_H | 15 | #ifndef _LINUX_MEM_OP_H |
16 | #define _LINUX_MEM_OP_H | 16 | #define _LINUX_MEM_OP_H |
17 | 17 | ||
18 | #include <linux/io.h> | ||
18 | #include <asm/uaccess.h> | 19 | #include <asm/uaccess.h> |
19 | #include <asm/io.h> | ||
20 | 20 | ||
21 | /* | 21 | /* |
22 | If UNSAFE_MEMCPY is defined, we use the (optimized) system routines | 22 | If UNSAFE_MEMCPY is defined, we use the (optimized) system routines |
diff --git a/include/pcmcia/ss.h b/include/pcmcia/ss.h index 7c23be706f12..cbfba885eb85 100644 --- a/include/pcmcia/ss.h +++ b/include/pcmcia/ss.h | |||
@@ -154,7 +154,7 @@ struct pcmcia_socket { | |||
154 | struct list_head socket_list; | 154 | struct list_head socket_list; |
155 | struct completion socket_released; | 155 | struct completion socket_released; |
156 | 156 | ||
157 | /* deprecated */ | 157 | /* deprecated */ |
158 | unsigned int sock; /* socket number */ | 158 | unsigned int sock; /* socket number */ |
159 | 159 | ||
160 | 160 | ||
@@ -164,7 +164,7 @@ struct pcmcia_socket { | |||
164 | u_int map_size; | 164 | u_int map_size; |
165 | u_int io_offset; | 165 | u_int io_offset; |
166 | u_int pci_irq; | 166 | u_int pci_irq; |
167 | struct pci_dev * cb_dev; | 167 | struct pci_dev *cb_dev; |
168 | 168 | ||
169 | 169 | ||
170 | /* socket setup is done so resources should be able to be allocated. | 170 | /* socket setup is done so resources should be able to be allocated. |
@@ -179,9 +179,9 @@ struct pcmcia_socket { | |||
179 | u8 reserved:5; | 179 | u8 reserved:5; |
180 | 180 | ||
181 | /* socket operations */ | 181 | /* socket operations */ |
182 | struct pccard_operations * ops; | 182 | struct pccard_operations *ops; |
183 | struct pccard_resource_ops * resource_ops; | 183 | struct pccard_resource_ops *resource_ops; |
184 | void * resource_data; | 184 | void *resource_data; |
185 | 185 | ||
186 | /* Zoom video behaviour is so chip specific its not worth adding | 186 | /* Zoom video behaviour is so chip specific its not worth adding |
187 | this to _ops */ | 187 | this to _ops */ |
@@ -245,7 +245,7 @@ struct pcmcia_socket { | |||
245 | 245 | ||
246 | /* cardbus (32-bit) */ | 246 | /* cardbus (32-bit) */ |
247 | #ifdef CONFIG_CARDBUS | 247 | #ifdef CONFIG_CARDBUS |
248 | struct resource * cb_cis_res; | 248 | struct resource *cb_cis_res; |
249 | void __iomem *cb_cis_virt; | 249 | void __iomem *cb_cis_virt; |
250 | #endif /* CONFIG_CARDBUS */ | 250 | #endif /* CONFIG_CARDBUS */ |
251 | 251 | ||