Commit 0fe8b957 authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6656: FIRMWAREbCheckVersion remove camel case

camel case changes
pDevice -> priv
ntStatus -> status
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e21a53c3
...@@ -112,32 +112,32 @@ int FIRMWAREbBrach2Sram(struct vnt_private *priv) ...@@ -112,32 +112,32 @@ int FIRMWAREbBrach2Sram(struct vnt_private *priv)
return true; 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, MESSAGE_TYPE_READ,
0, 0,
MESSAGE_REQUEST_VERSION, MESSAGE_REQUEST_VERSION,
2, 2,
(u8 *) &(pDevice->wFirmwareVersion)); (u8 *) &(priv->wFirmwareVersion));
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Firmware Version [%04x]\n", DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Firmware Version [%04x]\n",
pDevice->wFirmwareVersion); priv->wFirmwareVersion);
if (ntStatus != STATUS_SUCCESS) { if (status != STATUS_SUCCESS) {
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Firmware Invalid.\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Firmware Invalid.\n");
return false; return false;
} }
if (pDevice->wFirmwareVersion == 0xFFFF) { if (priv->wFirmwareVersion == 0xFFFF) {
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"In Loader.\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"In Loader.\n");
return false; return false;
} }
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Firmware Version [%04x]\n", DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Firmware Version [%04x]\n",
pDevice->wFirmwareVersion); priv->wFirmwareVersion);
if (pDevice->wFirmwareVersion < FIRMWARE_VERSION) { if (priv->wFirmwareVersion < FIRMWARE_VERSION) {
/* branch to loader for download new firmware */ /* branch to loader for download new firmware */
FIRMWAREbBrach2Sram(pDevice); FIRMWAREbBrach2Sram(priv);
return false; return false;
} }
return true; return true;
......
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