Staging: bcm: Remove typedef for _FLASH2X_VENDORSPECIFIC_INFO and call directly.
authorKevin McKinney <klmckinney1@gmail.com>
Sat, 1 Dec 2012 06:15:53 +0000 (01:15 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Jan 2013 18:45:50 +0000 (10:45 -0800)
This patch removes typedef for _FLASH2X_VENDORSPECIFIC_INFO,
and changes the name of the struct to bcm_flash2x_vendor_info.
In addition, any calls to typedefs FLASH2X_VENDORSPECIFIC_INFO,
or *PFLASH2X_VENDORSPECIFIC_INFO are changed to call the
struct directly.

Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm/Adapter.h
drivers/staging/bcm/nvm.c
drivers/staging/bcm/nvm.h
drivers/staging/bcm/vendorspecificextn.c
drivers/staging/bcm/vendorspecificextn.h

index f57794827f730e135e3435fc76658d3f27581c20..4231b6751d20dad64c77d328d4029df5e84e5c07 100644 (file)
@@ -368,7 +368,7 @@ struct bcm_mini_adapter {
        /*      BOOLEAN                         InterfaceUpStatus; */
        PFLASH2X_CS_INFO        psFlash2xCSInfo;
        PFLASH_CS_INFO          psFlashCSInfo;
-       PFLASH2X_VENDORSPECIFIC_INFO psFlash2xVendorInfo;
+       struct bcm_flash2x_vendor_info *psFlash2xVendorInfo;
        UINT                    uiFlashBaseAdd; /* Flash start address */
        UINT                    uiActiveISOOffset; /* Active ISO offset chosen before f/w download */
        enum bcm_flash2x_section_val eActiveISO; /* Active ISO section val */
index 8c72e7d84933023970ad767f7d93968aaba6895a..468b3167a0f4f5b17ff9934607b9296bd8e244d7 100644 (file)
@@ -2241,7 +2241,7 @@ int BcmAllocFlashCSStructure(struct bcm_mini_adapter *psAdapter)
                return -ENOMEM;
        }
 
-       psAdapter->psFlash2xVendorInfo = (PFLASH2X_VENDORSPECIFIC_INFO)kzalloc(sizeof(FLASH2X_VENDORSPECIFIC_INFO), GFP_KERNEL);
+       psAdapter->psFlash2xVendorInfo = (struct bcm_flash2x_vendor_info *)kzalloc(sizeof(struct bcm_flash2x_vendor_info), GFP_KERNEL);
        if (!psAdapter->psFlash2xVendorInfo) {
                BCM_DEBUG_PRINT(psAdapter, DBG_TYPE_PRINTK, 0, 0, "Can't Allocate Vendor Info Memory for Flash 2.x");
                kfree(psAdapter->psFlashCSInfo);
index de9986496df55954baf1cc2e325842dcbc51f9b3..849ff00e0e4cd84b9e7b7a6cc9f2bbedfadb4b06 100644 (file)
@@ -127,10 +127,10 @@ typedef struct _VENDOR_SECTION_INFO {
        u32 Reserved[16];
 } VENDOR_SECTION_INFO, *PVENDOR_SECTION_INFO;
 
-typedef struct _FLASH2X_VENDORSPECIFIC_INFO {
+struct bcm_flash2x_vendor_info {
        VENDOR_SECTION_INFO VendorSection[TOTAL_SECTIONS];
        u32 Reserved[16];
-} FLASH2X_VENDORSPECIFIC_INFO, *PFLASH2X_VENDORSPECIFIC_INFO;
+};
 
 struct bcm_dsd_header {
        u32 DSDImageSize;
index 40be60aa909aadcceffec17280f555f91e79fc19..be1f91d955aa2716c69cb8b87d9c9dfd55de0d99 100644 (file)
@@ -11,7 +11,7 @@
 //             STATUS_SUCCESS/STATUS_FAILURE
 //
 //-----------------------------------------------------------------------------
-INT vendorextnGetSectionInfo(PVOID  pContext,PFLASH2X_VENDORSPECIFIC_INFO pVendorInfo)
+INT vendorextnGetSectionInfo(PVOID  pContext, struct bcm_flash2x_vendor_info *pVendorInfo)
 {
        return STATUS_FAILURE;
 }
index 834410e29e75002417b5c4529b1e0a834b518aaf..52890d216edf3b9828e7ad040c6df4d0e6195a25 100644 (file)
@@ -4,7 +4,7 @@
 
 #define CONTINUE_COMMON_PATH 0xFFFF
 
-INT vendorextnGetSectionInfo(PVOID  pContext,PFLASH2X_VENDORSPECIFIC_INFO pVendorInfo);
+INT vendorextnGetSectionInfo(PVOID  pContext, struct bcm_flash2x_vendor_info *pVendorInfo);
 INT vendorextnExit(struct bcm_mini_adapter *Adapter);
 INT vendorextnInit(struct bcm_mini_adapter *Adapter);
 INT vendorextnIoctl(struct bcm_mini_adapter *Adapter, UINT cmd, ULONG arg);