[PATCH] Staging: vt6655: Fix sparse-indicated type mismatch to kmalloc

2014-03-20 Thread Conrad Meyer
Signed-off-by: Conrad Meyer --- Patch is against next-20140320. Fixes a minor sparse warning in the staging driver vt6655. p->length is u16; implicit cast to size_t is fine. No reason to cast GFP_KERNEL... --- drivers/staging/vt6655/wpactl.c | 2 +- 1 file changed, 1 insertion(+), 1 delet

[PATCH] Staging: comedi: fixup: dev_warn() with correct dev

2014-03-11 Thread Conrad Meyer
Replace hw_dev with class_dev in new dev_warn()s. Sending this as a patch on top of the one already applied, since GregKH already took that one. If this is the wrong way to fix it, please let me know how I should proceed, I'm new. Thanks! Signed-off-by: Conrad Meyer --- .../comedi/dr

[PATCH 2/2] Staging: comedi: Validate early to flatten code

2014-03-09 Thread Conrad Meyer
Take advantage of -EINVAL returns to flatten code structure and hopefully reduce the number of 80+ character lines. Signed-off-by: Conrad Meyer --- .../comedi/drivers/addi-data/hwdrv_apci1500.c | 621 ++--- 1 file changed, 303 insertions(+), 318 deletions(-) diff --git a

[PATCH 3/3] Staging: comedi: do not initialize statics to 0 (apci1500)

2014-03-08 Thread Conrad Meyer
Minor style cleanup per checkpatch.pl. Signed-off-by: Conrad Meyer --- .../comedi/drivers/addi-data/hwdrv_apci1500.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/staging/comedi/drivers/addi-data/hwdrv_apci1500.c b/drivers/staging

[PATCH 1/3] Staging: comedi: Fix some raw printks with dev_warn()

2014-03-08 Thread Conrad Meyer
return -EINVAL as well. Signed-off-by: Conrad Meyer --- .../comedi/drivers/addi-data/hwdrv_apci1500.c | 166 + 1 file changed, 107 insertions(+), 59 deletions(-) diff --git a/drivers/staging/comedi/drivers/addi-data/hwdrv_apci1500.c b/drivers/staging/comedi/drivers/add

Updated: [PATCH] Staging: comedi: Fix 80-char line limit style issue in addi_apci_1500.c

2014-03-08 Thread Conrad Meyer
Rename some very long functions in addi-data/hwdrv_apci1500.c. Signed-off-by: Conrad Meyer --- .../staging/comedi/drivers/addi-data/hwdrv_apci1500.c | 18 -- drivers/staging/comedi/drivers/addi_apci_1500.c| 4 ++-- 2 files changed, 10 insertions(+), 12 deletions

[PATCH] Staging: comedi: Fix 80-char line limit style issue in addi_apci_1500.c

2014-03-08 Thread Conrad Meyer
Fix minor checkpatch.pl style issues (80-char line limits) in addi_apci_1500.c. Signed-off-by: Conrad Meyer --- drivers/staging/comedi/drivers/addi_apci_1500.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/addi_apci_1500.c b/drivers