RE: [PATCH 2/3] staging: comedi: cb_pcidas64: Use insn->n in EEPROM insn_read handler

2018-10-30 Thread Hartley Sweeten
On Tuesday, October 30, 2018 7:17 AM, Ian Abbott wrote: > The `insn_read` handler for the EEPROM subdevice (`eeprom_insn_read()`) > currently > ignores `insn->n` (the number of samples to be read) and assumes a single > sample is > to be read. But `insn->n` could be 0, meaning no samples should

RE: [PATCH] Staging: comedi: das16: Fixed a const struct coding style issue

2017-11-27 Thread Hartley Sweeten
On Monday, November 27, 2017 3:28 AM, Ian Abbott wrote: > On 26/11/17 01:50, Alex Frappier Lachapelle wrote: >> +const struct comedi_lrange *lrange; > > NAK. The following lines of source code allocate memory pointed to by > 'lrange' and modify it, so 'const' is not appropriate here.

RE: [PATCH] mtd: nand: Rename nand.h into rawnand.h

2017-08-07 Thread Hartley Sweeten
.h so we can later create a nand.h header > containing all common structure and function prototypes. For ep93xx, Acked-by: H Hartley Sweeten ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

RE: [PATCH 00/14] staging: comedi: daqboard2000: some clean-up

2017-01-05 Thread Hartley Sweeten
pretty odd. But, thanks for cleaning this one up! Reviewed-by: H Hartley Sweeten ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

RE: [PATCH 00/12] staging: comedi: add identifiers to function parameters

2016-12-15 Thread Hartley Sweeten
unction > parameters > 11) staging: comedi: comedi_usb.h: add identifiers to function > parameters > 12) staging: comedi: comedidev.h: add identifiers to function > parameters Reviewed-by: H Hartley Sweeten ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

RE: [PATCH] drivers: staging: comedi: fix function prototypes

2016-12-15 Thread Hartley Sweeten
> Reviewed-by: Ian Abbott Reviewed-by: H Hartley Sweeten ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

RE: [PATCH] drivers: staging: comedi: fix function prototypes

2016-12-15 Thread Hartley Sweeten
On Thursday, December 15, 2016 4:47 AM, Ian Abbott wrote: > On 14/12/16 16:14, Hartley Sweeten wrote: >> On December 14, 2016 6:42 AM, Piotr Gregor wrote: >>> -struct pci_dev *comedi_to_pci_dev(struct comedi_device *); >>> +struct pci_dev *comedi_to_pci_dev(struct com

RE: [PATCH] drivers: staging: comedi: fix function prototypes

2016-12-14 Thread Hartley Sweeten
On December 14, 2016 6:42 AM, Piotr Gregor wrote: > Add names of parameters to function prototypes in comedi PCI. > Checkpatch reports now no errors. > > Signed-off-by: Piotr Gregor > --- > drivers/staging/comedi/comedi_pci.h | 18 ++ > 1 file changed, 10 insertions(+), 8 deletion

RE: [PATCH] staging: comedi: ni_mio_common: fix AO inttrig backwards compatibility

2016-07-20 Thread Hartley Sweeten
s a bit clearer: + /* +* Require trig_num == cmd->start_arg when cmd->start_src == TRIG_INT. +* For backwards compatibility, any trig_num is valid when +* cmd->start_src != TRIG_INT (i.e. when cmd->start_src == TRIG_EXT); +* in that case, the internal tri

[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

RE: [PATCH 2649/2649] Staging: comedi : fixed a camel case style issue

2016-06-20 Thread Hartley Sweeten
On Friday, June 17, 2016 9:02 PM, Greg KH wrote: >> The patch looks fine (although this odd-ball Comedi driver shouldn't really >> be sending signals to a user-space task!). > > Yeah, that's really odd, fixing that would be nice... This is the last addi-data driver that does this. It's on my list

[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

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

2016-06-08 Thread Hartley Sweeten
On Wednesday, June 08, 2016 2:34 AM, Ian Abbott wrote: > On 06/06/16 20:51, Hartley Sweeten wrote: >> From that I assume that the other bits will always return 0. > > Since it doesn't explicitly sat the other bits return 0, and until > someone can confirm, I think it'

RE: [PATCH 5/5] Staging: comedi: Prefer using the BIT macro issue in dmm32at.c

2016-06-07 Thread Hartley Sweeten
On Tuesday, June 07, 2016 4:51 AM, Ravishankar Karkala Mallikarjunayya wrote: > Subject: [PATCH 5/5] Staging: comedi: Prefer using the BIT macro issue in > dmm32at.c Please don't add random patches to a series. You started this series with 1/4, 2/4, 3/4 and 4/4 then added a 5/5. Also, please f

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

2016-06-06 Thread Hartley Sweeten
On Monday, June 06, 2016 12:33 PM, Ian Abbott wrote: > Okay, I think I must have got something inverted in my head at the time > I wrote my reply. > > Follow-up question: when you do: > > s->state = inl(dev->iobase + APCI1564_DI_INT_STATUS_REG); > > should that be ANDed with somethin

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

2016-06-06 Thread Hartley Sweeten
On Friday, June 03, 2016 2:58 AM, Ian Abbott wrote: > On 02/06/16 22:58, H Hartley Sweeten wrote: >> This board supports change-of-state interrupts on digital inputs 4 to 19 >> not 0 to 15. >> >> The current code "works" but it could set inappropriate bits in

[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

RE: [PATCH 04/20] staging: comedi: drivers: re-do macros for PLX PCI 9080 LASxRR values

2016-05-20 Thread Hartley Sweeten
On Friday, May 20, 2016 10:18 AM, Ian Abbott wrote: > On 20/05/16 17:37, Hartley Sweeten wrote: >> On Friday, May 20, 2016 6:49 AM, Ian Abbott wrote: >>> Rename the macros for the PLX PCI 9080 LAS0RR and LAS1RR registers in >>> "plx9080.h", using the prefix

RE: [PATCH 03/20] staging: comedi: drivers: rename PLX PCI 9080 register offsets

2016-05-20 Thread Hartley Sweeten
On Friday, May 20, 2016 9:31 AM, Ian Abbott wrote: > On 20/05/16 17:21, Hartley Sweeten wrote: >> Just an comment on your renaming. >> >> You also renamed the registers in the daqbook2000 driver in the >> _REG_ format. Personally I prefer the format to be >>

RE: [PATCH 04/20] staging: comedi: drivers: re-do macros for PLX PCI 9080 LASxRR values

2016-05-20 Thread Hartley Sweeten
On Friday, May 20, 2016 6:49 AM, Ian Abbott wrote: > Rename the macros for the PLX PCI 9080 LAS0RR and LAS1RR registers in > "plx9080.h", using the prefix `PLX_LASRR_`. Make use of the `BIT(x)` > and `GENMASK(h,l)` macros to define the values. > > Define a macro `PLX_LASRR_PREFETCH` for the "prefe

RE: [PATCH 03/20] staging: comedi: drivers: rename PLX PCI 9080 register offsets

2016-05-20 Thread Hartley Sweeten
On Friday, May 20, 2016 6:49 AM, Ian Abbott wrote: > Rename the macros in "plx9080.h" that define the offsets of registers, > following the pattern `PLX_REG_`, where `` is the register > name from the PLX PCI 9080 Data Book. > > Add defines for the "Mailbox" registers, and add parameterized macros

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

2016-05-19 Thread Hartley Sweeten
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 in this pat

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

2016-05-18 Thread Hartley Sweeten
On Wednesday, May 18, 2016 5:37 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 in thi

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

2016-05-18 Thread Hartley Sweeten
On Wednesday, May 18, 2016 5:37 AM, 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 > `0x80` that triggers setting

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

2016-05-17 Thread Hartley Sweeten
188 deletions(-) Ian, I had a couple comments on patches 1, 5, 6, and 14 but they are really just nitpicks. If you prefer to leave this series as-is: Reviewed-by: H Hartley Sweeten Thanks for going through this one, it's annoyed me... Hartley ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

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

2016-05-17 Thread Hartley Sweeten
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, and is > not that critical, so replace it w

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

2016-05-17 Thread Hartley Sweeten
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 with by later > patches in the series. >

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

2016-05-17 Thread Hartley Sweeten
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 +- > 1 file changed, 13 insertions

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

2016-05-17 Thread Hartley Sweeten
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/staging/comedi/drivers/daqboard2000

[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

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

2016-05-04 Thread Hartley Sweeten
On Wednesday, May 04, 2016 9:01 AM, Ian Abbott wrote: > On 04/05/16 01:25, H Hartley Sweeten wrote: >> The A/D ranges are not programmable but the gain is. Currently this driver >> uses a configuration option to select the comedi_lrange that will be used >> for the analog

[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

  1   2   3   4   5   6   7   8   9   10   >