* [PATCH] Staging: rar: rar_driver: fix some coding style issues
@ 2010-02-08 19:02 Chihau Chau
2010-02-17 22:49 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Chihau Chau @ 2010-02-08 19:02 UTC (permalink / raw)
To: gregkh; +Cc: alan, andre.goddard, devel, linux-kernel, Chihau Chau
From: Chihau Chau <chihau@gmail.com>
This fixes some coding style issues like lines over 80 characters, "foo* bar"
and spaces or tabs errors.
Signed-off-by: Chihau Chau <chihau@gmail.com>
---
drivers/staging/rar/rar_driver.c | 31 +++++++++++--------------------
1 files changed, 11 insertions(+), 20 deletions(-)
diff --git a/drivers/staging/rar/rar_driver.c b/drivers/staging/rar/rar_driver.c
index d85d189..4ef1acf 100644
--- a/drivers/staging/rar/rar_driver.c
+++ b/drivers/staging/rar/rar_driver.c
@@ -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);
--
1.5.6.3
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] Staging: rar: rar_driver: fix some coding style issues
2010-02-08 19:02 [PATCH] Staging: rar: rar_driver: fix some coding style issues Chihau Chau
@ 2010-02-17 22:49 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2010-02-17 22:49 UTC (permalink / raw)
To: Chihau Chau; +Cc: gregkh, devel, andre.goddard, linux-kernel, alan
On Mon, Feb 08, 2010 at 04:02:36PM -0300, Chihau Chau wrote:
> From: Chihau Chau <chihau@gmail.com>
>
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-17 23:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-08 19:02 [PATCH] Staging: rar: rar_driver: fix some coding style issues Chihau Chau
2010-02-17 22:49 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox