Re: [PATCH v2 4/4] Staging: comedi: fix line over 80 characters issue in s626.c

2016-05-20 Thread Ian Abbott
/drivers/s626.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Thanks! Reviewed-by: Ian Abbott -- -=( Ian Abbott @ MEV Ltd.E-mail: )=- -=( Web: http://www.mev.co.uk/ )=-

Re: [PATCH v2 1/4] Staging: comedi: fix type issue in s626.c

2016-05-20 Thread Ian Abbott
int chan; - uint16_t setup = + u16 setup = /* Preload upon index. */ S626_SET_STD_LOADSRC(S626_LOADSRC_INDX) | /* Disable hardware index. */ Ditto. -- -=( Ian Abbott @ MEV Ltd.E-mail: <abbo.

Re: [PATCH v2 1/4] Staging: comedi: fix type issue in s626.c

2016-05-20 Thread Ian Abbott
tup = + u16 setup = /* Preload upon index. */ S626_SET_STD_LOADSRC(S626_LOADSRC_INDX) | /* Disable hardware index. */ Ditto. -- -=( Ian Abbott @ MEV Ltd.E-mail: )=- -=( Web: http://www.mev.co.uk/ )=-

[PATCH v4 05/14] staging: comedi: daqboard2000: rename serial EEPROM register macros

2016-05-19 Thread Ian Abbott
Rename the macros defining values for the Serial EEPROM Control Register to avoid CamelCase. Signed-off-by: Ian Abbott <abbo...@mev.co.uk> Reviewed-by: H Hartley Sweeten <hswee...@visionengravers.com> --- v2: Shortened prefix from `DAQBOARD2000_` to `DB2K_`. v3, v4: No change.

[PATCH v4 05/14] staging: comedi: daqboard2000: rename serial EEPROM register macros

2016-05-19 Thread Ian Abbott
Rename the macros defining values for the Serial EEPROM Control Register to avoid CamelCase. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten --- v2: Shortened prefix from `DAQBOARD2000_` to `DB2K_`. v3, v4: No change. --- drivers/staging/comedi/drivers/daqboard2000.c | 26

[PATCH v4 04/14] staging: comedi: daqboard2000: add blank line after struct declaration

2016-05-19 Thread Ian Abbott
Fix checkpatch issue: "CHECK: Please use a blank line after function/struct/union/enum declarations". Signed-off-by: Ian Abbott <abbo...@mev.co.uk> Reviewed-by: H Hartley Sweeten <hswee...@visionengravers.com> --- v2: Fixed typo in patch description: `black line` --

[PATCH v4 04/14] staging: comedi: daqboard2000: add blank line after struct declaration

2016-05-19 Thread Ian Abbott
Fix checkpatch issue: "CHECK: Please use a blank line after function/struct/union/enum declarations". Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten --- v2: Fixed typo in patch description: `black line` --> `blank line`. v3, v4: No change. --- drivers/staging/c

[PATCH v4 02/14] staging: comedi: daqboard2000: use usual block comment style

2016-05-19 Thread Ian Abbott
Reformat one of the block comments to conform to the usual style (it's the only one that doesn't). Signed-off-by: Ian Abbott <abbo...@mev.co.uk> Reviewed-by: H Hartley Sweeten <hswee...@visionengravers.com> --- v2, v3, v4: No change. --- drivers/staging/comedi/drivers/daqboa

[PATCH v4 02/14] staging: comedi: daqboard2000: use usual block comment style

2016-05-19 Thread Ian Abbott
Reformat one of the block comments to conform to the usual style (it's the only one that doesn't). Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten --- v2, v3, v4: No change. --- drivers/staging/comedi/drivers/daqboard2000.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions

[PATCH v4 06/14] staging: comedi: daqboard2000: rename register offset macros

2016-05-19 Thread Ian Abbott
Rename the macros defining register offsets to avoid CamelCase, and to use namespace associated with the driver. Signed-off-by: Ian Abbott <abbo...@mev.co.uk> Reviewed-by: H Hartley Sweeten <hswee...@visionengravers.com> --- Other CamelCase issues in this patch will be dealt with by l

[PATCH v4 14/14] staging: comedi: daqboard2000: prefer usleep_range()

2016-05-19 Thread Ian Abbott
microseconds one is called as each 16-bit word of firmware data is written. Replace it with a fairly tight `usleep_range(10, 20)` to avoid slowing down firmware loading too much. The firmware is fairly short, so this would only slow it down firmware loading by about 20 milliseconds or so. Signed-off-by: Ian

[PATCH v4 12/14] staging: comedi: daqboard2000: rename reference DACs register macros

2016-05-19 Thread Ian Abbott
Rename the macros that define values for the reference DACs register to avoid CamelCase, and to make it clearer which register they are associated with. Add a macro `DB2K_REG_DACS_SET` for the value `0x0080` that triggers setting one of the references. Signed-off-by: Ian Abbott <a

[PATCH v4 08/14] staging: comedi: daqboard2000: rename acq status register macros

2016-05-19 Thread Ian Abbott
is write-only. Signed-off-by: Ian Abbott <abbo...@mev.co.uk> Reviewed-by: H Hartley Sweeten <hswee...@visionengravers.com> --- v2: Shortened prefix from `DAQBOARD2000_` to `DB2K_`. v3, v4: No change. --- drivers/staging/comedi/drivers/daqboard2000.c | 39 ++- 1 file

[PATCH v4 06/14] staging: comedi: daqboard2000: rename register offset macros

2016-05-19 Thread Ian Abbott
Rename the macros defining register offsets to avoid CamelCase, and to use namespace associated with the driver. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten --- Other CamelCase issues in this patch will be dealt with by later patches in the series. v2: Shortened prefix from

[PATCH v4 14/14] staging: comedi: daqboard2000: prefer usleep_range()

2016-05-19 Thread Ian Abbott
microseconds one is called as each 16-bit word of firmware data is written. Replace it with a fairly tight `usleep_range(10, 20)` to avoid slowing down firmware loading too much. The firmware is fairly short, so this would only slow it down firmware loading by about 20 milliseconds or so. Signed-off-by: Ian

[PATCH v4 12/14] staging: comedi: daqboard2000: rename reference DACs register macros

2016-05-19 Thread Ian Abbott
Rename the macros that define values for the reference DACs register to avoid CamelCase, and to make it clearer which register they are associated with. Add a macro `DB2K_REG_DACS_SET` for the value `0x0080` that triggers setting one of the references. Signed-off-by: Ian Abbott Reviewed-by: H

[PATCH v4 08/14] staging: comedi: daqboard2000: rename acq status register macros

2016-05-19 Thread Ian Abbott
is write-only. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten --- v2: Shortened prefix from `DAQBOARD2000_` to `DB2K_`. v3, v4: No change. --- drivers/staging/comedi/drivers/daqboard2000.c | 39 ++- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git

[PATCH v4 10/14] staging: comedi: daqboard2000: redo DAC status macros and fix busy

2016-05-19 Thread Ian Abbott
el, but the existing code only works for channels 0 and 1. The driver only supports two DAC channels at the moment, so the bug is currently harmless, but fix it so we can support four DAC channels on some board models. Signed-off-by: Ian Abbott <abbo...@mev.co.uk> Reviewed-by

[PATCH v4 09/14] staging: comedi: daqboard2000: redo DAC control register macros

2016-05-19 Thread Ian Abbott
are currently used by the driver. Signed-off-by: Ian Abbott <abbo...@mev.co.uk> Reviewed-by: H Hartley Sweeten <hswee...@visionengravers.com> --- v2: Shortened prefix from `DAQBOARD2000_` to `DB2K_`. v3, v4: No change. --- drivers/staging/comedi/drivers/daqboard2000.c | 21 +++--

[PATCH v4 11/14] staging: comedi: daqboard2000: rename trigger control register macros

2016-05-19 Thread Ian Abbott
Rename the macros that define values for the trigger control register to avoid CamelCase, and to make it clearer which register they are associated with. Signed-off-by: Ian Abbott <abbo...@mev.co.uk> Reviewed-by: H Hartley Sweeten <hswee...@visionengravers.com> --- v2: Shortened

[PATCH v4 10/14] staging: comedi: daqboard2000: redo DAC status macros and fix busy

2016-05-19 Thread Ian Abbott
el, but the existing code only works for channels 0 and 1. The driver only supports two DAC channels at the moment, so the bug is currently harmless, but fix it so we can support four DAC channels on some board models. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten --- v2: S

[PATCH v4 09/14] staging: comedi: daqboard2000: redo DAC control register macros

2016-05-19 Thread Ian Abbott
are currently used by the driver. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten --- v2: Shortened prefix from `DAQBOARD2000_` to `DB2K_`. v3, v4: No change. --- drivers/staging/comedi/drivers/daqboard2000.c | 21 +++-- 1 file changed, 7 insertions(+), 14 deletions(-) diff

[PATCH v4 11/14] staging: comedi: daqboard2000: rename trigger control register macros

2016-05-19 Thread Ian Abbott
Rename the macros that define values for the trigger control register to avoid CamelCase, and to make it clearer which register they are associated with. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten --- v2: Shortened prefix from `DAQBOARD2000_` to `DB2K_`. v3, v4: No change

[PATCH v4 01/14] staging: comedi: daqboard2000: remove commented out code

2016-05-19 Thread Ian Abbott
Remove some commented out code. Some of it uses constructs that don't exist in the driver, and probably come from the source code for the MS Windows driver. Signed-off-by: Ian Abbott <abbo...@mev.co.uk> Reviewed-by: H Hartley Sweeten <hswee...@visionengravers.com> --- v2: Ad

[PATCH v4 00/14] staging: comedi: daqboard2000: checkpatch clean-ups

2016-05-19 Thread Ian Abbott
s series of patches to the daqboard2000 driver is mostly to fix the checkpatch.pl warnings. There is one warning remaining about one of the `udelay` calls with a parameter of 10 microseconds, but I decided to leave it alone, as converting it to `usleep_range` could increase firmware loading time.

[PATCH v4 03/14] staging: comedi: daqboard2000: CHECK: spaces preferred around that '*'

2016-05-19 Thread Ian Abbott
Fix checkpatch issues of the form "CHECK: spaces preferred around that '*' (ctx:VxV)". Signed-off-by: Ian Abbott <abbo...@mev.co.uk> Reviewed-by: H Hartley Sweeten <hswee...@visionengravers.com> --- CamelCase issues in this patch will be dealt with by later patches.

[PATCH v4 07/14] staging: comedi: daqboard2000: rename acquisition control register macros

2016-05-19 Thread Ian Abbott
Rename the macros defining values for the acquisition control register to avoid CamelCase, and to make it clearer which register they are associated with. Signed-off-by: Ian Abbott <abbo...@mev.co.uk> Reviewed-by: H Hartley Sweeten <hswee...@visionengravers.com> --- v2: Shortened

[PATCH v4 13/14] staging: comedi: daqboard2000: rename CamelCase functions

2016-05-19 Thread Ian Abbott
Rename functions to avoid CamelCase warnings from checkpatch, and to use namespace associated with the driver. Signed-off-by: Ian Abbott <abbo...@mev.co.uk> Reviewed-by: H Hartley Sweeten <hswee...@visionengravers.com> --- v2: Rebased due to v2 changes in previous patches. v3, v

[PATCH v4 01/14] staging: comedi: daqboard2000: remove commented out code

2016-05-19 Thread Ian Abbott
Remove some commented out code. Some of it uses constructs that don't exist in the driver, and probably come from the source code for the MS Windows driver. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten --- v2: Added comments to offset and gain values that should be read from EEPROM

[PATCH v4 00/14] staging: comedi: daqboard2000: checkpatch clean-ups

2016-05-19 Thread Ian Abbott
s series of patches to the daqboard2000 driver is mostly to fix the checkpatch.pl warnings. There is one warning remaining about one of the `udelay` calls with a parameter of 10 microseconds, but I decided to leave it alone, as converting it to `usleep_range` could increase firmware loading time.

[PATCH v4 03/14] staging: comedi: daqboard2000: CHECK: spaces preferred around that '*'

2016-05-19 Thread Ian Abbott
Fix checkpatch issues of the form "CHECK: spaces preferred around that '*' (ctx:VxV)". Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten --- CamelCase issues in this patch will be dealt with by later patches. v2, v3, v4: No change. --- drivers/staging/comedi/drivers/daqboard

[PATCH v4 07/14] staging: comedi: daqboard2000: rename acquisition control register macros

2016-05-19 Thread Ian Abbott
Rename the macros defining values for the acquisition control register to avoid CamelCase, and to make it clearer which register they are associated with. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten --- v2: Shortened prefix from `DAQBOARD2000_` to `DB2K_`. v3: Rebased due to v3

[PATCH v4 13/14] staging: comedi: daqboard2000: rename CamelCase functions

2016-05-19 Thread Ian Abbott
Rename functions to avoid CamelCase warnings from checkpatch, and to use namespace associated with the driver. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten --- v2: Rebased due to v2 changes in previous patches. v3, v4: No change. --- drivers/staging/comedi/drivers/daqboard2000.c

Re: [PATCH v2 00/14] staging: comedi: daqboard2000: checkpatch clean-ups

2016-05-19 Thread Ian Abbott
On 19/05/16 11:16, Ian Abbott wrote: On 19/05/16 11:02, Ian Abbott wrote: On 18/05/16 13:36, Ian Abbott wrote: Patches 03 and 06 have checkpatch warnings themselves about CamelCase issues, but they are not "new" issues, and are resolved by the later patches in the series. 01) stagi

Re: [PATCH v2 00/14] staging: comedi: daqboard2000: checkpatch clean-ups

2016-05-19 Thread Ian Abbott
On 19/05/16 11:16, Ian Abbott wrote: On 19/05/16 11:02, Ian Abbott wrote: On 18/05/16 13:36, Ian Abbott wrote: Patches 03 and 06 have checkpatch warnings themselves about CamelCase issues, but they are not "new" issues, and are resolved by the later patches in the series. 01) stagi

Re: [PATCH v3 06/14] staging: comedi: daqboard2000: rename register offset macros

2016-05-19 Thread Ian Abbott
On 19/05/16 17:49, Hartley Sweeten wrote: On Thursday, May 19, 2016 2:56 AM, Ian Abbott wrote: Rename the macros defining register offsets to avoid CamelCase, and to use namespace associated with the driver. Signed-off-by: Ian Abbott <abbo...@mev.co.uk> Reviewed-by: H Hartley Sweeten

Re: [PATCH v3 06/14] staging: comedi: daqboard2000: rename register offset macros

2016-05-19 Thread Ian Abbott
On 19/05/16 17:49, Hartley Sweeten wrote: On Thursday, May 19, 2016 2:56 AM, Ian Abbott wrote: Rename the macros defining register offsets to avoid CamelCase, and to use namespace associated with the driver. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten --- Other CamelCase issues

Re: [PATCH v2 00/14] staging: comedi: daqboard2000: checkpatch clean-ups

2016-05-19 Thread Ian Abbott
On 19/05/16 11:02, Ian Abbott wrote: On 18/05/16 13:36, Ian Abbott wrote: Patches 03 and 06 have checkpatch warnings themselves about CamelCase issues, but they are not "new" issues, and are resolved by the later patches in the series. 01) staging: comedi: daqboard2000: remove com

Re: [PATCH v2 00/14] staging: comedi: daqboard2000: checkpatch clean-ups

2016-05-19 Thread Ian Abbott
On 19/05/16 11:02, Ian Abbott wrote: On 18/05/16 13:36, Ian Abbott wrote: Patches 03 and 06 have checkpatch warnings themselves about CamelCase issues, but they are not "new" issues, and are resolved by the later patches in the series. 01) staging: comedi: daqboard2000: remove com

[PATCH v4 12/14] staging: comedi: daqboard2000: rename reference DACs register macros

2016-05-19 Thread Ian Abbott
Rename the macros that define values for the reference DACs register to avoid CamelCase, and to make it clearer which register they are associated with. Add a macro `DB2K_REG_DACS_SET` for the value `0x0080` that triggers setting one of the references. Signed-off-by: Ian Abbott <a

[PATCH v4 12/14] staging: comedi: daqboard2000: rename reference DACs register macros

2016-05-19 Thread Ian Abbott
Rename the macros that define values for the reference DACs register to avoid CamelCase, and to make it clearer which register they are associated with. Add a macro `DB2K_REG_DACS_SET` for the value `0x0080` that triggers setting one of the references. Signed-off-by: Ian Abbott Reviewed-by: H

Re: [PATCH v3 12/14] staging: comedi: daqboard2000: rename reference DACs register macros

2016-05-19 Thread Ian Abbott
On 19/05/16 10:58, Ian Abbott wrote: Rename the macros that define values for the reference DACs register to avoid CamelCase, and to make it clearer which register they are associated with. Add a macro `DAQBOARD2000_REF_DACS_SET` for the value `0x0080` that triggers setting one

Re: [PATCH v3 12/14] staging: comedi: daqboard2000: rename reference DACs register macros

2016-05-19 Thread Ian Abbott
On 19/05/16 10:58, Ian Abbott wrote: Rename the macros that define values for the reference DACs register to avoid CamelCase, and to make it clearer which register they are associated with. Add a macro `DAQBOARD2000_REF_DACS_SET` for the value `0x0080` that triggers setting one

Re: [PATCH v2 00/14] staging: comedi: daqboard2000: checkpatch clean-ups

2016-05-19 Thread Ian Abbott
On 18/05/16 13:36, Ian Abbott wrote: Patches 03 and 06 have checkpatch warnings themselves about CamelCase issues, but they are not "new" issues, and are resolved by the later patches in the series. 01) staging: comedi: daqboard2000: remove commented out code 02) staging: comedi: da

Re: [PATCH v2 00/14] staging: comedi: daqboard2000: checkpatch clean-ups

2016-05-19 Thread Ian Abbott
On 18/05/16 13:36, Ian Abbott wrote: Patches 03 and 06 have checkpatch warnings themselves about CamelCase issues, but they are not "new" issues, and are resolved by the later patches in the series. 01) staging: comedi: daqboard2000: remove commented out code 02) staging: comedi: da

[PATCH v3 12/14] staging: comedi: daqboard2000: rename reference DACs register macros

2016-05-19 Thread Ian Abbott
Rename the macros that define values for the reference DACs register to avoid CamelCase, and to make it clearer which register they are associated with. Add a macro `DAQBOARD2000_REF_DACS_SET` for the value `0x0080` that triggers setting one of the references. Signed-off-by: Ian Abbott <a

[PATCH v3 12/14] staging: comedi: daqboard2000: rename reference DACs register macros

2016-05-19 Thread Ian Abbott
Rename the macros that define values for the reference DACs register to avoid CamelCase, and to make it clearer which register they are associated with. Add a macro `DAQBOARD2000_REF_DACS_SET` for the value `0x0080` that triggers setting one of the references. Signed-off-by: Ian Abbott Reviewed

[PATCH v3 06/14] staging: comedi: daqboard2000: rename register offset macros

2016-05-19 Thread Ian Abbott
Rename the macros defining register offsets to avoid CamelCase, and to use namespace associated with the driver. Signed-off-by: Ian Abbott <abbo...@mev.co.uk> Reviewed-by: H Hartley Sweeten <hswee...@visionengravers.com> --- Other CamelCase issues in this patch will be dealt with by l

[PATCH v3 06/14] staging: comedi: daqboard2000: rename register offset macros

2016-05-19 Thread Ian Abbott
Rename the macros defining register offsets to avoid CamelCase, and to use namespace associated with the driver. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten --- Other CamelCase issues in this patch will be dealt with by later patches in the series. v2: Shortened prefix from

[PATCH v2 01/14] staging: comedi: daqboard2000: remove commented out code

2016-05-18 Thread Ian Abbott
Remove some commented out code. Some of it uses constructs that don't exist in the driver, and probably come from the source code for the MS Windows driver. Signed-off-by: Ian Abbott <abbo...@mev.co.uk> Reviewed-by: H Hartley Sweeten <hswee...@visionengravers.com> --- v2: ad

[PATCH v2 01/14] staging: comedi: daqboard2000: remove commented out code

2016-05-18 Thread Ian Abbott
Remove some commented out code. Some of it uses constructs that don't exist in the driver, and probably come from the source code for the MS Windows driver. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten --- v2: added comments to offset and gain values that should be read from EEPROM

[PATCH v2 00/14] staging: comedi: daqboard2000: checkpatch clean-ups

2016-05-18 Thread Ian Abbott
Patches 03 and 06 have checkpatch warnings themselves about CamelCase issues, but they are not "new" issues, and are resolved by the later patches in the series. 01) staging: comedi: daqboard2000: remove commented out code 02) staging: comedi: daqboard2000: use usual block comment style 03)

[PATCH v2 00/14] staging: comedi: daqboard2000: checkpatch clean-ups

2016-05-18 Thread Ian Abbott
Patches 03 and 06 have checkpatch warnings themselves about CamelCase issues, but they are not "new" issues, and are resolved by the later patches in the series. 01) staging: comedi: daqboard2000: remove commented out code 02) staging: comedi: daqboard2000: use usual block comment style 03)

[PATCH v2 05/14] staging: comedi: daqboard2000: rename serial EEPROM register macros

2016-05-18 Thread Ian Abbott
Rename the macros defining values for the Serial EEPROM Control Register to avoid CamelCase. Signed-off-by: Ian Abbott <abbo...@mev.co.uk> Reviewed-by: H Hartley Sweeten <hswee...@visionengravers.com> --- v2: Shortened prefix from `DAQBOARD2000_` to `DB2K_`. --- drivers/staging/co

[PATCH v2 03/14] staging: comedi: daqboard2000: CHECK: spaces preferred around that '*'

2016-05-18 Thread Ian Abbott
Fix checkpatch issues of the form "CHECK: spaces preferred around that '*' (ctx:VxV)". Signed-off-by: Ian Abbott <abbo...@mev.co.uk> Reviewed-by: H Hartley Sweeten <hswee...@visionengravers.com> --- CamelCase issues in this patch will be dealt with by later patches. v2: N

[PATCH v2 05/14] staging: comedi: daqboard2000: rename serial EEPROM register macros

2016-05-18 Thread Ian Abbott
Rename the macros defining values for the Serial EEPROM Control Register to avoid CamelCase. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten --- v2: Shortened prefix from `DAQBOARD2000_` to `DB2K_`. --- drivers/staging/comedi/drivers/daqboard2000.c | 26 +- 1

[PATCH v2 03/14] staging: comedi: daqboard2000: CHECK: spaces preferred around that '*'

2016-05-18 Thread Ian Abbott
Fix checkpatch issues of the form "CHECK: spaces preferred around that '*' (ctx:VxV)". Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten --- CamelCase issues in this patch will be dealt with by later patches. v2: No change. --- drivers/staging/comedi/drivers/daqboard

[PATCH v2 11/14] staging: comedi: daqboard2000: rename trigger control register macros

2016-05-18 Thread Ian Abbott
Rename the macros that define values for the trigger control register to avoid CamelCase, and to make it clearer which register they are associated with. Signed-off-by: Ian Abbott <abbo...@mev.co.uk> Reviewed-by: H Hartley Sweeten <hswee...@visionengravers.com> --- v2: Shortened

[PATCH v2 11/14] staging: comedi: daqboard2000: rename trigger control register macros

2016-05-18 Thread Ian Abbott
Rename the macros that define values for the trigger control register to avoid CamelCase, and to make it clearer which register they are associated with. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten --- v2: Shortened prefix from `DAQBOARD2000_` to `DB2K_`. --- drivers/staging

[PATCH v2 08/14] staging: comedi: daqboard2000: rename acq status register macros

2016-05-18 Thread Ian Abbott
is write-only. Signed-off-by: Ian Abbott <abbo...@mev.co.uk> Reviewed-by: H Hartley Sweeten <hswee...@visionengravers.com> --- v2: Shortened prefix from `DAQBOARD2000_` to `DB2K_`. --- drivers/staging/comedi/drivers/daqboard2000.c | 39 ++- 1 file changed, 20 inser

[PATCH v2 08/14] staging: comedi: daqboard2000: rename acq status register macros

2016-05-18 Thread Ian Abbott
is write-only. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten --- v2: Shortened prefix from `DAQBOARD2000_` to `DB2K_`. --- drivers/staging/comedi/drivers/daqboard2000.c | 39 ++- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/drivers/staging/comedi

[PATCH v2 09/14] staging: comedi: daqboard2000: redo DAC control register macros

2016-05-18 Thread Ian Abbott
are currently used by the driver. Signed-off-by: Ian Abbott <abbo...@mev.co.uk> Reviewed-by: H Hartley Sweeten <hswee...@visionengravers.com> --- v2: Shortened prefix from `DAQBOARD2000_` to `DB2K_`. --- drivers/staging/comedi/drivers/daqboard2000.c | 21 +++-- 1 fil

[PATCH v2 09/14] staging: comedi: daqboard2000: redo DAC control register macros

2016-05-18 Thread Ian Abbott
are currently used by the driver. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten --- v2: Shortened prefix from `DAQBOARD2000_` to `DB2K_`. --- drivers/staging/comedi/drivers/daqboard2000.c | 21 +++-- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/drivers

[PATCH v2 13/14] staging: comedi: daqboard2000: rename CamelCase functions

2016-05-18 Thread Ian Abbott
Rename functions to avoid CamelCase warnings from checkpatch, and to use namespace associated with the driver. Signed-off-by: Ian Abbott <abbo...@mev.co.uk> Reviewed-by: H Hartley Sweeten <hswee...@visionengravers.com> --- v2: No change, except to some diff context lines from prev

[PATCH v2 14/14] staging: comedi: daqboard2000: prefer usleep_range()

2016-05-18 Thread Ian Abbott
microseconds one is called as each 16-bit word of firmware data is written. Replace it with a fairly tight `usleep_range(10, 20)` to avoid slowing down firmware loading too much. The firmware is fairly short, so this would only slow it down firmware loading by about 20 milliseconds or so. Signed-off-by: Ian

[PATCH v2 13/14] staging: comedi: daqboard2000: rename CamelCase functions

2016-05-18 Thread Ian Abbott
Rename functions to avoid CamelCase warnings from checkpatch, and to use namespace associated with the driver. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten --- v2: No change, except to some diff context lines from previous patches. --- drivers/staging/comedi/drivers/daqboard2000.c

[PATCH v2 14/14] staging: comedi: daqboard2000: prefer usleep_range()

2016-05-18 Thread Ian Abbott
microseconds one is called as each 16-bit word of firmware data is written. Replace it with a fairly tight `usleep_range(10, 20)` to avoid slowing down firmware loading too much. The firmware is fairly short, so this would only slow it down firmware loading by about 20 milliseconds or so. Signed-off-by: Ian

[PATCH v2 10/14] staging: comedi: daqboard2000: redo DAC status macros and fix busy

2016-05-18 Thread Ian Abbott
el, but the existing code only works for channels 0 and 1. The driver only supports two DAC channels at the moment, so the bug is currently harmless, but fix it so we can support four DAC channels on some board models. Signed-off-by: Ian Abbott <abbo...@mev.co.uk> Reviewed-by

[PATCH v2 10/14] staging: comedi: daqboard2000: redo DAC status macros and fix busy

2016-05-18 Thread Ian Abbott
el, but the existing code only works for channels 0 and 1. The driver only supports two DAC channels at the moment, so the bug is currently harmless, but fix it so we can support four DAC channels on some board models. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten --- v2: S

[PATCH v2 02/14] staging: comedi: daqboard2000: use usual block comment style

2016-05-18 Thread Ian Abbott
Reformat one of the block comments to conform to the usual style (it's the only one that doesn't). Signed-off-by: Ian Abbott <abbo...@mev.co.uk> Reviewed-by: H Hartley Sweeten <hswee...@visionengravers.com> --- v2: No change. --- drivers/staging/comedi/drivers/daqboard2000.c | 6 ++

[PATCH v2 06/14] staging: comedi: daqboard2000: rename register offset macros

2016-05-18 Thread Ian Abbott
Rename the macros defining register offsets to avoid CamelCase, and to use namespace associated with the driver. Signed-off-by: Ian Abbott <abbo...@mev.co.uk> Reviewed-by: H Hartley Sweeten <hswee...@visionengravers.com> --- Other CamelCase issues in this patch will be dealt with by l

[PATCH v2 12/14] staging: comedi: daqboard2000: rename reference DACs register macros

2016-05-18 Thread Ian Abbott
Rename the macros that define values for the reference DACs register to avoid CamelCase, and to make it clearer which register they are associated with. Add a macro `DAQBOARD2000_REF_DACS_SET` for the value `0x80` that triggers setting one of the references. Signed-off-by: Ian Abbott <a

[PATCH v2 04/14] staging: comedi: daqboard2000: add blank line after struct declaration

2016-05-18 Thread Ian Abbott
Fix checkpatch issue: "CHECK: Please use a blank line after function/struct/union/enum declarations". Signed-off-by: Ian Abbott <abbo...@mev.co.uk> Reviewed-by: H Hartley Sweeten <hswee...@visionengravers.com> --- v2: Fixed typo in patch description: `black line` --> `

[PATCH v2 02/14] staging: comedi: daqboard2000: use usual block comment style

2016-05-18 Thread Ian Abbott
Reformat one of the block comments to conform to the usual style (it's the only one that doesn't). Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten --- v2: No change. --- drivers/staging/comedi/drivers/daqboard2000.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff

[PATCH v2 06/14] staging: comedi: daqboard2000: rename register offset macros

2016-05-18 Thread Ian Abbott
Rename the macros defining register offsets to avoid CamelCase, and to use namespace associated with the driver. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten --- Other CamelCase issues in this patch will be dealt with by later patches in the series. v2: Shortened prefix from

[PATCH v2 12/14] staging: comedi: daqboard2000: rename reference DACs register macros

2016-05-18 Thread Ian Abbott
Rename the macros that define values for the reference DACs register to avoid CamelCase, and to make it clearer which register they are associated with. Add a macro `DAQBOARD2000_REF_DACS_SET` for the value `0x80` that triggers setting one of the references. Signed-off-by: Ian Abbott Reviewed

[PATCH v2 04/14] staging: comedi: daqboard2000: add blank line after struct declaration

2016-05-18 Thread Ian Abbott
Fix checkpatch issue: "CHECK: Please use a blank line after function/struct/union/enum declarations". Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten --- v2: Fixed typo in patch description: `black line` --> `blank line`. --- drivers/staging/comedi/drivers/daqboard2000.c

[PATCH v2 07/14] staging: comedi: daqboard2000: rename acquisition control register macros

2016-05-18 Thread Ian Abbott
Rename the macros defining values for the acquisition control register to avoid CamelCase, and to make it clearer which register they are associated with. Signed-off-by: Ian Abbott <abbo...@mev.co.uk> Reviewed-by: H Hartley Sweeten <hswee...@visionengravers.com> --- v2: Shortened

[PATCH v2 07/14] staging: comedi: daqboard2000: rename acquisition control register macros

2016-05-18 Thread Ian Abbott
Rename the macros defining values for the acquisition control register to avoid CamelCase, and to make it clearer which register they are associated with. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten --- v2: Shortened prefix from `DAQBOARD2000_` to `DB2K_`. --- drivers/staging

Re: [PATCH 00/14] staging: comedi: daqboard2000: checkpatch clean-ups

2016-05-18 Thread Ian Abbott
On 17/05/16 18:46, Hartley Sweeten wrote: On Tuesday, May 17, 2016 2:53 AM, Ian Abbott wrote: This series of patches to the daqboard2000 driver is mostly to fix the checkpatch.pl warnings. There is one warning remaining about one of the `udelay` calls with a parameter of 10 microseconds, but I

Re: [PATCH 00/14] staging: comedi: daqboard2000: checkpatch clean-ups

2016-05-18 Thread Ian Abbott
On 17/05/16 18:46, Hartley Sweeten wrote: On Tuesday, May 17, 2016 2:53 AM, Ian Abbott wrote: This series of patches to the daqboard2000 driver is mostly to fix the checkpatch.pl warnings. There is one warning remaining about one of the `udelay` calls with a parameter of 10 microseconds, but I

Re: [PATCH 06/14] staging: comedi: daqboard2000: rename register offset macros

2016-05-18 Thread Ian Abbott
On 17/05/16 18:27, Hartley Sweeten wrote: On Tuesday, May 17, 2016 2:53 AM, Ian Abbott wrote: Rename the macros defining register offsets to avoid CamelCase, and to use namespace associated with the driver. Signed-off-by: Ian Abbott <abbo...@mev.co.uk> --- Other CamelCase issues in this

Re: [PATCH 14/14] staging: comedi: daqboard2000: prefer usleep_range()

2016-05-18 Thread Ian Abbott
On 17/05/16 18:42, Hartley Sweeten wrote: On Tuesday, May 17, 2016 2:53 AM, Ian Abbott wrote: The checkpatch.pl warns about two `udelay(x)` calls, one of 100 microseconds, and one of 10 microseconds. The 100 microseconds one is used when waiting for FPGA to become ready to accept firmware

Re: [PATCH 06/14] staging: comedi: daqboard2000: rename register offset macros

2016-05-18 Thread Ian Abbott
On 17/05/16 18:27, Hartley Sweeten wrote: On Tuesday, May 17, 2016 2:53 AM, Ian Abbott wrote: Rename the macros defining register offsets to avoid CamelCase, and to use namespace associated with the driver. Signed-off-by: Ian Abbott --- Other CamelCase issues in this patch will be dealt

Re: [PATCH 14/14] staging: comedi: daqboard2000: prefer usleep_range()

2016-05-18 Thread Ian Abbott
On 17/05/16 18:42, Hartley Sweeten wrote: On Tuesday, May 17, 2016 2:53 AM, Ian Abbott wrote: The checkpatch.pl warns about two `udelay(x)` calls, one of 100 microseconds, and one of 10 microseconds. The 100 microseconds one is used when waiting for FPGA to become ready to accept firmware

Re: [PATCH 05/14] staging: comedi: daqboard2000: rename serial EEPROM register macros

2016-05-18 Thread Ian Abbott
On 17/05/16 18:22, Hartley Sweeten wrote: On Tuesday, May 17, 2016 2:53 AM, Ian Abbott wrote: Rename the macros defining values for the Serial EEPROM Control Register to avoid CamelCase. Signed-off-by: Ian Abbott <abbo...@mev.co.uk> --- drivers/staging/comedi/drivers/daqboard2000.

Re: [PATCH 05/14] staging: comedi: daqboard2000: rename serial EEPROM register macros

2016-05-18 Thread Ian Abbott
On 17/05/16 18:22, Hartley Sweeten wrote: On Tuesday, May 17, 2016 2:53 AM, Ian Abbott wrote: Rename the macros defining values for the Serial EEPROM Control Register to avoid CamelCase. Signed-off-by: Ian Abbott --- drivers/staging/comedi/drivers/daqboard2000.c | 26

Re: [PATCH 01/14] staging: comedi: daqboard2000: remove commented out code

2016-05-18 Thread Ian Abbott
On 17/05/16 18:14, Hartley Sweeten wrote: On Tuesday, May 17, 2016 2:53 AM, Ian Abbott wrote: Remove some commented out code. Some of it uses constructs that don't exist in the driver, and probably come from the source code for the MS Windows driver. Signed-off-by: Ian Abbott <a

Re: [PATCH 01/14] staging: comedi: daqboard2000: remove commented out code

2016-05-18 Thread Ian Abbott
On 17/05/16 18:14, Hartley Sweeten wrote: On Tuesday, May 17, 2016 2:53 AM, Ian Abbott wrote: Remove some commented out code. Some of it uses constructs that don't exist in the driver, and probably come from the source code for the MS Windows driver. Signed-off-by: Ian Abbott --- drivers

Re: [PATCH 1/1] Staging: comedi: fix CHECK: Prefer using the BIT macro issues in pcmmio.c

2016-05-18 Thread Ian Abbott
<ravishankark...@gmail.com> --- drivers/staging/comedi/drivers/pcmmio.c | 40 - 1 file changed, 20 insertions(+), 20 deletions(-) Thanks! Reviewed-by: Ian Abbott <abbo...@mev.co.uk> -- -=( Ian Abbott @ MEV Ltd.E-mail: <abbo...@mev.co.uk>

Re: [PATCH 1/1] Staging: comedi: fix CHECK: Prefer using the BIT macro issues in pcmmio.c

2016-05-18 Thread Ian Abbott
On 18/05/16 05:57, Ravishankar Karkala Mallikarjunayya wrote: This patch Replace all occurences of (1< --- drivers/staging/comedi/drivers/pcmmio.c | 40 - 1 file changed, 20 insertions(+), 20 deletions(-) Thanks! Reviewed-by: Ian Abbott -- -=( Ian Abb

Re: [PATCH 2/2] Staging: comedi: fix type issue in s626.c

2016-05-18 Thread Ian Abbott
At this point, it's probably best if you start again, and repost an updated, and self-consistent, version 2 of your original series of 4 patches, tagged as "[PATCH v2 1/4]" etc. At the moment, everything is too messed up. -- -=( Ian Abbott @ MEV Ltd.

Re: [PATCH 2/2] Staging: comedi: fix type issue in s626.c

2016-05-18 Thread Ian Abbott
est if you start again, and repost an updated, and self-consistent, version 2 of your original series of 4 patches, tagged as "[PATCH v2 1/4]" etc. At the moment, everything is too messed up. -- -=( Ian Abbott @ MEV Ltd.E-mail: )=- -=( Web: http://www.mev.co.uk/ )=-

Re: [PATCH 1/2] Staging: comedi: Fix WARNING issue in s626.c

2016-05-18 Thread Ian Abbott
*/ }; There's something weird going on above. In addition to reformatting the comments, it's also replacing the type descriptors of some of the members (using `u32` instead of `uint32_t` etc.). It looks like bits of the patches from your earlier series have crept into this one.

Re: [PATCH 1/2] Staging: comedi: Fix WARNING issue in s626.c

2016-05-18 Thread Ian Abbott
thing weird going on above. In addition to reformatting the comments, it's also replacing the type descriptors of some of the members (using `u32` instead of `uint32_t` etc.). It looks like bits of the patches from your earlier series have crept into this one. -- -=( Ian Abbott @ MEV Ltd.E-mail: )=

Re: [PATCH] Staging: comedi: quatech_daqp_cs.c: Fix a unsigned warning issue

2016-05-18 Thread Ian Abbott
nt val = data[i]; int ret; /* D/A transfer rate is about 8ms */ Thanks! Reviewed-by: Ian Abbott <abbo...@mev.co.uk> -- -=( Ian Abbott @ MEV Ltd.E-mail: <abbo...@mev.co.uk> )=- -=( Web: http://www.mev.co.uk/ )=-

Re: [PATCH] Staging: comedi: quatech_daqp_cs.c: Fix a unsigned warning issue

2016-05-18 Thread Ian Abbott
int ret; /* D/A transfer rate is about 8ms */ Thanks! Reviewed-by: Ian Abbott -- -=( Ian Abbott @ MEV Ltd.E-mail: )=- -=( Web: http://www.mev.co.uk/ )=-

Re: [PATCH 1/1] Staging: comedi: Fix WARNING issue in dt2801.c

2016-05-18 Thread Ian Abbott
ark...@gmail.com> --- drivers/staging/comedi/drivers/dt2801.c | 95 + 1 file changed, 50 insertions(+), 45 deletions(-) Thanks! Reviewed-by: Ian Abbott <abbo...@mev.co.uk> -- -=( Ian Abbott @ MEV Ltd.E-mail: <ab

Re: [PATCH 1/1] Staging: comedi: Fix WARNING issue in dt2801.c

2016-05-18 Thread Ian Abbott
/staging/comedi/drivers/dt2801.c | 95 + 1 file changed, 50 insertions(+), 45 deletions(-) Thanks! Reviewed-by: Ian Abbott -- -=( Ian Abbott @ MEV Ltd.E-mail: )=- -=( Web: http://www.mev.co.uk/ )=-

[PATCH 01/14] staging: comedi: daqboard2000: remove commented out code

2016-05-17 Thread Ian Abbott
Remove some commented out code. Some of it uses constructs that don't exist in the driver, and probably come from the source code for the MS Windows driver. Signed-off-by: Ian Abbott <abbo...@mev.co.uk> --- drivers/staging/comedi/drivers/daqboard2000.c | 6 -- 1 file changed, 6 del

<    1   2   3   4   5   6   7   8   9   10   >