]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Staging: bcm: Remove typedef for stGPIOMultiInfo and call directly.
authorKevin McKinney <klmckinney1@gmail.com>
Thu, 22 Nov 2012 19:48:40 +0000 (14:48 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Nov 2012 00:05:12 +0000 (16:05 -0800)
This patch removes typedef for stGPIOMultiInfo,
and changes the name of the struct to
bcm_gpio_multi_info. In addition, any calls
to typedefs GPIO_MULTI_INFO, or *PGPIO_MULTI_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 73ed3d60d4fcb84c0f8833cfa0bf158bcc35d622..f3762163b5aaeaeb60553cea420bb64ce0903376 100644 (file)
@@ -552,10 +552,10 @@ static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg)
 
        case IOCTL_BCM_GPIO_MULTI_REQUEST: {
                UCHAR ucResetValue[4];
-               GPIO_MULTI_INFO gpio_multi_info[MAX_IDX];
-               PGPIO_MULTI_INFO pgpio_multi_info = (PGPIO_MULTI_INFO)gpio_multi_info;
+               struct bcm_gpio_multi_info gpio_multi_info[MAX_IDX];
+               struct bcm_gpio_multi_info *pgpio_multi_info = (struct bcm_gpio_multi_info *)gpio_multi_info;
 
-               memset(pgpio_multi_info, 0, MAX_IDX * sizeof(GPIO_MULTI_INFO));
+               memset(pgpio_multi_info, 0, MAX_IDX * sizeof(struct bcm_gpio_multi_info));
 
                if ((Adapter->IdleMode == TRUE) ||
                        (Adapter->bShutStatus == TRUE) ||
index f5d9b4af49f77783d97f25b654e260890de20db7..6f112c8e1215b3fe6c5c74e90e59ce480d32d5e9 100644 (file)
@@ -219,11 +219,11 @@ enum {
        MAX_IDX
 };
 
-typedef struct stGPIOMultiInfo {
+struct bcm_gpio_multi_info {
        unsigned int uiGPIOCommand; /* 1 for set and 0 for get */
        unsigned int uiGPIOMask;    /* set the correspondig bit to 1 to access GPIO */
        unsigned int uiGPIOValue;   /* 0 or 1; value to be set when command is 1. */
-} __packed GPIO_MULTI_INFO, *PGPIO_MULTI_INFO;
+} __packed;
 
 struct bcm_gpio_multi_mode {
        unsigned int uiGPIOMode;    /* 1 for OUT mode, 0 for IN mode */