]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
staging: vt6656: FIRMWAREbCheckVersion remove camel case
authorMalcolm Priestley <tvboxspy@gmail.com>
Wed, 4 Jun 2014 17:25:29 +0000 (18:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 22:59:49 +0000 (15:59 -0700)
camel case changes
pDevice -> priv
ntStatus -> status

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/firmware.c

index 7e66d8b2d2544d53ae1f1c43c0feef4dd191d14e..a74a42d3b5dd230624d16b407123553c55917259 100644 (file)
@@ -112,32 +112,32 @@ int FIRMWAREbBrach2Sram(struct vnt_private *priv)
                return true;
 }
 
-int FIRMWAREbCheckVersion(struct vnt_private *pDevice)
+int FIRMWAREbCheckVersion(struct vnt_private *priv)
 {
-       int ntStatus;
+       int status;
 
-       ntStatus = vnt_control_in(pDevice,
+       status = vnt_control_in(priv,
                                        MESSAGE_TYPE_READ,
                                        0,
                                        MESSAGE_REQUEST_VERSION,
                                        2,
-                                       (u8 *) &(pDevice->wFirmwareVersion));
+                                       (u8 *) &(priv->wFirmwareVersion));
 
        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Firmware Version [%04x]\n",
-                                               pDevice->wFirmwareVersion);
-       if (ntStatus != STATUS_SUCCESS) {
+                                               priv->wFirmwareVersion);
+       if (status != STATUS_SUCCESS) {
                DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Firmware Invalid.\n");
                return false;
        }
-       if (pDevice->wFirmwareVersion == 0xFFFF) {
+       if (priv->wFirmwareVersion == 0xFFFF) {
                DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"In Loader.\n");
                return false;
        }
        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Firmware Version [%04x]\n",
-                                               pDevice->wFirmwareVersion);
-       if (pDevice->wFirmwareVersion < FIRMWARE_VERSION) {
+                                               priv->wFirmwareVersion);
+       if (priv->wFirmwareVersion < FIRMWARE_VERSION) {
                /* branch to loader for download new firmware */
-               FIRMWAREbBrach2Sram(pDevice);
+               FIRMWAREbBrach2Sram(priv);
                return false;
        }
        return true;