Commit 86714380 authored by Dylan Socolobsky's avatar Dylan Socolobsky Committed by Greg Kroah-Hartman

Staging: ft1000: Change C99 comments in ft1000_dnld.c

This simple patch fixes the ERRORs found by checkpatch.pl in the file
ft1000_dnld.c by switching to the standard Kernel comment style.
Signed-off-by: default avatarDylan Socolobsky <dsocolobsky@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6fb3c2bd
...@@ -132,16 +132,16 @@ void card_bootload(struct net_device *dev) ...@@ -132,16 +132,16 @@ void card_bootload(struct net_device *dev)
pdata = (u32 *) bootimage; pdata = (u32 *) bootimage;
size = sizeof(bootimage); size = sizeof(bootimage);
// check for odd word /* check for odd word */
if (size & 0x0003) if (size & 0x0003)
size += 4; size += 4;
// Provide mutual exclusive access while reading ASIC registers. /* Provide mutual exclusive access while reading ASIC registers. */
spin_lock_irqsave(&info->dpram_lock, flags); spin_lock_irqsave(&info->dpram_lock, flags);
// need to set i/o base address initially and hardware will autoincrement /* need to set i/o base address initially and hardware will autoincrement */
ft1000_write_reg(dev, FT1000_REG_DPRAM_ADDR, FT1000_DPRAM_BASE); ft1000_write_reg(dev, FT1000_REG_DPRAM_ADDR, FT1000_DPRAM_BASE);
// write bytes /* write bytes */
for (i = 0; i < (size >> 2); i++) { for (i = 0; i < (size >> 2); i++) {
templong = *pdata++; templong = *pdata++;
outl(templong, dev->base_addr + FT1000_REG_MAG_DPDATA); outl(templong, dev->base_addr + FT1000_REG_MAG_DPDATA);
...@@ -390,7 +390,7 @@ int card_download(struct net_device *dev, const u8 *pFileStart, ...@@ -390,7 +390,7 @@ int card_download(struct net_device *dev, const u8 *pFileStart,
Status = FAILURE; Status = FAILURE;
break; break;
} }
// Provide mutual exclusive access while reading ASIC registers. /* Provide mutual exclusive access while reading ASIC registers. */
spin_lock_irqsave(&info->dpram_lock, spin_lock_irqsave(&info->dpram_lock,
flags); flags);
/* /*
...@@ -504,7 +504,7 @@ int card_download(struct net_device *dev, const u8 *pFileStart, ...@@ -504,7 +504,7 @@ int card_download(struct net_device *dev, const u8 *pFileStart,
break; break;
case REQUEST_MAILBOX_DATA: case REQUEST_MAILBOX_DATA:
// Convert length from byte count to word count. Make sure we round up. /* Convert length from byte count to word count. Make sure we round up. */
word_length = word_length =
(long)(info->DSPInfoBlklen + 1) / 2; (long)(info->DSPInfoBlklen + 1) / 2;
put_request_value(dev, word_length); put_request_value(dev, word_length);
...@@ -512,7 +512,7 @@ int card_download(struct net_device *dev, const u8 *pFileStart, ...@@ -512,7 +512,7 @@ int card_download(struct net_device *dev, const u8 *pFileStart,
(struct drv_msg *) & info->DSPInfoBlk[0]; (struct drv_msg *) & info->DSPInfoBlk[0];
pUsData = pUsData =
(u16 *) & pMailBoxData->data[0]; (u16 *) & pMailBoxData->data[0];
// Provide mutual exclusive access while reading ASIC registers. /* Provide mutual exclusive access while reading ASIC registers. */
spin_lock_irqsave(&info->dpram_lock, spin_lock_irqsave(&info->dpram_lock,
flags); flags);
if (file_version == 5) { if (file_version == 5) {
...@@ -564,7 +564,7 @@ int card_download(struct net_device *dev, const u8 *pFileStart, ...@@ -564,7 +564,7 @@ int card_download(struct net_device *dev, const u8 *pFileStart,
(u16 *) ((long)pFileStart + (u16 *) ((long)pFileStart +
pFileHdr5-> pFileHdr5->
version_data_offset); version_data_offset);
// Provide mutual exclusive access while reading ASIC registers. /* Provide mutual exclusive access while reading ASIC registers. */
spin_lock_irqsave(&info->dpram_lock, spin_lock_irqsave(&info->dpram_lock,
flags); flags);
/* /*
...@@ -716,7 +716,7 @@ int card_download(struct net_device *dev, const u8 *pFileStart, ...@@ -716,7 +716,7 @@ int card_download(struct net_device *dev, const u8 *pFileStart,
} }
usHdrLength = ntohs(pHdr->length); /* Byte length for PROV records */ usHdrLength = ntohs(pHdr->length); /* Byte length for PROV records */
// Get buffer for provisioning data /* Get buffer for provisioning data */
pbuffer = pbuffer =
kmalloc((usHdrLength + sizeof(struct pseudo_hdr)), kmalloc((usHdrLength + sizeof(struct pseudo_hdr)),
GFP_ATOMIC); GFP_ATOMIC);
...@@ -724,7 +724,7 @@ int card_download(struct net_device *dev, const u8 *pFileStart, ...@@ -724,7 +724,7 @@ int card_download(struct net_device *dev, const u8 *pFileStart,
memcpy(pbuffer, (void *)pUcFile, memcpy(pbuffer, (void *)pUcFile,
(u32) (usHdrLength + (u32) (usHdrLength +
sizeof(struct pseudo_hdr))); sizeof(struct pseudo_hdr)));
// link provisioning data /* link provisioning data */
pprov_record = pprov_record =
kmalloc(sizeof(struct prov_record), kmalloc(sizeof(struct prov_record),
GFP_ATOMIC); GFP_ATOMIC);
...@@ -734,7 +734,7 @@ int card_download(struct net_device *dev, const u8 *pFileStart, ...@@ -734,7 +734,7 @@ int card_download(struct net_device *dev, const u8 *pFileStart,
list_add_tail(&pprov_record-> list_add_tail(&pprov_record->
list, list,
&info->prov_list); &info->prov_list);
// Move to next entry if available /* Move to next entry if available */
pUcFile = pUcFile =
(u8 *) ((unsigned long) pUcFile + (u8 *) ((unsigned long) pUcFile +
(unsigned long) ((usHdrLength + 1) & 0xFFFFFFFE) + sizeof(struct pseudo_hdr)); (unsigned long) ((usHdrLength + 1) & 0xFFFFFFFE) + sizeof(struct pseudo_hdr));
......
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