Staging: bcm: Remove typedef for _LINK_STATE and call directly.
authorKevin McKinney <klmckinney1@gmail.com>
Fri, 21 Dec 2012 20:10:38 +0000 (15:10 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Jan 2013 18:56:43 +0000 (10:56 -0800)
This patch removes typedef for _LINK_STATE, and changes
the name of the struct to bcm_link_state. In addition,
any calls to struct "LINK_STATE, or PLINK_STATE" are
changed to call 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/Macros.h

index fd7c974aff32e529b88d9772c57b3c6dcf020815..b034ace7eacd9886cf714d1e29f6799de4a17c35 100644 (file)
@@ -1013,7 +1013,7 @@ cntrlEnd:
        }
 
        case IOCTL_BCM_GET_CURRENT_STATUS: {
-               LINK_STATE link_state;
+               struct bcm_link_state link_state;
 
                /* Copy Ioctl Buffer structure */
                if (copy_from_user(&IoBuffer, argp, sizeof(struct bcm_ioctl_buffer))) {
index 224a1565005386dfaad9f896bb5ab85666804e65..1fae5d9b9d2a42dae21cdeb83220cd9d4f775844 100644 (file)
 #define GPIO_MODE_REGISTER       0x0F000034
 #define GPIO_PIN_STATE_REGISTER  0x0F000038
 
-
-typedef struct _LINK_STATE {
+struct bcm_link_state {
        UCHAR ucLinkStatus;
        UCHAR bIdleMode;
        UCHAR bShutdownMode;
-} LINK_STATE, *PLINK_STATE;
-
+};
 
 enum enLinkStatus {
        WAIT_FOR_SYNC = 1,