Skip to content

Commit

Permalink
Staging: wlags49_h2: use common PCI_VENDOR/DEVICE_ID name format
Browse files Browse the repository at this point in the history
There is a common name format for PCI_VENDOR/DEVICE_ID constants.
wlags49_h2 names doesn't fit in the standard.
This patch change the names and also fix some style issues.

Thanks a lot,

Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Javier Martinez Canillas authored and Greg Kroah-Hartman committed Aug 3, 2010
1 parent d9811b7 commit 100ca12
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
10 changes: 7 additions & 3 deletions drivers/staging/wlags49_h2/wl_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,13 @@ enum hermes_pci_versions {
};

static struct pci_device_id wl_pci_tbl[] __devinitdata = {
{ WL_LKM_PCI_VENDOR_ID, WL_LKM_PCI_DEVICE_ID_0, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_Agere_Systems_Mini_PCI_V1 },
{ WL_LKM_PCI_VENDOR_ID, WL_LKM_PCI_DEVICE_ID_1, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_Agere_Systems_Mini_PCI_V1 },
{ WL_LKM_PCI_VENDOR_ID, WL_LKM_PCI_DEVICE_ID_2, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_Agere_Systems_Mini_PCI_V1 },
{ PCI_VENDOR_ID_WL_LKM, PCI_DEVICE_ID_WL_LKM_0,
PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_Agere_Systems_Mini_PCI_V1 },
{ PCI_VENDOR_ID_WL_LKM, PCI_DEVICE_ID_WL_LKM_1,
PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_Agere_Systems_Mini_PCI_V1 },
{ PCI_VENDOR_ID_WL_LKM, PCI_DEVICE_ID_WL_LKM_2,
PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_Agere_Systems_Mini_PCI_V1 },

{ } /* Terminating entry */
};

Expand Down
8 changes: 4 additions & 4 deletions drivers/staging/wlags49_h2/wl_pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@
/*******************************************************************************
* constant definitions
******************************************************************************/
#define WL_LKM_PCI_VENDOR_ID 0x11C1 // Lucent Microelectronics
#define WL_LKM_PCI_DEVICE_ID_0 0xAB30 // Mini PCI
#define WL_LKM_PCI_DEVICE_ID_1 0xAB34 // Mini PCI
#define WL_LKM_PCI_DEVICE_ID_2 0xAB11 // WARP CardBus
#define PCI_VENDOR_IDWL_LKM 0x11C1 /* Lucent Microelectronics */
#define PCI_DEVICE_ID_WL_LKM_0 0xAB30 /* Mini PCI */
#define PCI_DEVICE_ID_WL_LKM_1 0xAB34 /* Mini PCI */
#define PCI_DEVICE_ID_WL_LKM_2 0xAB11 /* WARP CardBus */



Expand Down

0 comments on commit 100ca12

Please sign in to comment.