[PATCHv3 0/13] Staging: vt6656: Cleanup of checkpatch problems in bssdb.c

2014-01-04 Thread Sebastian Rachuj
This patch series reformats the bssdb.c file of the vt6656 driver in staging. It resolves all errors and some warnings which checkpatch.pl discovered. However some occurrences of the following warnings are not patched: - Lines over 80 characters - Too many indentation levels - printk should includ

[PATCH 04/13] Staging: vt6656: Correct operator coding style

2014-01-04 Thread Sebastian Rachuj
From: Simon Schuster Adds spaces around operators (like &&, ||, !=, +, ...) and removes spaces before postfix increment and decrement operators. Parentheses around return values are removed, too. Signed-off-by: Sebastian Rachuj Signed-off-by: Simon Schuster --- drivers/staging/vt6656/bssdb.c

[PATCH 03/13] Staging: vt6656: Remove unnecessary semicolons

2014-01-04 Thread Sebastian Rachuj
From: Simon Schuster After some blocks in bssdb.c there are semicolons that are not required to be there. Therefore they are removed with this patch. Signed-off-by: Sebastian Rachuj Signed-off-by: Simon Schuster --- drivers/staging/vt6656/bssdb.c | 14 +++--- 1 file changed, 7 inserti

[PATCH 02/13] Staging: vt6656: Adjust comments in bssdb.c

2014-01-04 Thread Sebastian Rachuj
From: Simon Schuster Changes C99-style comments to C89-style ones to conform to the linux coding guidelines. Additionally removes plus and minus signs from the function description comments. Signed-off-by: Sebastian Rachuj Signed-off-by: Simon Schuster --- drivers/staging/vt6656/bssdb.c | 218

[PATCH 11/13] Staging: vt6656: Remove bogus parentheses in conditions

2014-01-04 Thread Sebastian Rachuj
Removes unrequired parentheses around comparisons in complex conditions. Signed-off-by: Sebastian Rachuj Signed-off-by: Simon Schuster --- drivers/staging/vt6656/bssdb.c | 138 - 1 file changed, 69 insertions(+), 69 deletions(-) diff --git a/drivers/stag

[PATCH 13/13] Staging: vt6656: Reduce line length of bssdb.c

2014-01-04 Thread Sebastian Rachuj
From: Simon Schuster Long lines are split into multiple ones to reduce the line length. Additionally some alignment fixes are made that previous patches missed. Unfortunately, due to the high indentation levels present in parts of bssdb.c, this patch leaves some lines which are longer than 80 ch

[PATCH 12/13] Staging: vt6656: Remove explicit comparisons against NULL

2014-01-04 Thread Sebastian Rachuj
Explicit comparisons of pointers agains NULL (like if (p != NULL) ...) are not as readable as the implicit comparison (like if (p) ...). This patch converts all these explicit comparisons to implicit ones. Signed-off-by: Sebastian Rachuj Signed-off-by: Simon Schuster --- drivers/staging/vt6656/

[PATCH 10/13] Staging: vt6656: Combined nested conditions

2014-01-04 Thread Sebastian Rachuj
From: Simon Schuster This patch reduces the level of indentation in bssdb.c of the vt6656 driver by transforming nested conditions to a series of logical conjunctions. E.g. if (cond1) { if (cond2) { block(); } } is transformed to if (cond1 && cond2) { bl

[PATCH 06/13] Staging: vt6656: Remove line feeds before else

2014-01-04 Thread Sebastian Rachuj
From: Simon Schuster An else belongs in the same line as the closing curly brace of the previous block. Hence, this patch removes line feeds separating a curly brace from the corresponding else. Signed-off-by: Sebastian Rachuj Signed-off-by: Simon Schuster --- drivers/staging/vt6656/bssdb.c |

[PATCH 05/13] Staging: vt6656: Correct single space mistakes

2014-01-04 Thread Sebastian Rachuj
From: Simon Schuster Adds missing spaces between an if-statement and its condition as well as between the condition and the following curly brace. At casts there is also a space added between the type and the variable. Spaces that either follow an opening parenthese or the sizeof operator or tha

[PATCH 08/13] Staging: vt6656: Combine "else { if" to "else if"

2014-01-04 Thread Sebastian Rachuj
From: Simon Schuster This patch combines single ifs within the block of an else to a single else if statement. Therefore code that looks like that else { if (cond) { statements; } else { other_statements; } } is converted to code that loo

[PATCH 07/13] Staging: vt6656: Remove unnecessary spaces in format strings

2014-01-04 Thread Sebastian Rachuj
From: Simon Schuster A space in a format string is unnecessary if it is followed by a line feed. These spaces are removed by this patch. Signed-off-by: Sebastian Rachuj Signed-off-by: Simon Schuster --- drivers/staging/vt6656/bssdb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

[PATCH 09/13] Staging: vt6656: Correct usage of braces

2014-01-04 Thread Sebastian Rachuj
From: Simon Schuster Conforming to the linux coding style guidelines, a single line block of an if statement does not require curly braces unless another block of the if cascade requires them. Therefore unnecessary curly braces are removed by this patch and missing ones are added. Signed-off-by: