[PATCH 41/44] Staging: bcm: Bcmchar.c: Renamed variable "ucResetValue" -> "reset_val"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Renamed variable "ucResetValue" -> "reset_val" in
bcm_char_ioctl_gpio_set_request().

Signed-off-by: Matthias Beyer <mail@xxxxxxxxxxxxxxxx>
---
 drivers/staging/bcm/Bcmchar.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/bcm/Bcmchar.c b/drivers/staging/bcm/Bcmchar.c
index 5b44eff..3908299 100644
--- a/drivers/staging/bcm/Bcmchar.c
+++ b/drivers/staging/bcm/Bcmchar.c
@@ -481,7 +481,7 @@ static int bcm_char_ioctl_gpio_set_request(void __user *argp,
 {
 	struct bcm_gpio_info gpio_info = {0};
 	struct bcm_ioctl_buffer io_buff;
-	UCHAR ucResetValue[4];
+	UCHAR reset_val[4];
 	UINT value = 0;
 	UINT uiBit = 0;
 	UINT uiOperation = 0;
@@ -558,7 +558,7 @@ static int bcm_char_ioctl_gpio_set_request(void __user *argp,
 	}
 
 	bytes = rdmaltWithLock(ad, (UINT)GPIO_MODE_REGISTER,
-			       (PUINT)ucResetValue, sizeof(UINT));
+			       (PUINT)reset_val, sizeof(UINT));
 	if (bytes < 0) {
 		Status = bytes;
 		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,
 	}
 
 	/* Set the gpio mode register to output */
-	*(UINT *)ucResetValue |= (1<<uiBit);
+	*(UINT *)reset_val |= (1<<uiBit);
 	Status = wrmaltWithLock(ad, GPIO_MODE_REGISTER,
-				(PUINT)ucResetValue, sizeof(UINT));
+				(PUINT)reset_val, sizeof(UINT));
 
 	if (Status == STATUS_SUCCESS) {
 		BCM_DEBUG_PRINT(ad, DBG_TYPE_OTHERS, OSAL_DBG,
-- 
2.0.3

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




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux