[PATCH 4/9] staging: comedi: mpc624: tidy up subdevice init

2015-10-05 Thread H Hartley Sweeten
For aesthetics, add some whitespace to the subdevice init. Remove the unnecessary switch() code used to set the maxdata and range_table. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/mpc624.c | 25 - 1 file cha

[PATCH 7/9] staging: comedi: mpc624: introduce mpc624_ai_get_sample()

2015-10-05 Thread H Hartley Sweeten
Introduce a helper function to read the analog sample from the serially connected A/D converter and handle the munging of the data. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/mpc624.c | 172 +++- 1 file

[PATCH 9/9] staging: comedi: mpc624: change type of private data 'ai_speed'

2015-10-05 Thread H Hartley Sweeten
For aesthetics, change the type of this member to unsigned int. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/mpc624.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/mpc624.c b/driv

[PATCH 6/9] staging: comedi: mpc624: rename mpc624_ai_rinsn()

2015-10-05 Thread H Hartley Sweeten
For aesthetics, rename this function to follow the normal convention in comedi drivers. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/mpc624.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/stagin

[PATCH 8/9] staging: comedi: mpc624: use tabs for whitespace instead of spaces

2015-10-05 Thread H Hartley Sweeten
For aesthetics, use tabs instead of spaces for the whitespace in the register defines. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/mpc624.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff

[PATCH] Staging: fbtft: Use BIT macro

2015-10-05 Thread Ronit Halder
Replace (1 << x) by BIT(x) Signed-off-by: Ronit halder --- drivers/staging/fbtft/fb_ssd1351.c | 4 +-- drivers/staging/fbtft/fbtft.h | 56 +++--- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/drivers/staging/fbtft/fb_ssd1351.c b/drivers/s

[PATCH v2] staging: rtl8723au: Fix sparse errors in rtl8723a_cmd.c

2015-10-05 Thread Jacob Kiefer
From: Jacob Kiefer This patch fixes the following sparse errors: CHECK drivers/staging/rtl8723au/hal/rtl8723a_cmd.c ... drivers/staging/rtl8723au/hal/rtl8723a_cmd.c:118:25: \ warning: incorrect type in assignment (different base types) drivers/staging/rtl8723au/hal/rtl8723a_cmd.c:118:25: \

<    1   2