Explorar o código

Staging: echo: Lindent drivers/staging/echo

Lindent drivers/staging/echo

Signed-off by: J.R. Mauro <jrm8005@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
J.R. Mauro %!s(int64=16) %!d(string=hai) anos
pai
achega
b2d6a78d9f
Modificáronse 3 ficheiros con 13 adicións e 14 borrados
  1. 0 1
      drivers/staging/echo/TODO
  2. 12 12
      drivers/staging/echo/fir.h
  3. 1 1
      drivers/staging/echo/mmx.h

+ 0 - 1
drivers/staging/echo/TODO

@@ -1,6 +1,5 @@
 TODO:
 TODO:
 	- checkpatch.pl cleanups
 	- checkpatch.pl cleanups
-	- Lindent
 	- handle bit_operations.h (merge in or make part of common code?)
 	- handle bit_operations.h (merge in or make part of common code?)
 	- remove proc interface, only use echo.h interface (proc interface is
 	- remove proc interface, only use echo.h interface (proc interface is
 	  racy and not correct.)
 	  racy and not correct.)

+ 12 - 12
drivers/staging/echo/fir.h

@@ -102,7 +102,7 @@ struct fir_float_state_t {
 	float *history;
 	float *history;
 };
 };
 
 
-static __inline__ const int16_t *fir16_create(struct fir16_state_t * fir,
+static __inline__ const int16_t *fir16_create(struct fir16_state_t *fir,
 					      const int16_t * coeffs, int taps)
 					      const int16_t * coeffs, int taps)
 {
 {
 	fir->taps = taps;
 	fir->taps = taps;
@@ -116,7 +116,7 @@ static __inline__ const int16_t *fir16_create(struct fir16_state_t * fir,
 	return fir->history;
 	return fir->history;
 }
 }
 
 
-static __inline__ void fir16_flush(struct fir16_state_t * fir)
+static __inline__ void fir16_flush(struct fir16_state_t *fir)
 {
 {
 #if defined(USE_MMX)  ||  defined(USE_SSE2) || defined(__bfin__)
 #if defined(USE_MMX)  ||  defined(USE_SSE2) || defined(__bfin__)
 	memset(fir->history, 0, 2 * fir->taps * sizeof(int16_t));
 	memset(fir->history, 0, 2 * fir->taps * sizeof(int16_t));
@@ -125,7 +125,7 @@ static __inline__ void fir16_flush(struct fir16_state_t * fir)
 #endif
 #endif
 }
 }
 
 
-static __inline__ void fir16_free(struct fir16_state_t * fir)
+static __inline__ void fir16_free(struct fir16_state_t *fir)
 {
 {
 	kfree(fir->history);
 	kfree(fir->history);
 }
 }
@@ -157,7 +157,7 @@ static inline int32_t dot_asm(short *x, short *y, int len)
 }
 }
 #endif
 #endif
 
 
-static __inline__ int16_t fir16(struct fir16_state_t * fir, int16_t sample)
+static __inline__ int16_t fir16(struct fir16_state_t *fir, int16_t sample)
 {
 {
 	int32_t y;
 	int32_t y;
 #if defined(USE_MMX)
 #if defined(USE_MMX)
@@ -168,8 +168,8 @@ static __inline__ int16_t fir16(struct fir16_state_t * fir, int16_t sample)
 	fir->history[fir->curr_pos] = sample;
 	fir->history[fir->curr_pos] = sample;
 	fir->history[fir->curr_pos + fir->taps] = sample;
 	fir->history[fir->curr_pos + fir->taps] = sample;
 
 
-	mmx_coeffs = (union mmx_t *) fir->coeffs;
-	mmx_hist = (union mmx_t *) & fir->history[fir->curr_pos];
+	mmx_coeffs = (union mmx_t *)fir->coeffs;
+	mmx_hist = (union mmx_t *)&fir->history[fir->curr_pos];
 	i = fir->taps;
 	i = fir->taps;
 	pxor_r2r(mm4, mm4);
 	pxor_r2r(mm4, mm4);
 	/* 8 samples per iteration, so the filter must be a multiple of 8 long. */
 	/* 8 samples per iteration, so the filter must be a multiple of 8 long. */
@@ -199,8 +199,8 @@ static __inline__ int16_t fir16(struct fir16_state_t * fir, int16_t sample)
 	fir->history[fir->curr_pos] = sample;
 	fir->history[fir->curr_pos] = sample;
 	fir->history[fir->curr_pos + fir->taps] = sample;
 	fir->history[fir->curr_pos + fir->taps] = sample;
 
 
-	xmm_coeffs = (union xmm_t *) fir->coeffs;
-	xmm_hist = (union xmm_t *) & fir->history[fir->curr_pos];
+	xmm_coeffs = (union xmm_t *)fir->coeffs;
+	xmm_hist = (union xmm_t *)&fir->history[fir->curr_pos];
 	i = fir->taps;
 	i = fir->taps;
 	pxor_r2r(xmm4, xmm4);
 	pxor_r2r(xmm4, xmm4);
 	/* 16 samples per iteration, so the filter must be a multiple of 16 long. */
 	/* 16 samples per iteration, so the filter must be a multiple of 16 long. */
@@ -250,7 +250,7 @@ static __inline__ int16_t fir16(struct fir16_state_t * fir, int16_t sample)
 	return (int16_t) (y >> 15);
 	return (int16_t) (y >> 15);
 }
 }
 
 
-static __inline__ const int16_t *fir32_create(struct fir32_state_t * fir,
+static __inline__ const int16_t *fir32_create(struct fir32_state_t *fir,
 					      const int32_t * coeffs, int taps)
 					      const int32_t * coeffs, int taps)
 {
 {
 	fir->taps = taps;
 	fir->taps = taps;
@@ -260,17 +260,17 @@ static __inline__ const int16_t *fir32_create(struct fir32_state_t * fir,
 	return fir->history;
 	return fir->history;
 }
 }
 
 
-static __inline__ void fir32_flush(struct fir32_state_t * fir)
+static __inline__ void fir32_flush(struct fir32_state_t *fir)
 {
 {
 	memset(fir->history, 0, fir->taps * sizeof(int16_t));
 	memset(fir->history, 0, fir->taps * sizeof(int16_t));
 }
 }
 
 
-static __inline__ void fir32_free(struct fir32_state_t * fir)
+static __inline__ void fir32_free(struct fir32_state_t *fir)
 {
 {
 	kfree(fir->history);
 	kfree(fir->history);
 }
 }
 
 
-static __inline__ int16_t fir32(struct fir32_state_t * fir, int16_t sample)
+static __inline__ int16_t fir32(struct fir32_state_t *fir, int16_t sample)
 {
 {
 	int i;
 	int i;
 	int32_t y;
 	int32_t y;

+ 1 - 1
drivers/staging/echo/mmx.h

@@ -37,7 +37,7 @@ union mmx_t {
 	char b[8];		/* 8 Byte (8-bit) values */
 	char b[8];		/* 8 Byte (8-bit) values */
 	unsigned char ub[8];	/* 8 Unsigned Byte */
 	unsigned char ub[8];	/* 8 Unsigned Byte */
 	float s[2];		/* Single-precision (32-bit) value */
 	float s[2];		/* Single-precision (32-bit) value */
-};			/* On an 8-byte (64-bit) boundary */
+};				/* On an 8-byte (64-bit) boundary */
 
 
 /* SSE registers */
 /* SSE registers */
 union xmm_t {
 union xmm_t {