Renamed variable "Status" -> "status" in
bcm_char_ioctl_gpio_set_request().

Signed-off-by: Matthias Beyer <m...@beyermatthias.de>
---
 drivers/staging/bcm/Bcmchar.c | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/drivers/staging/bcm/Bcmchar.c b/drivers/staging/bcm/Bcmchar.c
index 32b767f..8b23ec9 100644
--- a/drivers/staging/bcm/Bcmchar.c
+++ b/drivers/staging/bcm/Bcmchar.c
@@ -485,7 +485,7 @@ static int bcm_char_ioctl_gpio_set_request(void __user 
*argp,
        UINT value = 0;
        UINT bit = 0;
        UINT operation = 0;
-       INT Status;
+       INT status;
        int bytes;
 
        if ((ad->IdleMode == TRUE) ||
@@ -523,11 +523,11 @@ static int bcm_char_ioctl_gpio_set_request(void __user 
*argp,
        /* Set - setting 1 */
        if (operation) {
                /* Set the gpio output register */
-               Status = wrmaltWithLock(ad,
+               status = wrmaltWithLock(ad,
                                        BCM_GPIO_OUTPUT_SET_REG,
                                        (PUINT)(&value), sizeof(UINT));
 
-               if (Status == STATUS_SUCCESS) {
+               if (status == STATUS_SUCCESS) {
                        BCM_DEBUG_PRINT(ad, DBG_TYPE_OTHERS,
                                        OSAL_DBG, DBG_LVL_ALL,
                                        "Set the GPIO bit\n");
@@ -536,15 +536,15 @@ static int bcm_char_ioctl_gpio_set_request(void __user 
*argp,
                                        OSAL_DBG, DBG_LVL_ALL,
                                        "Failed to set the %dth GPIO\n",
                                        bit);
-                       return Status;
+                       return status;
                }
        } else {
                /* Set the gpio output register */
-               Status = wrmaltWithLock(ad,
+               status = wrmaltWithLock(ad,
                                        BCM_GPIO_OUTPUT_CLR_REG,
                                        (PUINT)(&value), sizeof(UINT));
 
-               if (Status == STATUS_SUCCESS) {
+               if (status == STATUS_SUCCESS) {
                        BCM_DEBUG_PRINT(ad, DBG_TYPE_OTHERS,
                                        OSAL_DBG, DBG_LVL_ALL,
                                        "Set the GPIO bit\n");
@@ -553,27 +553,27 @@ static int bcm_char_ioctl_gpio_set_request(void __user 
*argp,
                                        OSAL_DBG, DBG_LVL_ALL,
                                        "Failed to clear the %dth GPIO\n",
                                        bit);
-                       return Status;
+                       return status;
                }
        }
 
        bytes = rdmaltWithLock(ad, (UINT)GPIO_MODE_REGISTER,
                               (PUINT)reset_val, sizeof(UINT));
        if (bytes < 0) {
-               Status = bytes;
+               status = bytes;
                BCM_DEBUG_PRINT(ad, DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL,
                                "GPIO_MODE_REGISTER read failed");
-               return Status;
+               return status;
        } else {
-               Status = STATUS_SUCCESS;
+               status = STATUS_SUCCESS;
        }
 
        /* Set the gpio mode register to output */
        *(UINT *)reset_val |= (1<<bit);
-       Status = wrmaltWithLock(ad, GPIO_MODE_REGISTER,
+       status = wrmaltWithLock(ad, GPIO_MODE_REGISTER,
                                (PUINT)reset_val, sizeof(UINT));
 
-       if (Status == STATUS_SUCCESS) {
+       if (status == STATUS_SUCCESS) {
                BCM_DEBUG_PRINT(ad, DBG_TYPE_OTHERS, OSAL_DBG,
                                DBG_LVL_ALL,
                                "Set the GPIO to output Mode\n");
@@ -583,7 +583,7 @@ static int bcm_char_ioctl_gpio_set_request(void __user 
*argp,
                                "Failed to put GPIO in Output Mode\n");
        }
 
-       return Status;
+       return status;
 }
 
 static int bcm_char_ioctl_led_thread_state_change_req(void __user *argp,
-- 
2.0.3

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to