Staging: bcm: Bcmchar.c: Renamed variable "uiBit" -> "bit"
authorMatthias Beyer <mail@beyermatthias.de>
Sun, 10 Aug 2014 12:32:10 +0000 (14:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Aug 2014 19:23:20 +0000 (12:23 -0700)
Renamed variable "uiBit" -> "bit" in bcm_char_ioctl_gpio_set_request().

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm/Bcmchar.c

index c63eb375f418458712aac708e1d8fda5f165c0b1..6ae95d0c2b9e49e1dc9c9ccbdf50fd6bfc59b99b 100644 (file)
@@ -483,7 +483,7 @@ static int bcm_char_ioctl_gpio_set_request(void __user *argp,
        struct bcm_ioctl_buffer io_buff;
        UCHAR reset_val[4];
        UINT value = 0;
-       UINT uiBit = 0;
+       UINT bit = 0;
        UINT uiOperation = 0;
        INT status;
        int bytes;
@@ -508,9 +508,9 @@ static int bcm_char_ioctl_gpio_set_request(void __user *argp,
                           io_buff.InputLength))
                return -EFAULT;
 
-       uiBit  = gpio_info.uiGpioNumber;
+       bit  = gpio_info.uiGpioNumber;
        uiOperation = gpio_info.uiGpioValue;
-       value = (1<<uiBit);
+       value = (1<<bit);
 
        if (IsReqGpioIsLedInNVM(ad, value) == false) {
                BCM_DEBUG_PRINT(ad, DBG_TYPE_OTHERS, OSAL_DBG,
@@ -535,7 +535,7 @@ static int bcm_char_ioctl_gpio_set_request(void __user *argp,
                        BCM_DEBUG_PRINT(ad, DBG_TYPE_OTHERS,
                                        OSAL_DBG, DBG_LVL_ALL,
                                        "Failed to set the %dth GPIO\n",
-                                       uiBit);
+                                       bit);
                        return status;
                }
        } else {
@@ -552,7 +552,7 @@ static int bcm_char_ioctl_gpio_set_request(void __user *argp,
                        BCM_DEBUG_PRINT(ad, DBG_TYPE_OTHERS,
                                        OSAL_DBG, DBG_LVL_ALL,
                                        "Failed to clear the %dth GPIO\n",
-                                       uiBit);
+                                       bit);
                        return status;
                }
        }
@@ -569,7 +569,7 @@ static int bcm_char_ioctl_gpio_set_request(void __user *argp,
        }
 
        /* Set the gpio mode register to output */
-       *(UINT *)reset_val |= (1<<uiBit);
+       *(UINT *)reset_val |= (1<<bit);
        status = wrmaltWithLock(ad, GPIO_MODE_REGISTER,
                                (PUINT)reset_val, sizeof(UINT));