Commit 80c329ad authored by Matthias Beyer's avatar Matthias Beyer Committed by Greg Kroah-Hartman

Staging: bcm: Bcmchar.c: Renamed variable "ucResetValue" -> "reset_val"

Renamed variable "ucResetValue" -> "reset_val" in
bcm_char_ioctl_gpio_set_request().
Signed-off-by: default avatarMatthias Beyer <mail@beyermatthias.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 41e70810
...@@ -481,7 +481,7 @@ static int bcm_char_ioctl_gpio_set_request(void __user *argp, ...@@ -481,7 +481,7 @@ static int bcm_char_ioctl_gpio_set_request(void __user *argp,
{ {
struct bcm_gpio_info gpio_info = {0}; struct bcm_gpio_info gpio_info = {0};
struct bcm_ioctl_buffer io_buff; struct bcm_ioctl_buffer io_buff;
UCHAR ucResetValue[4]; UCHAR reset_val[4];
UINT value = 0; UINT value = 0;
UINT uiBit = 0; UINT uiBit = 0;
UINT uiOperation = 0; UINT uiOperation = 0;
...@@ -558,7 +558,7 @@ static int bcm_char_ioctl_gpio_set_request(void __user *argp, ...@@ -558,7 +558,7 @@ static int bcm_char_ioctl_gpio_set_request(void __user *argp,
} }
bytes = rdmaltWithLock(ad, (UINT)GPIO_MODE_REGISTER, bytes = rdmaltWithLock(ad, (UINT)GPIO_MODE_REGISTER,
(PUINT)ucResetValue, sizeof(UINT)); (PUINT)reset_val, sizeof(UINT));
if (bytes < 0) { if (bytes < 0) {
status = bytes; status = bytes;
BCM_DEBUG_PRINT(ad, DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL, BCM_DEBUG_PRINT(ad, DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL,
...@@ -569,9 +569,9 @@ static int bcm_char_ioctl_gpio_set_request(void __user *argp, ...@@ -569,9 +569,9 @@ static int bcm_char_ioctl_gpio_set_request(void __user *argp,
} }
/* Set the gpio mode register to output */ /* Set the gpio mode register to output */
*(UINT *)ucResetValue |= (1<<uiBit); *(UINT *)reset_val |= (1<<uiBit);
status = wrmaltWithLock(ad, GPIO_MODE_REGISTER, status = wrmaltWithLock(ad, GPIO_MODE_REGISTER,
(PUINT)ucResetValue, sizeof(UINT)); (PUINT)reset_val, sizeof(UINT));
if (status == STATUS_SUCCESS) { if (status == STATUS_SUCCESS) {
BCM_DEBUG_PRINT(ad, DBG_TYPE_OTHERS, OSAL_DBG, BCM_DEBUG_PRINT(ad, DBG_TYPE_OTHERS, OSAL_DBG,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment