Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1535409 > unrolled thread

[PATCH] uio: uio_cif: Fix style issues

Started byChinmayVS <cvs268@gmail.com>
First post2016-12-03 15:20 +0100
Last post2016-12-03 18:20 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] uio: uio_cif: Fix style issues ChinmayVS <cvs268@gmail.com> - 2016-12-03 15:20 +0100
    Re: [PATCH] uio: uio_cif: Fix style issues Greg KH <gregkh@linuxfoundation.org> - 2016-12-03 18:20 +0100

#1535409 — [PATCH] uio: uio_cif: Fix style issues

FromChinmayVS <cvs268@gmail.com>
Date2016-12-03 15:20 +0100
Subject[PATCH] uio: uio_cif: Fix style issues
Message-ID<sKjkt-2ry-3@gated-at.bofh.it>
- Update header-file inclusion path.
- Fix indentation of switch and case.
- Remove extra space in function calls.

Signed-off-by: ChinmayVS <cvs268@gmail.com>
---
 drivers/uio/uio_cif.c | 26 +++++++++++++++-----------
 1 file changed, 15 insertions(+), 11 deletions(-)

diff --git a/drivers/uio/uio_cif.c b/drivers/uio/uio_cif.c
index 30f533c..4acad98 100644
--- a/drivers/uio/uio_cif.c
+++ b/drivers/uio/uio_cif.c
@@ -14,7 +14,7 @@
 #include <linux/slab.h>
 #include <linux/uio_driver.h>
 
-#include <asm/io.h>
+#include <linux/io.h>
 
 #define PLX9030_INTCSR		0x4C
 #define INTSCR_INT1_ENABLE	0x01
@@ -67,16 +67,20 @@ static int hilscher_pci_probe(struct pci_dev *dev,
 	info->mem[1].addr = pci_resource_start(dev, 2);
 	info->mem[1].size = pci_resource_len(dev, 2);
 	info->mem[1].memtype = UIO_MEM_PHYS;
+
 	switch (id->subdevice) {
-		case CIF_SUBDEVICE_PROFIBUS:
-			info->name = "CIF_Profibus";
-			break;
-		case CIF_SUBDEVICE_DEVICENET:
-			info->name = "CIF_Devicenet";
-			break;
-		default:
-			info->name = "CIF_???";
+	case CIF_SUBDEVICE_PROFIBUS:
+		info->name = "CIF_Profibus";
+		break;
+
+	case CIF_SUBDEVICE_DEVICENET:
+		info->name = "CIF_Devicenet";
+		break;
+
+	default:
+		info->name = "CIF_???";
 	}
+
 	info->version = "0.0.1";
 	info->irq = dev->irq;
 	info->irq_flags = IRQF_SHARED;
@@ -95,7 +99,7 @@ static int hilscher_pci_probe(struct pci_dev *dev,
 out_disable:
 	pci_disable_device(dev);
 out_free:
-	kfree (info);
+	kfree(info);
 	return -ENODEV;
 }
 
@@ -108,7 +112,7 @@ static void hilscher_pci_remove(struct pci_dev *dev)
 	pci_disable_device(dev);
 	iounmap(info->mem[0].internal_addr);
 
-	kfree (info);
+	kfree(info);
 }
 
 static struct pci_device_id hilscher_pci_ids[] = {
-- 
2.7.4

[toc] | [next] | [standalone]


#1535463

FromGreg KH <gregkh@linuxfoundation.org>
Date2016-12-03 18:20 +0100
Message-ID<sKm8F-4aw-11@gated-at.bofh.it>
In reply to#1535409
On Sat, Dec 03, 2016 at 07:39:44PM +0530, ChinmayVS wrote:
> - Update header-file inclusion path.
> - Fix indentation of switch and case.
> - Remove extra space in function calls.
> 
> Signed-off-by: ChinmayVS <cvs268@gmail.com>

I need a "real" name here, one that you use on legal documents.

Also, please break this up into tiny individual patches, one doing each
thing.

And finally, please work in the drivers/staging/ portion of the kernel
if you wish to do cleanup patches like this, that will give you the
experience to not mess up on patches for the "core" kernel like this.

good luck!

greg k-h

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web