Staging:bcm: fix coding style error in InterfaceDld.c and InterfaceIdleMode.c
PATCH 1/1 Staging:bcm: fix coding style error in InterfaceDld.c and InterfaceIdleMode.c
This is a patch to the InterfaceIdleMode.c, InterfaceDld.c files that fixes up a coding style errors found by the checkpatch.pl tool
Signed-off-by Ilya Gorskin <[email protected]>
--- drivers/staging/bcm/InterfaceDld.c | 16 +-- drivers/staging/bcm/InterfaceIdleMode.c | 219 +++++++++++++------------------- 2 files changed, 99 insertions(+), 136 deletions(-)
drivers/staging/bcm/InterfaceDld.c +8 -8
@@ -35,9 +35,9 @@ int InterfaceFileDownload(PVOID arg, struct file *flp, unsigned int on_chip_loc)break ; }/* BCM_DEBUG_PRINT_BUFFER(Adapter,DBG_TYPE_INITEXIT, MP_INIT, -* DBG_LVL_ALL, buff, -* MAX_TRANSFER_CTRL_BYTE_USB); -*/ +* DBG_LVL_ALL, buff, +* MAX_TRANSFER_CTRL_BYTE_USB); +*/ errno =InterfaceWRM (psIntfAdapter, on_chip_loc, buff, len);if (errno) { BCM_DEBUG_PRINT(psIntfAdapter->psAdapter,
@@ -115,7 +115,7 @@ int InterfaceFileReadbackFromChip(PVOID arg, struct file *flp, unsigned int on_cwhile (len) {if (*(unsigned int *)&buff_readback[len] != *(unsigned int *)&buff[len]) {BCM_DEBUG_PRINT (psIntfAdapter->psAdapter,DBG_TYPE_INITEXIT ,MP_INIT ,DBG_LVL_ALL ,"Firmware Download is not proper %d" , fw_down); -BCM_DEBUG_PRINT (psIntfAdapter->psAdapter,DBG_TYPE_INITEXIT ,MP_INIT ,DBG_LVL_ALL ,"Val from Binary %x, Val From Read Back %x " , *(unsigned int *)&buff[len], *(unsigned int *)&buff_readback[len]); +BCM_DEBUG_PRINT (psIntfAdapter->psAdapter,DBG_TYPE_INITEXIT ,MP_INIT ,DBG_LVL_ALL ,"Val from Binary %x, Val From Read Back %x " , *(unsigned int *)&buff[len], *(unsigned int *)&buff_readback[len]);BCM_DEBUG_PRINT (psIntfAdapter->psAdapter,DBG_TYPE_INITEXIT ,MP_INIT ,DBG_LVL_ALL ,"len =%x!!!" , len); Status = -EIO ; goto exit;
@@ -218,7 +218,7 @@ static int bcm_compare_buff_contents(unsigned char *readbackbuff, unsigned charwhile (len) {if (*(unsigned int *)&readbackbuff[len] != *(unsigned int *)&buff[len]) {BCM_DEBUG_PRINT (Adapter,DBG_TYPE_INITEXIT ,MP_INIT ,DBG_LVL_ALL ,"Firmware Download is not proper" ); -BCM_DEBUG_PRINT (Adapter,DBG_TYPE_INITEXIT ,MP_INIT ,DBG_LVL_ALL ,"Val from Binary %x, Val From Read Back %x " , *(unsigned int *)&buff[len], *(unsigned int *)&readbackbuff[len]); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_INITEXIT ,MP_INIT ,DBG_LVL_ALL ,"Val from Binary %x, Val From Read Back %x " , *(unsigned int *)&buff[len], *(unsigned int *)&readbackbuff[len]);BCM_DEBUG_PRINT (Adapter,DBG_TYPE_INITEXIT ,MP_INIT ,DBG_LVL_ALL ,"len =%x!!!" , len); retval = -EINVAL ;break ;
@@ -235,9 +235,9 @@ int bcm_ioctl_fw_download(struct bcm_mini_adapter *Adapter, struct bcm_firmware_PUCHAR buff =NULL ;/* Config File is needed for the Driver to download the Config file and -* Firmware. Check for the Config file to be first to be sent from the -* Application -*/ +* Firmware. Check for the Config file to be first to be sent from the +* Application +*/ atomic_set (&Adapter->uiMBupdate, FALSE);if (!Adapter->bCfgDownloaded && psFwInfo->u32StartingAddress !=CONFIG_BEGIN_ADDR ) {/* Can't Download Firmware. */
drivers/staging/bcm/InterfaceIdleMode.c +91 -128
341 lines not on this page · raw message
Signature · 1 line
1.7.12