Re: [PATCH 1/2] Staging: rar: fixed various style issues in rar_driver.c

Previous thread: [PATCH] Inotify: Fix build failure in inotify user support by Ralf Baechle on Monday, March 8, 2010 - 12:51 pm. (3 messages)

Next thread: [PATCH 2/2] Staging: rar: fix various style issues in rar_driver.c by Eric Anschuetz on Monday, March 8, 2010 - 1:04 pm. (2 messages)
From: Eric Anschuetz
Date: Monday, March 8, 2010 - 1:02 pm

>From e328efd2312d1c010e242c848b23ff1195028686 Mon Sep 17 00:00:00 2001
From: Eric Anschuetz <gh4ever@Acer-laptop.(none)>
Date: Sun, 7 Mar 2010 16:03:22 -0500
Subject: [PATCH 1/2] Staging: rar: fixed various style issues in rar_driver.c
 This is a patch to the rar_driver.c file that fixes indentation and space issues found by the checkpatch.pl tool.
 Signed-off-by: Eric Anschuetz <ericanschuetz@yahoo.com>

---
 drivers/staging/rar/rar_driver.c |   62 +++++++++++++++++++-------------------
 1 files changed, 31 insertions(+), 31 deletions(-)

diff --git a/drivers/staging/rar/rar_driver.c b/drivers/staging/rar/rar_driver.c
index d85d189..640b06f 100644
--- a/drivers/staging/rar/rar_driver.c
+++ b/drivers/staging/rar/rar_driver.c
@@ -86,9 +86,9 @@ 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_dev *pdev,
+				int offset,
+				u32 *addr)
 {
 	/*
 	 * ======== The Lincroft Message Bus Interface ========
@@ -140,23 +140,23 @@ 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);
+				LNC_MCR_OFFSET,
+				message);
 
 	printk(KERN_WARNING "rar- result from send ctl register is %x\n"
-	  ,result);
+	  , result);
 
 	if (!result)
 		result = pci_read_config_dword(pdev,
-		                              LNC_MDR_OFFSET,
-				              addr);
+						LNC_MDR_OFFSET,
+						addr);
 
 	printk(KERN_WARNING "rar- result ...
From: Greg KH
Date: Thursday, April 8, 2010 - 1:05 pm

This patch doesn't apply for some reason :(
--

Previous thread: [PATCH] Inotify: Fix build failure in inotify user support by Ralf Baechle on Monday, March 8, 2010 - 12:51 pm. (3 messages)

Next thread: [PATCH 2/2] Staging: rar: fix various style issues in rar_driver.c by Eric Anschuetz on Monday, March 8, 2010 - 1:04 pm. (2 messages)