]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: bcm: Remove typedef for stGPIOInfo and call directly.
authorKevin McKinney <klmckinney1@gmail.com>
Thu, 22 Nov 2012 19:48:53 +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 stGPIOInfo, and
changes the name of the struct to bcm_gpio_info.
In addition, any calls to typedefs GPIO_INFO, or
*PGPIO_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 cb0c0c9a16a4afc1c9eccede19ed26bb500cf0dc..7250c48ddfde8933c4adcbc01bc94452b45a4b8a 100644 (file)
@@ -401,8 +401,8 @@ static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg)
                UINT value = 0;
                UINT uiBit = 0;
                UINT uiOperation = 0;
+               struct bcm_gpio_info gpio_info = {0};
 
-               GPIO_INFO   gpio_info = {0};
                if ((Adapter->IdleMode == TRUE) ||
                        (Adapter->bShutStatus == TRUE) ||
                        (Adapter->bPreparingForLowPowerMode == TRUE)) {
@@ -518,7 +518,7 @@ static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg)
        case IOCTL_BCM_GPIO_STATUS_REQUEST: {
                ULONG uiBit = 0;
                UCHAR ucRead[4];
-               GPIO_INFO   gpio_info = {0};
+               struct bcm_gpio_info gpio_info = {0};
 
                if ((Adapter->IdleMode == TRUE) ||
                        (Adapter->bShutStatus == TRUE) ||
index ddaf789dc273cc9044a6266307837a04f5d95452..440bff5df6ada2ba93f994aa4a7ba5d1a164eac3 100644 (file)
@@ -19,10 +19,10 @@ struct bcm_ioctl_buffer {
        unsigned long OutputLength;
 } __packed;
 
-typedef struct stGPIOInfo {
+struct bcm_gpio_info {
        unsigned int uiGpioNumber; /* valid numbers 0-15 */
        unsigned int uiGpioValue; /* 1 set ; 0 not  set */
-} __packed GPIO_INFO, *PGPIO_INFO;
+} __packed;
 
 struct bcm_user_thread_req {
        /* 0->Inactivate LED thread. */