Re: [PATCH v2] iio: gyro: adis16060: Change the name of function.

2017-04-02 Thread Jonathan Cameron
On 31/03/17 11:21, simran singhal wrote: > Change the name of function from adis16060_spi_write_than_read() > to adis16060_spi_write_then_read(). change "than" to "then" as > its time depended. > > Signed-off-by: simran singhal Applied. > --- > > v2: >-Change the subject. >-Add signed-o

Re: [PATCH 1/3] staging: iio: accel: Remove useless type conversion

2017-04-02 Thread Jonathan Cameron
On 31/03/17 16:08, simran singhal wrote: > Some type conversions like casting a pointer to a pointer of same type, > casting to the original type using addressof(&) operator etc. are not > needed. Therefore, remove them. Done using coccinelle: Please write a more specific commit message. No where

Re: [PATCH 3/3] staging: iio: light: Remove useless type conversion

2017-04-02 Thread Jonathan Cameron
On 31/03/17 16:08, simran singhal wrote: > Some type conversions like casting a pointer to a pointer of same type, > casting to the original type using addressof(&) operator etc. are not > needed. Therefore, remove them. Done using coccinelle: > > @@ > type t; > t *p; > t a; > @@ > ( > - (t)(a) >

Re: [PATCH 2/3] staging: iio: frequency: Remove useless type conversion

2017-04-02 Thread Jonathan Cameron
On 31/03/17 16:08, simran singhal wrote: > Some type conversions like casting a pointer to a pointer of same type, > casting to the original type using addressof(&) operator etc. are not > needed. Therefore, remove them. Done using coccinelle: > > @@ > type t; > t *p; > t a; > @@ > ( > - (t)(a) >

Re: [PATCH] staging: iio: meter: Replace mlock with driver private buf_lock

2017-04-02 Thread Jonathan Cameron
On 31/03/17 03:47, Arushi Singhal wrote: > The driver needs to insure atomicity during frequency > changes of bus and device. The iiodev->mlock as used > was not doing that. Replace it with the drivers existing > buffer lock and execute spi_write directly. > > Signed-off-by: Arushi Singhal Firstl

Re: [PATCH] staging: iio: ad9832: use 4-digit octal permissions

2017-04-02 Thread Jonathan Cameron
On 30/03/17 10:55, Guru Das Srinagesh wrote: > This fixes the coding style issue of using S_IWUSR in place of 4-digit > octal numbers. > > Issue detected by checkpatch. > > Signed-off-by: Guru Das Srinagesh Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to

Re: [PATCH] staging:iio:accel:adis16029 fixed checkpatch issue - drop braces around single if statement

2017-04-02 Thread Jonathan Cameron
See patch title. Check the part number... On 29/03/17 09:36, Andrea della Porta wrote: > Fixed the followinf checkpatch warning: > WARNING: braces {} are not necessary for single statement blocks > #258: FILE: drivers/staging/iio/accel/adis16209.c:258: > + if (ret) { > +

[PATCH 4/6] staging:r8188eu: replace rtw_software_encrypt with its default value

2017-04-02 Thread Ivan Safonov
rtw_software_encrypt used only once and does not changed. Replace it with 0. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/os_dep/os_intfs.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/rtl8188eu/os_dep/os_intfs.c b/drivers/staging/rtl8188eu

[PATCH 1/6] staging:r8188eu: replace rtw_software_decrypt with its value

2017-04-02 Thread Ivan Safonov
rtw_software_decrypt used only once and does not changed. Replace it with 0. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/os_dep/os_intfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/os_dep/os_intfs.c b/drivers/staging/rtl8188eu/

[PATCH 2/6] staging:r8188eu: remove software_decrypt member of registry_priv struct

2017-04-02 Thread Ivan Safonov
Value of this variable has no changes, and used once. Replace software_decrypt with its value. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/drv_types.h | 1 - drivers/staging/rtl8188eu/os_dep/os_intfs.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a

[PATCH 5/6] staging:r8188eu: remove software_encrypt member of registry_priv struct

2017-04-02 Thread Ivan Safonov
Value of this variable does not changed after initialization. Replace software_encrypt with its default value. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/drv_types.h | 1 - drivers/staging/rtl8188eu/os_dep/os_intfs.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(

[PATCH 6/6] staging:r8188eu: remove sw_encrypt member of security_priv struct

2017-04-02 Thread Ivan Safonov
sw_encrypt always is 0. Replace sw_encrypt with 0. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_xmit.c| 10 -- drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c | 3 +-- drivers/staging/rtl8188eu/include/rtw_security.h | 1 - drivers/staging/rtl8188eu/os_de

[PATCH 3/6] staging:r8188eu: remove sw_decrypt member of security_priv struct

2017-04-02 Thread Ivan Safonov
sw_decrypt always is 0, so replace it with 0. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_recv.c| 4 ++-- drivers/staging/rtl8188eu/include/rtw_security.h | 1 - drivers/staging/rtl8188eu/os_dep/os_intfs.c | 1 - 3 files changed, 2 insertions(+), 4 deletions(-

[PATCH] staging: lustre: fixed ../include/lustre_debug.h is included more than once.

2017-04-02 Thread Darryl T. Agostinelli
$ make includecheck ./drivers/staging/lustre/lustre/ptlrpc/layout.c: ../include/lustre_debug.h is included more than once. Signed-off-by: Darryl T. Agostinelli --- drivers/staging/lustre/lustre/ptlrpc/layout.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/ptlr

[Patch v2 1/3] staging: vt6656: convert spaces to tabs for rf.c

2017-04-02 Thread Daniel Cashman
From: Dan Cashman Address checkpatch errors encountered in rf.c by removing use of spaces and replacing with properly aligned tabs. Signed-off-by: Daniel Cashman --- drivers/staging/vt6656/rf.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/vt665

[Patch v2 0/3] staging: vt6656: Fix checkpatch style violations.

2017-04-02 Thread Daniel Cashman
From: Dan Cashman This patchset fixes the checkpatch-reported kernel style guide violations for rf.c in the vt6656 staging area. Specifically, the first patch fixes the errors, which are all spaces -> tabs conversions, and the second and third fix the warnings, which are an embedded function na

[Patch v2 3/3] staging: vt6656: Split arguments to avoid 80-char violation in rf.c

2017-04-02 Thread Daniel Cashman
From: Dan Cashman Wrap arguments of call to vnt_control_out() to avoid exceeding 80 character limit, but maintain alignment. Signed-off-by: Daniel Cashman --- drivers/staging/vt6656/rf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/vt6656/rf.c b/drivers

[Patch v2 2/3] staging: vt6656: Replace embedded function name with __func__ in rf.c

2017-04-02 Thread Daniel Cashman
From: Dan Cashman Change embedded function name in vnt_rf_set_txpower with %s format with __func__ argument to make it consistent with other part of if-else and kernel coding style standards as reported by checkpatch. Signed-off-by: Daniel Cashman --- drivers/staging/vt6656/rf.c | 2 +- 1 file

Re: [PATCH] staging: rtl8712: fixed multiple line derefence issue

2017-04-02 Thread Prasant Jalan
On Thu, Mar 30, 2017 at 12:03 AM, Prasant Jalan wrote: > Checkpatch emits WARNING: Avoid multiple line dereference. > > Trivial indentation improvement helps fix the checkpatch warning. > > Signed-off-by: Prasant Jalan > --- > drivers/staging/rtl8712/rtl871x_xmit.c | 12 ++-- > 1 file ch

Re: [PATCH] staging: rtl8712: fixed multiple line derefence issue

2017-04-02 Thread Joe Perches
On Mon, 2017-04-03 at 09:43 +0530, Prasant Jalan wrote: > On Thu, Mar 30, 2017 at 12:03 AM, Prasant Jalan > wrote: > > Checkpatch emits WARNING: Avoid multiple line dereference. > > > > Trivial indentation improvement helps fix the checkpatch warning. [] > > diff --git a/drivers/staging/rtl8712/

Re: [PATCH RFC] remove custom Michael MIC implementation

2017-04-02 Thread Kalle Valo
+ linux-wireless "Tobin C. Harding" writes: > On Fri, Mar 31, 2017 at 09:58:51AM +0200, Wolfram Sang wrote: >> >> > The code is untested, I have hardware in the mail. >> >> Cool! > > The card I have is a Spectec FCC ID: S2Y-WLAN-11B-G which I believe is > a SDW-823 and should use the ks7010 dr

Re: [PATCH] staging: rtl8712: fixed multiple line derefence issue

2017-04-02 Thread Prasant Jalan
On Mon, Apr 3, 2017 at 10:27 AM, Joe Perches wrote: > On Mon, 2017-04-03 at 09:43 +0530, Prasant Jalan wrote: >> On Thu, Mar 30, 2017 at 12:03 AM, Prasant Jalan >> wrote: >> > Checkpatch emits WARNING: Avoid multiple line dereference. >> > >> > Trivial indentation improvement helps fix the check

[PATCH v2] staging: rtl8712: fixed multiple line derefence issue

2017-04-02 Thread Prasant Jalan
Checkpatch emits WARNING: Avoid multiple line dereference. Checkpatch warning is fixed by: * Trivial indentation improvement and * Using += instead of + helps shortening the statement. Signed-off-by: Prasant Jalan --- v2: * Used += instead of + (pointed out by Joe Perches) * Rebased t