staging: wlan-ng: fix parenthesis alignment in prism2fw.c
This patch fix open parenthesis alignment matching in prism2fw.c file to comply with the standard kernel coding style. Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e0ae434801
commit
86605dd0e7
1 changed files with 26 additions and 23 deletions
|
@ -161,7 +161,7 @@ static struct hfa384x_caplevel priid;
|
|||
/* Local Function Declarations */
|
||||
|
||||
static int prism2_fwapply(const struct ihex_binrec *rfptr,
|
||||
struct wlandevice *wlandev);
|
||||
struct wlandevice *wlandev);
|
||||
|
||||
static int read_fwfile(const struct ihex_binrec *rfptr);
|
||||
|
||||
|
@ -172,13 +172,15 @@ static int read_cardpda(struct pda *pda, struct wlandevice *wlandev);
|
|||
static int mkpdrlist(struct pda *pda);
|
||||
|
||||
static int plugimage(struct imgchunk *fchunk, unsigned int nfchunks,
|
||||
struct s3plugrec *s3plug, unsigned int ns3plug, struct pda *pda);
|
||||
struct s3plugrec *s3plug, unsigned int ns3plug,
|
||||
struct pda *pda);
|
||||
|
||||
static int crcimage(struct imgchunk *fchunk, unsigned int nfchunks,
|
||||
struct s3crcrec *s3crc, unsigned int ns3crc);
|
||||
struct s3crcrec *s3crc, unsigned int ns3crc);
|
||||
|
||||
static int writeimage(struct wlandevice *wlandev, struct imgchunk *fchunk,
|
||||
unsigned int nfchunks);
|
||||
unsigned int nfchunks);
|
||||
|
||||
static void free_chunks(struct imgchunk *fchunk, unsigned int *nfchunks);
|
||||
|
||||
static void free_srecs(void);
|
||||
|
@ -207,13 +209,13 @@ static int prism2_fwtry(struct usb_device *udev, struct wlandevice *wlandev)
|
|||
const struct firmware *fw_entry = NULL;
|
||||
|
||||
netdev_info(wlandev->netdev, "prism2_usb: Checking for firmware %s\n",
|
||||
PRISM2_USB_FWFILE);
|
||||
PRISM2_USB_FWFILE);
|
||||
if (request_ihex_firmware(&fw_entry,
|
||||
PRISM2_USB_FWFILE, &udev->dev) != 0) {
|
||||
netdev_info(wlandev->netdev,
|
||||
"prism2_usb: Firmware not available, but not essential\n");
|
||||
"prism2_usb: Firmware not available, but not essential\n");
|
||||
netdev_info(wlandev->netdev,
|
||||
"prism2_usb: can continue to use card anyway.\n");
|
||||
"prism2_usb: can continue to use card anyway.\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -397,7 +399,7 @@ out:
|
|||
*----------------------------------------------------------------
|
||||
*/
|
||||
static int crcimage(struct imgchunk *fchunk, unsigned int nfchunks,
|
||||
struct s3crcrec *s3crc, unsigned int ns3crc)
|
||||
struct s3crcrec *s3crc, unsigned int ns3crc)
|
||||
{
|
||||
int result = 0;
|
||||
int i;
|
||||
|
@ -674,7 +676,8 @@ static int mkpdrlist(struct pda *pda)
|
|||
*----------------------------------------------------------------
|
||||
*/
|
||||
static int plugimage(struct imgchunk *fchunk, unsigned int nfchunks,
|
||||
struct s3plugrec *s3plug, unsigned int ns3plug, struct pda *pda)
|
||||
struct s3plugrec *s3plug, unsigned int ns3plug,
|
||||
struct pda *pda)
|
||||
{
|
||||
int result = 0;
|
||||
int i; /* plug index */
|
||||
|
@ -902,8 +905,8 @@ static int read_fwfile(const struct ihex_binrec *record)
|
|||
case S3ADDR_START:
|
||||
startaddr = *ptr32;
|
||||
pr_debug(" S7 start addr, record=%d addr=0x%08x\n",
|
||||
rcnt,
|
||||
startaddr);
|
||||
rcnt,
|
||||
startaddr);
|
||||
break;
|
||||
case S3ADDR_PLUG:
|
||||
s3plug[ns3plug].itemcode = *ptr32;
|
||||
|
@ -911,10 +914,10 @@ static int read_fwfile(const struct ihex_binrec *record)
|
|||
s3plug[ns3plug].len = *(ptr32 + 2);
|
||||
|
||||
pr_debug(" S3 plugrec, record=%d itemcode=0x%08x addr=0x%08x len=%d\n",
|
||||
rcnt,
|
||||
s3plug[ns3plug].itemcode,
|
||||
s3plug[ns3plug].addr,
|
||||
s3plug[ns3plug].len);
|
||||
rcnt,
|
||||
s3plug[ns3plug].itemcode,
|
||||
s3plug[ns3plug].addr,
|
||||
s3plug[ns3plug].len);
|
||||
|
||||
ns3plug++;
|
||||
if (ns3plug == S3PLUG_MAX) {
|
||||
|
@ -928,10 +931,10 @@ static int read_fwfile(const struct ihex_binrec *record)
|
|||
s3crc[ns3crc].dowrite = *(ptr32 + 2);
|
||||
|
||||
pr_debug(" S3 crcrec, record=%d addr=0x%08x len=%d write=0x%08x\n",
|
||||
rcnt,
|
||||
s3crc[ns3crc].addr,
|
||||
s3crc[ns3crc].len,
|
||||
s3crc[ns3crc].dowrite);
|
||||
rcnt,
|
||||
s3crc[ns3crc].addr,
|
||||
s3crc[ns3crc].len,
|
||||
s3crc[ns3crc].dowrite);
|
||||
ns3crc++;
|
||||
if (ns3crc == S3CRC_MAX) {
|
||||
pr_err("S3 crcrec limit reached - aborting\n");
|
||||
|
@ -943,9 +946,9 @@ static int read_fwfile(const struct ihex_binrec *record)
|
|||
s3info[ns3info].type = *(ptr16 + 1);
|
||||
|
||||
pr_debug(" S3 inforec, record=%d len=0x%04x type=0x%04x\n",
|
||||
rcnt,
|
||||
s3info[ns3info].len,
|
||||
s3info[ns3info].type);
|
||||
rcnt,
|
||||
s3info[ns3info].len,
|
||||
s3info[ns3info].type);
|
||||
if (((s3info[ns3info].len - 1) * sizeof(u16)) >
|
||||
sizeof(s3info[ns3info].info)) {
|
||||
pr_err("S3 inforec length too long - aborting\n");
|
||||
|
@ -999,7 +1002,7 @@ static int read_fwfile(const struct ihex_binrec *record)
|
|||
*----------------------------------------------------------------
|
||||
*/
|
||||
static int writeimage(struct wlandevice *wlandev, struct imgchunk *fchunk,
|
||||
unsigned int nfchunks)
|
||||
unsigned int nfchunks)
|
||||
{
|
||||
int result = 0;
|
||||
struct p80211msg_p2req_ramdl_state *rstmsg;
|
||||
|
|
Loading…
Reference in a new issue