diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2014-08-27 12:58:06 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-08-30 13:01:39 -0700 |
commit | d35be09d772eaa30f2aa088872dab8245352e5f2 (patch) | |
tree | c7d7598675c0ed502ad256b71a3264945b1ee6be /drivers/staging/bcm | |
parent | d16c8489c164dad8bd3469aae591bc3db3a8c8c2 (diff) |
Staging: bcm: Bcmchar.c: Renamed variable: "eFlash2xSectionVal" -> "flash_2x_section_val"
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/bcm')
-rw-r--r-- | drivers/staging/bcm/Bcmchar.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/staging/bcm/Bcmchar.c b/drivers/staging/bcm/Bcmchar.c index 81a073f276f4..cea6eb76cb38 100644 --- a/drivers/staging/bcm/Bcmchar.c +++ b/drivers/staging/bcm/Bcmchar.c @@ -1901,7 +1901,7 @@ BCM_DEBUG_PRINT(ad, DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL, static int bcm_char_ioctl_set_active_section(void __user *argp, struct bcm_mini_adapter *ad) { - enum bcm_flash2x_section_val eFlash2xSectionVal = 0; + enum bcm_flash2x_section_val flash_2x_section_val = 0; INT status = STATUS_FAILURE; struct bcm_ioctl_buffer io_buff; @@ -1922,7 +1922,7 @@ static int bcm_char_ioctl_set_active_section(void __user *argp, return -EFAULT; } - status = copy_from_user(&eFlash2xSectionVal, + status = copy_from_user(&flash_2x_section_val, io_buff.InputBuffer, sizeof(INT)); if (status) { BCM_DEBUG_PRINT(ad, DBG_TYPE_PRINTK, 0, 0, @@ -1942,7 +1942,7 @@ static int bcm_char_ioctl_set_active_section(void __user *argp, return -EACCES; } - status = BcmSetActiveSection(ad, eFlash2xSectionVal); + status = BcmSetActiveSection(ad, flash_2x_section_val); if (status) BCM_DEBUG_PRINT(ad, DBG_TYPE_PRINTK, 0, 0, "Failed to make it's priority Highest. status %d", @@ -2102,9 +2102,9 @@ static int bcm_char_ioctl_select_dsd(void __user *argp, struct bcm_ioctl_buffer io_buff; INT status = STATUS_FAILURE; UINT SectOfset = 0; - enum bcm_flash2x_section_val eFlash2xSectionVal; + enum bcm_flash2x_section_val flash_2x_section_val; - eFlash2xSectionVal = NO_SECTION_VAL; + flash_2x_section_val = NO_SECTION_VAL; BCM_DEBUG_PRINT(ad, DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL, "IOCTL_BCM_SELECT_DSD Called"); @@ -2121,7 +2121,7 @@ static int bcm_char_ioctl_select_dsd(void __user *argp, "Copy of IOCTL BUFFER failed"); return -EFAULT; } - status = copy_from_user(&eFlash2xSectionVal, io_buff.InputBuffer, + status = copy_from_user(&flash_2x_section_val, io_buff.InputBuffer, sizeof(INT)); if (status) { BCM_DEBUG_PRINT(ad, DBG_TYPE_PRINTK, 0, 0, @@ -2130,28 +2130,28 @@ static int bcm_char_ioctl_select_dsd(void __user *argp, } BCM_DEBUG_PRINT(ad, DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL, - "Read Section :%d", eFlash2xSectionVal); - if ((eFlash2xSectionVal != DSD0) && - (eFlash2xSectionVal != DSD1) && - (eFlash2xSectionVal != DSD2)) { + "Read Section :%d", flash_2x_section_val); + if ((flash_2x_section_val != DSD0) && + (flash_2x_section_val != DSD1) && + (flash_2x_section_val != DSD2)) { BCM_DEBUG_PRINT(ad, DBG_TYPE_PRINTK, 0, 0, "Passed section<%x> is not DSD section", - eFlash2xSectionVal); + flash_2x_section_val); return STATUS_FAILURE; } - SectOfset = BcmGetSectionValStartOffset(ad, eFlash2xSectionVal); + SectOfset = BcmGetSectionValStartOffset(ad, flash_2x_section_val); if (SectOfset == INVALID_OFFSET) { BCM_DEBUG_PRINT(ad, DBG_TYPE_PRINTK, 0, 0, "Provided Section val <%d> does not exist in Flash 2.x", - eFlash2xSectionVal); + flash_2x_section_val); return -EINVAL; } ad->bAllDSDWriteAllow = TRUE; ad->ulFlashCalStart = SectOfset; - ad->eActiveDSD = eFlash2xSectionVal; + ad->eActiveDSD = flash_2x_section_val; return STATUS_SUCCESS; } |