[PATCH 3/9] staging: comedi: ni_pcimio: fix block comments

2016-06-20 Thread H Hartley Sweeten
Fix the checkpatch.pl issues: WARNING: Block comments use * on subsequent lines Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_pcimio.c | 216 ++--- 1 file changed, 106 insertions(+), 110 deletions(-) diff

[PATCH 9/9] staging: comedi: ni_at_a2150: fix block comments

2016-06-20 Thread H Hartley Sweeten
Fix the checkpatch.pl issues: WARNING: Block comments use * on subsequent lines WARNING: Block comments use a trailing */ on a separate line Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_at_a2150.c | 103

[PATCH 6/9] staging: comedi: ni_atmio: fix block comments

2016-06-20 Thread H Hartley Sweeten
Fix the checkpatch.pl issues: WARNING: Block comments use * on subsequent lines Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_atmio.c | 165 ++ 1 file changed, 78 insertions(+), 87 deletions(-) diff

[PATCH 7/9] staging: comedi: ni_atmio16d: fix block comments

2016-06-20 Thread H Hartley Sweeten
Fix the checkpatch.pl issues: WARNING: Block comments use * on subsequent lines Move the configuration options comment into the comedi driver comment block. That's were they typically are listed. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/st

[PATCH 5/9] staging: comedi: ni_daq_dio24: fix block comments

2016-06-20 Thread H Hartley Sweeten
Fix the checkpatch.pl issues: WARNING: Block comments use * on subsequent lines Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_daq_dio24.c | 58 +-- 1 file changed, 29 insertions(+), 29 deletions(-) diff

[PATCH 2/9] staging: comedi: ni_670x: fix block comment issues

2016-06-20 Thread H Hartley Sweeten
Fix the checkpatch.pl issues: WARNING: Block comments use * on subsequent lines Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_670x.c | 62 +++- 1 file changed, 28 insertions(+), 34 deletions(-) diff

[PATCH 8/9] staging: comedi: ni_pcidio: fix block comments

2016-06-20 Thread H Hartley Sweeten
Fix the checkpatch.pl issues: WARNING: Block comments use * on subsequent lines WARNING: Block comments use a trailing */ on a separate line Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_pcidio.c | 95

[PATCH 1/9] staging: comedi: das08_cs: fix block comments

2016-06-20 Thread H Hartley Sweeten
Fix the checkpatch.pl issue: WARNING: Block comments use * on subsequent lines Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das08_cs.c | 73 +++ 1 file changed, 36 insertions(+), 37 deletions(-) diff

[PATCH 4/9] staging: comedi: ni_mio_cs: fix block comments

2016-06-20 Thread H Hartley Sweeten
Fix the checkpatch.pl issues: WARNING: Block comments use * on subsequent lines Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_cs.c | 67 +++--- 1 file changed, 33 insertions(+), 34 deletions(-) diff

[PATCH 0/9] staging: comedi: fix comedi driver comment blocks

2016-06-20 Thread H Hartley Sweeten
Fix the checkpatch.pl issues with the comment blocks that are used to automatically generate documentation in Comedi and Comedilib. H Hartley Sweeten (9): staging: comedi: das08_cs: fix block comments staging: comedi: ni_670x: fix block comment issues staging: comedi: ni_pcimio: fix block

[PATCH 2/2] staging: comedi: addi_apci_3501: add a comedi driver comment block

2016-06-20 Thread H Hartley Sweeten
This comment block is used to automatically generate documentation in Comedi and Comedilib. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi_apci_3501.c | 27 + 1 file changed, 27 insertions(+) diff --git a

[PATCH 1/2] staging: comedi: addi_apci_3501: remove timer/counter subdevice support

2016-06-20 Thread H Hartley Sweeten
we can add support back later. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- .../comedi/drivers/addi-data/hwdrv_apci3501.c | 141 - drivers/staging/comedi/drivers/addi_apci_3501.c| 58 + 2 files changed, 2 insertions(+), 197

[PATCH 0/2] staging: comedi: addi_apci_3501: cleanup driver

2016-06-20 Thread H Hartley Sweeten
The timer/counter subdevice in this driver is broken and it really doesn't add much use if it did work. Remove the timer/counter support and add the missing comedi driver comment block. H Hartley Sweeten (2): staging: comedi: addi_apci_3501: remove timer/counter subdevice support st

[PATCH v2 4/6] staging: comedi: addi_apci_1564: rewrite the timer subdevice support

2016-06-08 Thread H Hartley Sweeten
l) datasheet I have from ADDI-DATA. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- .../comedi/drivers/addi-data/hwdrv_apci1564.c | 91 --- drivers/staging/comedi/drivers/addi_apci_1564.c| 129 + 2 files changed, 129 ins

[PATCH v2 1/6] staging: comedi: addi_apci_1564: clarify change-of-state interrupt support

2016-06-08 Thread H Hartley Sweeten
instead when these subdevices are fixed. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi_apci_1564.c | 41 + 1 file changed, 29 insertions(+), 12 deletions(-) diff --git a/drivers/staging/comedi/drivers/addi_apci_

[PATCH v2 6/6] staging: comedi: addi_apci_1564: remove unnecessary wdog register defines

2016-06-08 Thread H Hartley Sweeten
The watchdog subdevice is supported using the addi_watchdog module and it uses the register defines from addi_tcw.h. The only register define needed it the iobase offset to the register block. Remove the unnecessary defines and rename the iobase define. Signed-off-by: H Hartley Sweeten Cc: Ian

[PATCH v2 2/6] staging: comedi: addi_apci_1564: use comedi_handle_event() for timer

2016-06-08 Thread H Hartley Sweeten
The timer subdevice can generate an interrupt. Currently send_sig() is used to let the task know when the interrupt occurs. Use the dev->read_subdev and comedi_handle_events() instead. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/driv

[PATCH v2 0/6] staging: comedi: addi_apci_1564: cleanup driver

2016-06-08 Thread H Hartley Sweeten
The new code might not work _correctly_ but it at least makes the subdevices work with the comedi API so that additional testing can be done. v2: mask the change-of-state input status in patch 1/6 at the request of Ian Abbott H Hartley Sweeten (6): staging: comedi: addi_apci_1564: clar

[PATCH v2 5/6] staging: comedi: addi_apci_1564: rewrite the counter subdevice support

2016-06-08 Thread H Hartley Sweeten
Like the timer, the support functions for the counter subdevice are broken. Rewrite the code to follow the comedi API. The new implementation is based on the (minimal) datasheet I have from ADDI-DATA. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- .../comedi

[PATCH v2 3/6] staging: comedi: addi_apci_1564: use comedi_handle_event() for counters

2016-06-08 Thread H Hartley Sweeten
of . Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- .../staging/comedi/drivers/addi-data/hwdrv_apci1564.c| 4 drivers/staging/comedi/drivers/addi_apci_1564.c | 16 ++-- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/dr

[PATCH 4/6] staging: comedi: addi_apci_1564: rewrite the timer subdevice support

2016-06-02 Thread H Hartley Sweeten
l) datasheet I have from ADDI-DATA. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- .../comedi/drivers/addi-data/hwdrv_apci1564.c | 91 --- drivers/staging/comedi/drivers/addi_apci_1564.c| 129 + 2 files changed, 129 ins

[PATCH 3/6] staging: comedi: addi_apci_1564: use comedi_handle_event() for counters

2016-06-02 Thread H Hartley Sweeten
of . Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- .../staging/comedi/drivers/addi-data/hwdrv_apci1564.c| 4 drivers/staging/comedi/drivers/addi_apci_1564.c | 16 ++-- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/dr

[PATCH 5/6] staging: comedi: addi_apci_1564: rewrite the counter subdevice support

2016-06-02 Thread H Hartley Sweeten
Like the timer, the support functions for the counter subdevice are broken. Rewrite the code to follow the comedi API. The new implementation is based on the (minimal) datasheet I have from ADDI-DATA. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- .../comedi

[PATCH 6/6] staging: comedi: addi_apci_1564: remove unnecessary wdog register defines

2016-06-02 Thread H Hartley Sweeten
The watchdog subdevice is supported using the addi_watchdog module and it uses the register defines from addi_tcw.h. The only register define needed it the iobase offset to the register block. Remove the unnecessary defines and rename the iobase define. Signed-off-by: H Hartley Sweeten Cc: Ian

[PATCH 1/6] staging: comedi: addi_apci_1564: clarify change-of-state interrupt support

2016-06-02 Thread H Hartley Sweeten
instead when these subdevices are fixed. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi_apci_1564.c | 37 + 1 file changed, 26 insertions(+), 11 deletions(-) diff --git a/drivers/staging/comedi/drivers/addi_apci_

[PATCH 0/6] staging: comedi: addi_apci_1564: cleanup driver

2016-06-02 Thread H Hartley Sweeten
The new code might not work _correctly_ but it at least makes the subdevices work with the comedi API so that additional testing can be done. H Hartley Sweeten (6): staging: comedi: addi_apci_1564: clarify change-of-state interrupt support staging: comedi: addi_apci_1564: use comedi_handle_ev

[PATCH 2/6] staging: comedi: addi_apci_1564: use comedi_handle_event() for timer

2016-06-02 Thread H Hartley Sweeten
The timer subdevice can generate an interrupt. Currently send_sig() is used to let the task know when the interrupt occurs. Use the dev->read_subdev and comedi_handle_events() instead. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/driv

[PATCH] staging: comedi: dt2811: add async command support for AI subdevice

2016-05-04 Thread H Hartley Sweeten
input to start the command if the external clock is being used for conversions. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- This is a follow up to: [PATCH v2 00/19] staging: comedi: dt2811: cleanup driver According to Data Translation's website, this ISA board _

[PATCH v2 08/19] staging: comedi: dt2811: tidy up Digital Input/Output register defines

2016-05-04 Thread H Hartley Sweeten
The digital input and outputs are separate ports even though they share the same register offset. For aesthetics, define then separately and remove the redundant information in the comment. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi

[PATCH v2 05/19] staging: comedi: dt2811: tidy up A/D Gain/Channel register defines

2016-05-04 Thread H Hartley Sweeten
Cleanup the defines for this register and its bits and remove the redundant information in the comment. Make the (*insn_read) use the range to set the gain bits correctly. Currently the gain is always set to 1. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman

[PATCH v2 11/19] staging: comedi: dt2811: simplify analog output range options

2016-05-04 Thread H Hartley Sweeten
elect the correct range when converting values. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 69 + 1 file changed, 26 insertions(+), 43 deletions(-) diff --git a/drivers/staging/comedi/dr

[PATCH v2 16/19] staging: comedi: dt2811: tidy up analog input subdevice init

2016-05-04 Thread H Hartley Sweeten
Add some whitespace to the analog output subdevice initialization and rename the (*insn_read) function. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions

[PATCH v2 01/19] staging: comedi: dt2811: tidy up copyright and comedi comments

2016-05-04 Thread H Hartley Sweeten
Fix the checkpatch.pl issue: WARNING: Block comments use * on subsequent lines Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 78 - 1 file changed, 39 insertions(+), 39 deletions(-) diff

[PATCH v2 17/19] staging: comedi: dt2811: remove unused define

2016-05-04 Thread H Hartley Sweeten
This define is not used by the driver. Remove it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/dt2811.c b/drivers/staging/comedi/drivers

[PATCH v2 18/19] staging: comedi: dt2811: rename 'boardtypes'

2016-05-04 Thread H Hartley Sweeten
Rename this array so it has namespace associated with the driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/comedi/drivers/dt2811

[PATCH v2 10/19] staging: comedi: dt2811: tidy up the digital subdevices

2016-05-04 Thread H Hartley Sweeten
Add some whitespace to the digital input and output subdevice initialization. Reorder the initialization a bit. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 34 - 1 file changed, 17

[PATCH v2 04/19] staging: comedi: dt2811: tidy up A/D Control/Status register defines

2016-05-04 Thread H Hartley Sweeten
Cleanup the defines for this register and its bits and remove the redundant information in the comment. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 59 - 1 file changed, 21 insertions

[PATCH v2 19/19] staging: comedi: dt2811: update the MODULE_DESCRIPTION

2016-05-04 Thread H Hartley Sweeten
Change the MODULE_DESCRIPTION to something more useful than the generic "Comedi low-level driver". Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 15/19] staging: comedi: dt2811: simplify analog input range options

2016-05-04 Thread H Hartley Sweeten
-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 143 ++-- 1 file changed, 61 insertions(+), 82 deletions(-) diff --git a/drivers/staging/comedi/drivers/dt2811.c b/drivers/staging/comedi/drivers/dt2811.c

[PATCH v2 14/19] staging: comedi: dt2811: remove private data

2016-05-04 Thread H Hartley Sweeten
The remaining members of the private data are not used by the driver. Remove it and the allocation. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/staging

[PATCH v2 12/19] staging: comedi: dt2811: tidy up analog output subdevice init

2016-05-04 Thread H Hartley Sweeten
Add some whitespace to the analog output subdevice initialization. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/comedi

[PATCH v2 00/19] staging: comedi: dt2811: cleanup driver

2016-05-04 Thread H Hartley Sweeten
Fix all the checkpatch.pl isses and tidy up the driver. v2: sort the analog input range table to match the old configuration option scheme, as requested by Ian Abbott, in patch 15/19. H Hartley Sweeten (19): staging: comedi: dt2811: tidy up copyright and comedi comments staging: comedi

[PATCH v2 09/19] staging: comedi: dt2811: tidy up Timer/Counter register defines

2016-05-04 Thread H Hartley Sweeten
This register currently is not being used. For aesthetics, cleanup the define and the comment about the frequency control. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 45 + 1 file changed

[PATCH v2 07/19] staging: comedi: dt2811: tidy up D/A Data register defines

2016-05-04 Thread H Hartley Sweeten
Cleanup the defines for these registers and and remove the redundant information in the comment. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff

[PATCH v2 13/19] staging: comedi: dt2811: simplify A/D reference configuration

2016-05-04 Thread H Hartley Sweeten
-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 32 1 file changed, 8 insertions(+), 24 deletions(-) diff --git a/drivers/staging/comedi/drivers/dt2811.c b/drivers/staging/comedi/drivers/dt2811.c index

[PATCH v2 02/19] staging: comedi: dt2811: remove redundant block comment

2016-05-04 Thread H Hartley Sweeten
The configuration options are listed in the comedi comment block. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 20 1 file changed, 20 deletions(-) diff --git a/drivers/staging/comedi/drivers/dt2811.c

[PATCH v2 03/19] staging: comedi: dt2811: remove disabled code

2016-05-04 Thread H Hartley Sweeten
There is no reason the (*attach) should be trying to read an analog input sample. Remove this disabled code. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff

[PATCH v2 06/19] staging: comedi: dt2811: tidy up A/D Data register defines

2016-05-04 Thread H Hartley Sweeten
Cleanup the defines for these registers and and remove the redundant information in the comment. Tidy up the reading of the data registers in the (*insn_read). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 17

[PATCH 05/19] staging: comedi: dt2811: tidy up A/D Gain/Channel register defines

2016-05-03 Thread H Hartley Sweeten
Cleanup the defines for this register and its bits and remove the redundant information in the comment. Make the (*insn_read) use the range to set the gain bits correctly. Currently the gain is always set to 1. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman

[PATCH 19/19] staging: comedi: dt2811: update the MODULE_DESCRIPTION

2016-05-03 Thread H Hartley Sweeten
Change the MODULE_DESCRIPTION to something more useful than the generic "Comedi low-level driver". Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 17/19] staging: comedi: dt2811: remove unused define

2016-05-03 Thread H Hartley Sweeten
This define is not used by the driver. Remove it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/dt2811.c b/drivers/staging/comedi/drivers

[PATCH 00/19] staging: comedi: dt2811: cleanup driver

2016-05-03 Thread H Hartley Sweeten
Fix all the checkpatch.pl issues and tidy up the driver. H Hartley Sweeten (19): staging: comedi: dt2811: tidy up copyright and comedi comments staging: comedi: dt2811: remove redundant block comment staging: comedi: dt2811: remove disabled code staging: comedi: dt2811: tidy up A/D

[PATCH 18/19] staging: comedi: dt2811: rename 'boardtypes'

2016-05-03 Thread H Hartley Sweeten
Rename this array so it has namespace associated with the driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/comedi/drivers/dt2811

[PATCH 04/19] staging: comedi: dt2811: tidy up A/D Control/Status register defines

2016-05-03 Thread H Hartley Sweeten
Cleanup the defines for this register and its bits and remove the redundant information in the comment. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 59 - 1 file changed, 21 insertions

[PATCH 11/19] staging: comedi: dt2811: simplify analog output range options

2016-05-03 Thread H Hartley Sweeten
elect the correct range when converting values. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 69 + 1 file changed, 26 insertions(+), 43 deletions(-) diff --git a/drivers/staging/comedi/dr

[PATCH 14/19] staging: comedi: dt2811: remove private data

2016-05-03 Thread H Hartley Sweeten
The remaining members of the private data are not used by the driver. Remove it and the allocation. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/staging

[PATCH 12/19] staging: comedi: dt2811: tidy up analog output subdevice init

2016-05-03 Thread H Hartley Sweeten
Add some whitespace to the analog output subdevice initialization. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/comedi

[PATCH 10/19] staging: comedi: dt2811: tidy up the digital subdevices

2016-05-03 Thread H Hartley Sweeten
Add some whitespace to the digital input and output subdevice initialization. Reorder the initialization a bit. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 34 - 1 file changed, 17

[PATCH 13/19] staging: comedi: dt2811: simplify A/D reference configuration

2016-05-03 Thread H Hartley Sweeten
-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 32 1 file changed, 8 insertions(+), 24 deletions(-) diff --git a/drivers/staging/comedi/drivers/dt2811.c b/drivers/staging/comedi/drivers/dt2811.c index

[PATCH 06/19] staging: comedi: dt2811: tidy up A/D Data register defines

2016-05-03 Thread H Hartley Sweeten
Cleanup the defines for these registers and and remove the redundant information in the comment. Tidy up the reading of the data registers in the (*insn_read). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 17

[PATCH 09/19] staging: comedi: dt2811: tidy up Timer/Counter register defines

2016-05-03 Thread H Hartley Sweeten
This register currently is not being used. For aesthetics, cleanup the define and the comment about the frequency control. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 45 + 1 file changed

[PATCH 16/19] staging: comedi: dt2811: tidy up analog input subdevice init

2016-05-03 Thread H Hartley Sweeten
Add some whitespace to the analog output subdevice initialization and rename the (*insn_read) function. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions

[PATCH 01/19] staging: comedi: dt2811: tidy up copyright and comedi comments

2016-05-03 Thread H Hartley Sweeten
Fix the checkpatch.pl issue: WARNING: Block comments use * on subsequent lines Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 78 - 1 file changed, 39 insertions(+), 39 deletions(-) diff

[PATCH 02/19] staging: comedi: dt2811: remove redundant block comment

2016-05-03 Thread H Hartley Sweeten
The configuration options are listed in the comedi comment block. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 20 1 file changed, 20 deletions(-) diff --git a/drivers/staging/comedi/drivers/dt2811.c

[PATCH 07/19] staging: comedi: dt2811: tidy up D/A Data register defines

2016-05-03 Thread H Hartley Sweeten
Cleanup the defines for these registers and and remove the redundant information in the comment. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff

[PATCH 15/19] staging: comedi: dt2811: simplify analog input range options

2016-05-03 Thread H Hartley Sweeten
-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 143 ++-- 1 file changed, 61 insertions(+), 82 deletions(-) diff --git a/drivers/staging/comedi/drivers/dt2811.c b/drivers/staging/comedi/drivers/dt2811.c

[PATCH 03/19] staging: comedi: dt2811: remove disabled code

2016-05-03 Thread H Hartley Sweeten
There is no reason the (*attach) should be trying to read an analog input sample. Remove this disabled code. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff

[PATCH 08/19] staging: comedi: dt2811: tidy up Digital Input/Output register defines

2016-05-03 Thread H Hartley Sweeten
The digital input and outputs are separate ports even though they share the same register offset. For aesthetics, define then separately and remove the redundant information in the comment. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi

[PATCH 19/25] staging: comedi: das16m1: tidy up misc. defines

2016-05-03 Thread H Hartley Sweeten
For aesthetics, move these after the register map defines and rename the FIFO_SIZE define. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das16m1.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a

[PATCH 00/25] staging: comedi: das16m1: cleanup driver

2016-05-03 Thread H Hartley Sweeten
Fixe all the checkpatch.pl issues and tidy up the driver. H Hartley Sweeten (25): staging: comedi: das16m1: tidy up copyright and comedi comments staging: comedi: das16m1: tidy up comments in das16m1_handler() staging: comedi: das16m1: tidy up comment in das16m1_cmd_exec() staging: comedi

[PATCH 15/25] staging: comedi: das16m1: tidy up digital input subdevice init

2016-05-03 Thread H Hartley Sweeten
Add some whitespace to the subdevice init and rename the support function. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das16m1.c | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/drivers

[PATCH 09/25] staging: comedi: das16m1: tidy up clear interrupt register define

2016-05-03 Thread H Hartley Sweeten
Rename this define and use a consistent comment throughout the code. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das16m1.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/staging/comedi

[PATCH 17/25] staging: comedi: das16m1: tidy up digital output subdevice init

2016-05-03 Thread H Hartley Sweeten
Add some whitespace to the subdevice init and rename the support function. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das16m1.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers

[PATCH 21/25] staging: comedi: das16m1: init local variables when declared

2016-05-03 Thread H Hartley Sweeten
For aesthetics, init the comedi_subdevice, comedi_async, and comedi_cmd pointers when the local variables are declared. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das16m1.c | 10 +++--- 1 file changed, 3 insertions(+), 7

[PATCH 03/25] staging: comedi: das16m1: tidy up comment in das16m1_cmd_exec()

2016-05-03 Thread H Hartley Sweeten
Fix the checkpatch.pl issue: WARNING: Block comments use a trailing */ on a separate line Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das16m1.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH 02/25] staging: comedi: das16m1: tidy up comments in das16m1_handler()

2016-05-03 Thread H Hartley Sweeten
Fix the checkpatch.pl issue: WARNING: Block comments use a trailing */ on a separate line Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das16m1.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a

[PATCH 22/25] staging: comedi: das16m1: minor cleanup to das16m1_ai_insn_read()

2016-05-03 Thread H Hartley Sweeten
The (*insn_read) functions return the number of data values read. The 'n' value is correct but for clarity change the return to 'insn->n'. For aesthetics, change the 'n' loop variable name to 'i'. That's more common in comedi drivers. Signed-off

[PATCH 11/25] staging: comedi: das16m1: tidy up interrupt control register defines

2016-05-03 Thread H Hartley Sweeten
Rename these defines and use the BIT macro to define the bits. Define some macros for the multi-bit fields in the register. Rename the private data 'control_state' member to better match the register name. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --

[PATCH 06/25] staging: comedi: das16m1: tidy up analog input data register defines

2016-05-03 Thread H Hartley Sweeten
Convert the inline helper munge_sample() into a macro and rename the defines for the analog input data register/bits. Use the register define when accessing this register instead of just dev->iobase. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/stag

[PATCH 23/25] staging: comedi: das16m1: convert munge_sample_array() into a subdevice (*munge)

2016-05-03 Thread H Hartley Sweeten
For aesthetics, convert this function into a subdevice (*munge) function and let the comedi core handle the munging. Add a comment about why the data needs to be munged. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das16m1.c | 16

[PATCH 05/25] staging: comedi: das16m1: tidy up register map comment

2016-05-03 Thread H Hartley Sweeten
The comment about all the registers is not neccessary. The defines give the same information. This also fixes a checkpatch.pl issue: WARNING: Block comments use * on subsequent lines Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers

[PATCH 13/25] staging: comedi: das16m1: introduce das16m1_ai_set_queue()

2016-05-03 Thread H Hartley Sweeten
Introduce a helper function to handle writing the channel/gain data to the queue for single channel reads, (*insn_read), and multi-channel scans, (*do_cmd). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das16m1.c | 33

[PATCH 12/25] staging: comedi: das16m1: tidy up queue register defines

2016-05-03 Thread H Hartley Sweeten
Rename these defines. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das16m1.c | 25 - 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/drivers/staging/comedi/drivers/das16m1.c b/drivers/staging

[PATCH 10/25] staging: comedi: das16m1: remove unnecessary ai 'cancel' operations

2016-05-03 Thread H Hartley Sweeten
t attaches. There is no need for the (*insn_read) or (*do_cmd) to duplicate the cancel. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das16m1.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/staging/comedi/drivers

[PATCH 14/25] staging: comedi: das16m1: tidy up analog input subdevice init

2016-05-03 Thread H Hartley Sweeten
Add some whitespace to the subdevice init and rename the support functions. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das16m1.c | 48 +--- 1 file changed, 26 insertions(+), 22 deletions(-) diff --git

[PATCH 20/25] staging: comedi: das16m1: remove an unnecessery comment

2016-05-03 Thread H Hartley Sweeten
The configuration options are listed in the comedi comment block. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das16m1.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/staging/comedi/drivers/das16m1.c b/drivers

[PATCH 16/25] staging: comedi: das16m1: tidy up das16m1_di_insn_bits()

2016-05-03 Thread H Hartley Sweeten
The (*insn_bits) for a digital input subdevice only needs to return the state of the inputs in data[1]. Remove the cruft. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das16m1.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions

[PATCH 01/25] staging: comedi: das16m1: tidy up copyright and comedi comments

2016-05-03 Thread H Hartley Sweeten
Fix the checkpatch.pl issue: WARNING: Block comments use * on subsequent lines Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das16m1.c | 98 +++- 1 file changed, 47 insertions(+), 51 deletions(-) diff

[PATCH 25/25] staging: comedi: das16m1: update the MODULE_DESCRIPTION

2016-05-03 Thread H Hartley Sweeten
Change the MODULE_DESCRIPTION to something more usefull than the generic "Comedi low-level driver". Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das16m1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 24/25] staging: comedi: das16m1: rename struct das16m1_private_struct

2016-05-03 Thread H Hartley Sweeten
For aesthetics, remove the redundant '_struct' suffix. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das16m1.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/comedi/drivers

[PATCH 04/25] staging: comedi: das16m1: remove unnecessary private data comments

2016-05-03 Thread H Hartley Sweeten
These comments are just extra cruft. Removing them also fixes a checkpatch.pl issue: WARNING: Block comments use a trailing */ on a separate line Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das16m1.c | 5 + 1 file changed, 1

[PATCH 18/25] staging: comedi: das16m1: tidy up 8254/8255 register defines

2016-05-03 Thread H Hartley Sweeten
For aesthetics, rename these defines. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das16m1.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/staging/comedi/drivers/das16m1.c b

[PATCH 07/25] staging: comedi: das16m1: tidy up control/status register defines

2016-05-03 Thread H Hartley Sweeten
Rename the defines for the control/status register/bits. Use the BIT macro to define the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das16m1.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions

[PATCH 08/25] staging: comedi: das16m1: tidy up digital input/output register defines

2016-05-03 Thread H Hartley Sweeten
. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das16m1.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/staging/comedi/drivers/das16m1.c b/drivers/staging/comedi/drivers/das16m1.c index 49eb829

[PATCH 12/19] staging: comedi: mite: do mite_steup() as part of mite_attach()

2016-05-02 Thread H Hartley Sweeten
aesthetics, move mite_setup2(), and rename it to mite_setup(), so it's near mite_attach(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/mite.c | 183 +++-- drivers/staging/comedi/drivers/mite.h

[PATCH 02/19] staging: comedi: mite: rename 'struct mite_dma_descriptor'

2016-05-02 Thread H Hartley Sweeten
Rename this struct to 'mite_dma_desc' to help shorten the long lines. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/mite.c | 8 drivers/staging/comedi/drivers/mite.h | 4 ++-- 2 files changed, 6 insertions(+), 6

[PATCH 17/19] staging: comedi: mite: move the mite dma arm/disarm/reset functions

2016-05-02 Thread H Hartley Sweeten
For aesthetics, move these functions to a more logical spot in the code and add docbook comments for the exported functions. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/mite.c | 76 +++ drivers

[PATCH 03/19] staging: comedi: mite: rename 'struct mite_dma_descriptor_ring'

2016-05-02 Thread H Hartley Sweeten
Rename this name to 'mite_ring' to help shorten the long lines. In the ni_660x driver, also shorten the private data member 'mite_rings' to simply 'ring'. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comed

[PATCH 13/19] staging: comedi: mite: tidy up kernel messages in mite_steup()

2016-05-02 Thread H Hartley Sweeten
to dev_dbg(). These also might be useful when debugging. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/mite.c | 50 +++ 1 file changed, 21 insertions(+), 29 deletions(-) diff --git a/drivers/staging/c

[PATCH 00/19] staging: comedi: mite: final cleanup

2016-05-02 Thread H Hartley Sweeten
d the functions in the driver to make it easier to follow and adds docbook comments for all the exported functions. H Hartley Sweeten (19): staging: comedi: mite: rename 'struct mite_struct' staging: comedi: mite: rename 'struct mite_dma_descriptor' st

  1   2   3   4   5   6   7   8   9   10   >