Pārlūkot izejas kodu

usb: host: ehci-dbg: fix up function definitions

This patch indents not empty functions to have the opening brace at the
beginning of the next line and body conforming coding style.

This also makes the function definition consistent with the file coding
style aligning parameters in sequential lines and indenting them with
two tabs.

Signed-off-by: Geyslan G. Bem <geyslan@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Geyslan G. Bem 9 gadi atpakaļ
vecāks
revīzija
c768ffb891
1 mainītis faili ar 16 papildinājumiem un 12 dzēšanām
  1. 16 12
      drivers/usb/host/ehci-dbg.c

+ 16 - 12
drivers/usb/host/ehci-dbg.c

@@ -288,19 +288,27 @@ dbg_qh(char *label, struct ehci_hcd *ehci, struct ehci_qh *qh)
 
 
 static inline int __maybe_unused
 static inline int __maybe_unused
 dbg_status_buf(char *buf, unsigned len, const char *label, u32 status)
 dbg_status_buf(char *buf, unsigned len, const char *label, u32 status)
-{ return 0; }
+{
+	return 0;
+}
 
 
 static inline int __maybe_unused
 static inline int __maybe_unused
 dbg_command_buf(char *buf, unsigned len, const char *label, u32 command)
 dbg_command_buf(char *buf, unsigned len, const char *label, u32 command)
-{ return 0; }
+{
+	return 0;
+}
 
 
 static inline int __maybe_unused
 static inline int __maybe_unused
 dbg_intr_buf(char *buf, unsigned len, const char *label, u32 enable)
 dbg_intr_buf(char *buf, unsigned len, const char *label, u32 enable)
-{ return 0; }
+{
+	return 0;
+}
 
 
 static inline int __maybe_unused
 static inline int __maybe_unused
 dbg_port_buf(char *buf, unsigned len, const char *label, int port, u32 status)
 dbg_port_buf(char *buf, unsigned len, const char *label, int port, u32 status)
-{ return 0; }
+{
+	return 0;
+}
 
 
 #endif	/* CONFIG_DYNAMIC_DEBUG */
 #endif	/* CONFIG_DYNAMIC_DEBUG */
 
 
@@ -404,12 +412,8 @@ static inline char token_mark(struct ehci_hcd *ehci, __hc32 token)
 	return '/';
 	return '/';
 }
 }
 
 
-static void qh_lines(
-	struct ehci_hcd *ehci,
-	struct ehci_qh *qh,
-	char **nextp,
-	unsigned *sizep
-)
+static void qh_lines(struct ehci_hcd *ehci, struct ehci_qh *qh,
+		char **nextp, unsigned *sizep)
 {
 {
 	u32			scratch;
 	u32			scratch;
 	u32			hw_curr;
 	u32			hw_curr;
@@ -957,7 +961,7 @@ done:
 }
 }
 
 
 static struct debug_buffer *alloc_buffer(struct usb_bus *bus,
 static struct debug_buffer *alloc_buffer(struct usb_bus *bus,
-				ssize_t (*fill_func)(struct debug_buffer *))
+		ssize_t (*fill_func)(struct debug_buffer *))
 {
 {
 	struct debug_buffer *buf;
 	struct debug_buffer *buf;
 
 
@@ -997,7 +1001,7 @@ out:
 }
 }
 
 
 static ssize_t debug_output(struct file *file, char __user *user_buf,
 static ssize_t debug_output(struct file *file, char __user *user_buf,
-			    size_t len, loff_t *offset)
+		size_t len, loff_t *offset)
 {
 {
 	struct debug_buffer *buf = file->private_data;
 	struct debug_buffer *buf = file->private_data;
 	int ret = 0;
 	int ret = 0;