Staging: line6: minor coding style cleanups
This fixes up all of the remaining coding style issues that
make any sense to make in the line6 driver.
Cc: Markus Grabner <grabner@icg.tugraz.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
diff --git a/drivers/staging/line6/pcm.h b/drivers/staging/line6/pcm.h
index 3a50083..77055b3 100644
--- a/drivers/staging/line6/pcm.h
+++ b/drivers/staging/line6/pcm.h
@@ -45,7 +45,8 @@
/*
Get substream from Line6 PCM data structure
*/
-#define get_substream(line6pcm, stream) (line6pcm->pcm->streams[stream].substream)
+#define get_substream(line6pcm, stream) \
+ (line6pcm->pcm->streams[stream].substream)
/*
PCM mode bits and masks.
@@ -312,13 +313,13 @@
extern int line6_pcm_start(struct snd_line6_pcm *line6pcm, int channels);
extern int line6_pcm_stop(struct snd_line6_pcm *line6pcm, int channels);
-#define PRINT_FRAME_DIFF(op) { \
- static int diff_prev = 1000; \
+#define PRINT_FRAME_DIFF(op) { \
+ static int diff_prev = 1000; \
int diff = line6pcm->last_frame_out - line6pcm->last_frame_in; \
- if((diff != diff_prev) && (abs(diff) < 100)) { \
- printk("%s frame diff = %d\n", op, diff); \
- diff_prev = diff; \
- } \
- }
+ if ((diff != diff_prev) && (abs(diff) < 100)) { \
+ printk(KERN_INFO "%s frame diff = %d\n", op, diff); \
+ diff_prev = diff; \
+ } \
+}
#endif