[PATCH v2] staging: pi433: replace logical not with bitwise

2017-08-14 Thread Quentin Swain
sparse reports the following warning "warning: dubious: x & !y". Replaced te logical not with bitwise to resolve the warning Signed-off-by: Quentin Swain <dudebrobro...@gmail.com> --- drivers/staging/pi433/rf69.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH] staging: pi433: Fix warnings from sparse

2017-08-12 Thread Quentin Swain
Running sparse produced warnings regarding use of conflicting enum types and logical vs bitwise operator use. Signed-off-by: Quentin Swain <dudebrobro...@gmail.com> --- drivers/staging/pi433/pi433_if.c | 4 ++-- drivers/staging/pi433/rf69.c | 2 +- 2 files changed, 3 insertions

Fix permissions warning from check-patch for tsl2x7x

2017-04-28 Thread Quentin Swain
Mistyped the address for the staging list in the first email. Sorry about that. ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[PATCH] Fix check-patch symbolic permissions warnings

2017-04-28 Thread Quentin Swain
--- drivers/staging/iio/light/tsl2x7x_core.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/staging/iio/light/tsl2x7x_core.c b/drivers/staging/iio/light/tsl2x7x_core.c index af3910b..c63fe6a 100644 --- a/drivers/staging/iio/light/tsl2x7x_core.c

[PATCH 2/5] iio: ade7753 Convert: symbolic permissions to octal

2017-04-30 Thread Quentin Swain
Convert S_IRUGO and S_IWUSR macros to octal permissions to resolve warnings reported by checkpatch.pl Signed-off-by: Quentin Swain <dudebrobro...@gmail.com> --- drivers/staging/iio/meter/ade7753.c | 46 ++--- 1 file changed, 23 insertions(+), 23 deletions(-)

[PATCH 3/5] iio: ade7754: Convert symbolic permissions to octal

2017-04-30 Thread Quentin Swain
Convert symbolic S_IRUGO and S_IWUSR macros to octal permissions to resolve warnings reported by checkpatch.pl Signed-off-by: Quentin Swain <dudebrobro...@gmail.com> --- drivers/staging/iio/meter/ade7754.c | 56 ++--- 1 file changed, 28 insertions(+), 28 del

[PATCH 4/5] iio: ade7758: Convert symbolic permissions to octal

2017-04-30 Thread Quentin Swain
Convert symbolic S_IRUGO and S_IWUSR macros to octal permissions to fix warnings reported by checkpatch.pl Signed-off-by: Quentin Swain <dudebrobro...@gmail.com> --- drivers/staging/iio/meter/ade7758_core.c | 50 1 file changed, 25 insertions(+), 25 del

[PATCH 1/5] iio: ad9834 convert symbolic permissions to octal

2017-04-30 Thread Quentin Swain
Remove checkpatch warnings by converting symbolic S_IRUGO and S_IWUSR permissions to octal Signed-off-by: Quentin Swain <dudebrobro...@gmail.com> --- drivers/staging/iio/frequency/ad9834.c | 22 +++--- drivers/staging/iio/frequency/dds.h| 2 +- 2 files changed, 12 inse

[PATCH 5/5] iio: ade7854: Convert symbolic permissions to octal

2017-04-30 Thread Quentin Swain
Convert symbolic S_IRUGO and S_IWUSR macros to octal to fix warnings reported by checkpatch.pl Signed-off-by: Quentin Swain <dudebrobro...@gmail.com> --- drivers/staging/iio/meter/ade7854.c | 88 ++--- 1 file changed, 44 insertions(+), 44 deletions(-) diff

Fix permissions warning from check-patch for tsl2x7x

2017-04-30 Thread Quentin Swain
Replace the use of symbolic permissions macros, S_IRUGO and S_IWUSR, with octal permissons to resolve errors reported by checkpatch.pl. checkpatch.pl still reports errors for use of decimal permissions in a handful of cases where the macros were replaced with the octal in ad9834 and ade7753. It