Staging: rar: rar_driver: fix some coding style issues
PATCH 1/1 Staging: rar: rar_driver: fix some coding style issues
From: Chihau Chau <[email protected]>
This fixes some coding style issues like lines over 80 characters, "foo* bar" and spaces or tabs errors.
Signed-off-by Chihau Chau <[email protected]>
--- drivers/staging/rar/rar_driver.c | 31 +++++++++++-------------------- 1 files changed, 11 insertions(+), 20 deletions(-)
drivers/staging/rar/rar_driver.c +11 -20
@@ -68,7 +68,8 @@ static void __exit rar_exit_handler(void);/* function that is activated on the successfull probe of the RAR device */ -static int __devinit rar_probe (struct pci_dev *pdev,const struct pci_device_id *ent); +static int __devinit rar_probe (struct pci_dev *pdev, +const struct pci_device_id *ent);static struct pci_device_id rar_pci_id_tbl[] = { {PCI_DEVICE (PCI_VENDOR_ID_INTEL ,0x4110 ) },
@@ -86,9 +87,7 @@ static struct pci_driver rar_pci_driver = {/* This function is used to retrieved RAR info using the IPC message bus interface */ -static int memrar_get_rar_addr (struct pci_dev * pdev, -int offset, -u32 *addr) +static int memrar_get_rar_addr (struct pci_devi *pdev,int offset,u32 *addr) {/* * ======== The Lincroft Message Bus Interface ========
@@ -140,23 +139,19 @@ static int memrar_get_rar_addr(struct pci_dev* pdev, | (offset << 8) | (LNC_MESSAGE_BYTE_WRITE_ENABLES <<4 ); -printk (KERN_WARNING "rar- offset to LNC MSG is %x\n" ,offset); +printk (KERN_WARNING "rar- offset to LNC MSG is %x\n" , offset);if (addr ==0 )return -EINVAL ;/* Send the control message */ - result =pci_write_config_dword (pdev, -LNC_MCR_OFFSET , - message); + result =pci_write_config_dword (pdev,LNC_MCR_OFFSET , message); -printk (KERN_WARNING "rar- result from send ctl register is %x\n" - ,result); +printk (KERN_WARNING "rar- result from send ctl register is %x\n" , + result);if (!result) - result =pci_read_config_dword (pdev, -LNC_MDR_OFFSET , - addr); + result =pci_read_config_dword (pdev,LNC_MDR_OFFSET , addr);printk (KERN_WARNING "rar- result from read data register is %x\n" , result);
@@ -170,9 +165,7 @@ static int memrar_get_rar_addr(struct pci_dev* pdev,return 0 ; } -static int memrar_set_rar_addr (struct pci_dev * pdev, -int offset, -u32 addr) +static int memrar_set_rar_addr (struct pci_dev *pdev,int offset,u32 addr) {/* * ======== The Lincroft Message Bus Interface ========
@@ -225,15 +218,13 @@ static int memrar_set_rar_addr(struct pci_dev* pdev, | (offset << 8) | (LNC_MESSAGE_BYTE_WRITE_ENABLES <<4 ); -printk (KERN_WARNING "rar- offset to LNC MSG is %x\n" ,offset); +printk (KERN_WARNING "rar- offset to LNC MSG is %x\n" , offset);if (addr ==0 )return -EINVAL ;/* Send the control message */ - result =pci_write_config_dword (pdev, -LNC_MDR_OFFSET , - addr); + result =pci_write_config_dword (pdev,LNC_MDR_OFFSET , addr);printk (KERN_WARNING "rar- result from send ctl register is %x\n" ,result);
Signature · 1 line
1.5.6.3
Quoted 4 lines · Chihau Chau
From: Chihau Chau <[email protected]>
This fixes some coding style issues like lines over 80 characters, "foo* bar" and spaces or tabs errors.
Sorry, but someone else (the original driver author), sent in a patch before you did to fix this up.
thanks,
greg k-h