airo_cs: checkpatch.pl cleanups
Hopefully nothing controversial here, since the driver hasn't been touched in a while! Before: 36 errors, 6 warnings, 482 lines checked After: 0 errors, 3 warnings, 485 lines checked This was nearly all trailing whitespace, * and parenthesis spacing, and code indent changes. md5sum of object file before and after are identical. Signed-off-by: John Daiker <daikerjohn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
be1b08af61
commit
05c9a4cfe4
@@ -38,7 +38,7 @@
|
|||||||
#include <pcmcia/cisreg.h>
|
#include <pcmcia/cisreg.h>
|
||||||
#include <pcmcia/ds.h>
|
#include <pcmcia/ds.h>
|
||||||
|
|
||||||
#include <asm/io.h>
|
#include <linux/io.h>
|
||||||
#include <asm/system.h>
|
#include <asm/system.h>
|
||||||
|
|
||||||
#include "airo.h"
|
#include "airo.h"
|
||||||
@@ -54,7 +54,7 @@
|
|||||||
static int pc_debug = PCMCIA_DEBUG;
|
static int pc_debug = PCMCIA_DEBUG;
|
||||||
module_param(pc_debug, int, 0);
|
module_param(pc_debug, int, 0);
|
||||||
static char *version = "$Revision: 1.2 $";
|
static char *version = "$Revision: 1.2 $";
|
||||||
#define DEBUG(n, args...) if (pc_debug>(n)) printk(KERN_DEBUG args);
|
#define DEBUG(n, args...) if (pc_debug > (n)) printk(KERN_DEBUG args);
|
||||||
#else
|
#else
|
||||||
#define DEBUG(n, args...)
|
#define DEBUG(n, args...)
|
||||||
#endif
|
#endif
|
||||||
@@ -62,9 +62,9 @@ static char *version = "$Revision: 1.2 $";
|
|||||||
/*====================================================================*/
|
/*====================================================================*/
|
||||||
|
|
||||||
MODULE_AUTHOR("Benjamin Reed");
|
MODULE_AUTHOR("Benjamin Reed");
|
||||||
MODULE_DESCRIPTION("Support for Cisco/Aironet 802.11 wireless ethernet \
|
MODULE_DESCRIPTION("Support for Cisco/Aironet 802.11 wireless ethernet "
|
||||||
cards. This is the module that links the PCMCIA card \
|
"cards. This is the module that links the PCMCIA card "
|
||||||
with the airo module.");
|
"with the airo module.");
|
||||||
MODULE_LICENSE("Dual BSD/GPL");
|
MODULE_LICENSE("Dual BSD/GPL");
|
||||||
MODULE_SUPPORTED_DEVICE("Aironet 4500, 4800 and Cisco 340 PCMCIA cards");
|
MODULE_SUPPORTED_DEVICE("Aironet 4500, 4800 and Cisco 340 PCMCIA cards");
|
||||||
|
|
||||||
@@ -103,8 +103,9 @@ static void airo_detach(struct pcmcia_device *p_dev);
|
|||||||
by one struct pcmcia_device structure (defined in ds.h).
|
by one struct pcmcia_device structure (defined in ds.h).
|
||||||
|
|
||||||
You may not want to use a linked list for this -- for example, the
|
You may not want to use a linked list for this -- for example, the
|
||||||
memory card driver uses an array of struct pcmcia_device pointers, where minor
|
memory card driver uses an array of struct pcmcia_device pointers,
|
||||||
device numbers are used to derive the corresponding array index.
|
where minor device numbers are used to derive the corresponding
|
||||||
|
array index.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -187,10 +188,10 @@ static void airo_detach(struct pcmcia_device *link)
|
|||||||
|
|
||||||
airo_release(link);
|
airo_release(link);
|
||||||
|
|
||||||
if ( ((local_info_t*)link->priv)->eth_dev ) {
|
if (((local_info_t *)link->priv)->eth_dev) {
|
||||||
stop_airo_card( ((local_info_t*)link->priv)->eth_dev, 0 );
|
stop_airo_card(((local_info_t *)link->priv)->eth_dev, 0);
|
||||||
}
|
}
|
||||||
((local_info_t*)link->priv)->eth_dev = NULL;
|
((local_info_t *)link->priv)->eth_dev = NULL;
|
||||||
|
|
||||||
kfree(link->priv);
|
kfree(link->priv);
|
||||||
} /* airo_detach */
|
} /* airo_detach */
|
||||||
@@ -331,17 +332,19 @@ static int airo_config(struct pcmcia_device *link)
|
|||||||
the I/O windows and the interrupt mapping, and putting the
|
the I/O windows and the interrupt mapping, and putting the
|
||||||
card and host interface into "Memory and IO" mode.
|
card and host interface into "Memory and IO" mode.
|
||||||
*/
|
*/
|
||||||
CS_CHECK(RequestConfiguration, pcmcia_request_configuration(link, &link->conf));
|
CS_CHECK(RequestConfiguration,
|
||||||
((local_info_t*)link->priv)->eth_dev =
|
pcmcia_request_configuration(link, &link->conf));
|
||||||
init_airo_card( link->irq.AssignedIRQ,
|
((local_info_t *)link->priv)->eth_dev =
|
||||||
link->io.BasePort1, 1, &handle_to_dev(link) );
|
init_airo_card(link->irq.AssignedIRQ,
|
||||||
if (!((local_info_t*)link->priv)->eth_dev) goto cs_failed;
|
link->io.BasePort1, 1, &handle_to_dev(link));
|
||||||
|
if (!((local_info_t *)link->priv)->eth_dev)
|
||||||
|
goto cs_failed;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
At this point, the dev_node_t structure(s) need to be
|
At this point, the dev_node_t structure(s) need to be
|
||||||
initialized and arranged in a linked list at link->dev_node.
|
initialized and arranged in a linked list at link->dev_node.
|
||||||
*/
|
*/
|
||||||
strcpy(dev->node.dev_name, ((local_info_t*)link->priv)->eth_dev->name );
|
strcpy(dev->node.dev_name, ((local_info_t *)link->priv)->eth_dev->name);
|
||||||
dev->node.major = dev->node.minor = 0;
|
dev->node.major = dev->node.minor = 0;
|
||||||
link->dev_node = &dev->node;
|
link->dev_node = &dev->node;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user