HID: indent switches/cases

Previous thread: HID: move sunplus quirks by Linux Kernel Mailing List on Tuesday, October 14, 2008 - 5:03 pm. (1 message)

Next thread: HID: move cypress quirks by Linux Kernel Mailing List on Tuesday, October 14, 2008 - 5:03 pm. (1 message)
From: Linux Kernel Mailing List
Date: Tuesday, October 14, 2008 - 5:03 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=880d29...
Commit:     880d29f109428be1d027adf919a7457d8fe41fd3
Parent:     02ae9a1a8bc1d08a8fd5f6a0b8bde400b0f891b9
Author:     Jiri Slaby <jirislaby@gmail.com>
AuthorDate: Wed Jun 18 23:55:41 2008 +0200
Committer:  Jiri Kosina <jkosina@suse.cz>
CommitDate: Tue Oct 14 23:50:50 2008 +0200

    HID: indent switches/cases
    
    Bring switch and cases into coding style and save thus some
    indentation to make the code tighter.
    
    Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
    Signed-off-by: Jiri Kosina <jkosina@suse.cz>
---
 drivers/hid/hid-core.c        |  342 ++++++++++++------------
 drivers/hid/hid-input.c       |  585 ++++++++++++++++++++---------------------
 drivers/hid/usbhid/hid-core.c |  103 ++++----
 3 files changed, 508 insertions(+), 522 deletions(-)

diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index 397e1b2..5e62e01 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -270,9 +270,9 @@ static int hid_add_field(struct hid_parser *parser, unsigned report_type, unsign
 static u32 item_udata(struct hid_item *item)
 {
 	switch (item->size) {
-		case 1: return item->data.u8;
-		case 2: return item->data.u16;
-		case 4: return item->data.u32;
+	case 1: return item->data.u8;
+	case 2: return item->data.u16;
+	case 4: return item->data.u32;
 	}
 	return 0;
 }
@@ -280,9 +280,9 @@ static u32 item_udata(struct hid_item *item)
 static s32 item_sdata(struct hid_item *item)
 {
 	switch (item->size) {
-		case 1: return item->data.s8;
-		case 2: return item->data.s16;
-		case 4: return item->data.s32;
+	case 1: return item->data.s8;
+	case 2: return item->data.s16;
+	case 4: return item->data.s32;
 	}
 	return 0;
 }
@@ -294,87 +294,91 @@ static s32 item_sdata(struct hid_item *item)
 static int hid_parser_global(struct hid_parser *parser, struct hid_item *item)
 {
 	switch (item->tag) {
+	case ...
Previous thread: HID: move sunplus quirks by Linux Kernel Mailing List on Tuesday, October 14, 2008 - 5:03 pm. (1 message)

Next thread: HID: move cypress quirks by Linux Kernel Mailing List on Tuesday, October 14, 2008 - 5:03 pm. (1 message)