Staging: bcm: Remove typedef for rdmbuffer and call directly.
authorKevin McKinney <klmckinney1@gmail.com>
Thu, 22 Nov 2012 19:48:55 +0000 (14:48 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Nov 2012 00:05:23 +0000 (16:05 -0800)
This patch removes typedef for rdmbuffer, and
changes the name of the struct to bcm_rdm_buffer.
In addition, any calls to typedefs RDM_BUFFER, or
*PRDM_BUFFER 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 a8184a5386f780391cad399b759823ff684b73ac..7c179e1adffcbcbfd1eb5daa497f4e0ab5ddb40a 100644 (file)
@@ -203,7 +203,7 @@ static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg)
        switch (cmd) {
        /* Rdms for Swin Idle... */
        case IOCTL_BCM_REGISTER_READ_PRIVATE: {
-               RDM_BUFFER  sRdmBuffer = {0};
+               struct bcm_rdm_buffer sRdmBuffer = {0};
                PCHAR temp_buff;
                UINT Bufflen;
                u16 temp_value;
@@ -287,7 +287,7 @@ static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg)
 
        case IOCTL_BCM_REGISTER_READ:
        case IOCTL_BCM_EEPROM_REGISTER_READ: {
-               RDM_BUFFER  sRdmBuffer = {0};
+               struct bcm_rdm_buffer sRdmBuffer = {0};
                PCHAR temp_buff = NULL;
                UINT uiTempVar = 0;
                if ((Adapter->IdleMode == TRUE) ||
index 5910ba509ace3c18417f345b87febe2d0ccb47a7..8c70af90969bfcebae918d60917d9932eda57fef 100644 (file)
@@ -1,10 +1,10 @@
 #ifndef _IOCTL_H_
 #define _IOCTL_H_
 
-typedef struct rdmbuffer {
+struct bcm_rdm_buffer {
        unsigned long Register;
        unsigned long Length;
-} __packed RDM_BUFFER, *PRDM_BUFFER;
+} __packed;
 
 struct bcm_wrm_buffer {
        unsigned long Register;