Staging: bcm: Remove typedef for _DEVICE_DRIVER_INFO and call directly.
authorKevin McKinney <klmckinney1@gmail.com>
Thu, 22 Nov 2012 19:48:48 +0000 (14:48 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Nov 2012 00:05:22 +0000 (16:05 -0800)
This patch removes typedef for _DEVICE_DRIVER_INFO,
and changes the name of the struct to
bcm_driver_info. In addition, any calls to
typedefs DEVICE_DRIVER_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/Bcmchar.c
drivers/staging/bcm/Ioctl.h

index cb26e581ba673ec8df541fa9e7bab8e5c00b5837..3485a86d9fc9c0d28ccd6ab245381a8911e2c3dc 100644 (file)
@@ -1955,7 +1955,7 @@ cntrlEnd:
        break;
 
        case IOCTL_BCM_GET_DEVICE_DRIVER_INFO: {
-               DEVICE_DRIVER_INFO DevInfo;
+               struct bcm_driver_info DevInfo;
 
                BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL, "Called IOCTL_BCM_GET_DEVICE_DRIVER_INFO\n");
 
index ce80181a8cfb4b38f28a60aac0a114185b2e1f09..0d1f57abe579b924a7c0c2131daafcc4d98eb49b 100644 (file)
@@ -107,14 +107,14 @@ typedef enum _BCM_INTERFACE_TYPE {
        BCM_PCMCIA
 } BCM_INTERFACE_TYPE;
 
-typedef struct _DEVICE_DRIVER_INFO {
+struct bcm_driver_info {
        NVM_TYPE        u32NVMType;
        unsigned int            MaxRDMBufferSize;
        BCM_INTERFACE_TYPE      u32InterfaceType;
        unsigned int            u32DSDStartOffset;
        unsigned int            u32RxAlignmentCorrection;
        unsigned int            u32Reserved[10];
-} DEVICE_DRIVER_INFO;
+};
 
 struct bcm_nvm_readwrite {
        void __user *pBuffer;