[PATCH 39/83] staging: comedi: rtd520: remove RtdUtcCounterGet macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. It's also not used. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging

[PATCH 40/83] staging: comedi: rtd520: remove RtdUtcCounterPut macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. It's also not used. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging

[PATCH 41/83] staging: comedi: rtd520: remove RtdUtcCtrlPut macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. Plus it's just a wrapper around a simple 'writeb'. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre

[PATCH 42/83] staging: comedi: rtd520: remove RtdUtcClockSource macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. It's also not used. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging

[PATCH 43/83] staging: comedi: rtd520: remove RtdUtcGateSource macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. It's also not used. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging

[PATCH 44/83] staging: comedi: rtd520: remove RtdUsrOutSource macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. It's also not used. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging

[PATCH 45/83] staging: comedi: rtd520: remove RtdDio0Read macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. Plus it's just a wrapper around a simple 'readw'. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre

[PATCH 46/83] staging: comedi: rtd520: remove RtdDio0Write macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. Plus it's just a wrapper around a simple 'writew'. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre

[PATCH 47/83] staging: comedi: rtd520: remove RtdDio1Read macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. It's also not used. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging

[PATCH 48/83] staging: comedi: rtd520: remove RtdDio1Write macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. It's also not used. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging

[PATCH 49/83] staging: comedi: rtd520: remove RtdDioStatusRead macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. It's also not used. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging

[PATCH 50/83] staging: comedi: rtd520: remove RtdDioStatusWrite macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. Plus it's just a wrapper around a simple 'writew'. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre

[PATCH 51/83] staging: comedi: rtd520: remove RtdDio0CtrlRead macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. It's also not used. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging

[PATCH 52/83] staging: comedi: rtd520: remove RtdDio0CtrlWrite macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. Plus it's just a wrapper around a simple 'writew'. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre

[PATCH 53/83] staging: comedi: rtd520: remove RtdDacFifoPut macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. Plus it's just a wrapper around a simple 'writew'. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre

[PATCH 54/83] staging: comedi: rtd520: remove RtdDacUpdate macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. Plus it's just a wrapper around a simple 'writew'. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre

[PATCH 55/83] staging: comedi: rtd520: remove RtdDacBothUpdate macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. It's also not used. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging

[PATCH 56/83] staging: comedi: rtd520: remove RtdDacRange macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. Plus it's just a wrapper around a simple 'writew'. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre

[PATCH 57/83] staging: comedi: rtd520: remove RtdDacClearFifo macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. Plus it's just a wrapper around a simple 'writel'. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre

[PATCH 58/83] staging: comedi: rtd520: remove RtdDma0Source macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. Plus it's just a wrapper around a simple 'writel'. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre

[PATCH 59/83] staging: comedi: rtd520: remove RtdDma1Source macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. It's also not used. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging

[PATCH 60/83] staging: comedi: rtd520: remove RtdDma0Reset macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. Plus it's just a wrapper around a simple 'writel'. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre

[PATCH 61/83] staging: comedi: rtd520: remove RtdDma1Reset macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. It's also not used. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging

[PATCH 62/83] staging: comedi: rtd520: remove RtdPlxInterruptRead macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. Plus it's just a wrapper around a simple 'readl'. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre

[PATCH 63/83] staging: comedi: rtd520: remove RtdPlxInterruptWrite macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. Plus it's just a wrapper around a simple 'writel'. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre

[PATCH 64/83] staging: comedi: rtd520: remove RtdDma0Mode macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. Plus it's just a wrapper around a simple 'writel'. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre

[PATCH 65/83] staging: comedi: rtd520: remove RtdDma0PciAddr macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. It's also not used. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging

[PATCH 66/83] staging: comedi: rtd520: remove RtdDma0LocalAddr macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. It's also not used. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging

[PATCH 67/83] staging: comedi: rtd520: remove RtdDma0Count macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. It's also not used. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging

[PATCH 68/83] staging: comedi: rtd520: remove RtdDma0Next macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. Plus it's just a wrapper around a simple 'writel'. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre

[PATCH 69/83] staging: comedi: rtd520: remove RtdDma1Mode macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. It's also not used. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging

[PATCH 70/83] staging: comedi: rtd520: remove RtdDma1PciAddr macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. It's also not used. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging

[PATCH 71/83] staging: comedi: rtd520: remove RtdDma1LocalAddr macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. It's also not used. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging

[PATCH 72/83] staging: comedi: rtd520: remove RtdDma1Count macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. It's also not used. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging

[PATCH 73/83] staging: comedi: rtd520: remove RtdDma1Next macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. It's also not used. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging

[PATCH 74/83] staging: comedi: rtd520: remove RtdDma0Control macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. Plus it's just a wrapper around a simple 'writeb'. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre

[PATCH 75/83] staging: comedi: rtd520: remove RtdDma0Status macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. It's also not used. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging

[PATCH 76/83] staging: comedi: rtd520: remove RtdDma1Control macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. Plus it's just a wrapper around a simple 'writeb'. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre

[PATCH 77/83] staging: comedi: rtd520: remove RtdDma1Status macro

2012-07-10 Thread H Hartley Sweeten
This macro uses the 'devpriv' macro which relies on a local variable having a specific name. It's also not used. Remove the macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging

[PATCH 78/83] staging: comedi: rtd520: remove devpriv macro

2012-07-10 Thread H Hartley Sweeten
The macro 'devpriv' relies on a local variable having a specific name and yeilds a pointer derived from that local variable. Replace the macro with a local variable where used. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman

[PATCH 79/83] staging: comedi: rtd520: remove thisboard macro

2012-07-10 Thread H Hartley Sweeten
The macro 'thisboard' relies on a local variable having a specific name and yeilds a pointer derived from that local variable. Replace the macro with a local variable where used and use the comedi_board() helper to get the pointer. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc

[PATCH 80/83] staging: comedi: rtd520: factor out the find pci device code

2012-07-10 Thread H Hartley Sweeten
Factor the find pci device code out of the attach function. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/rtd520.c | 74 ++--- 1 file

[PATCH 81/83] staging: comedi: rtd520: cleanup the find pci device code

2012-07-10 Thread H Hartley Sweeten
Use for_each_pci_dev() instead of open-coding the for loop. Create local variables for the bus and slot options as well as the thisboard pointer in order to clarify the code. Consolidate the printk's when a supported board is not found into one dev_warn message. Signed-off-by: H Hartley Sweeten

[PATCH 82/83] staging: comedi: rtd520: cleanup the range tables

2012-07-10 Thread H Hartley Sweeten
Change the whitespace of the range tables to avoid the 80 character lines and the ugly line breaks. Convert a couple of the RANGE() values into the appropriate {UNI,BIP}_RANGE(). Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman

[PATCH 83/83] staging: comedi: rtd520: cleanup the boardinfo

2012-07-10 Thread H Hartley Sweeten
Remove a couple unnecessary comments. For aesthetic reasons, add some whitespace to the boardinfo to improve readability. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi

RE: [PATCH 00/83] staging: comedi: rtd520: initial cleanup

2012-07-11 Thread H Hartley Sweeten
On Wednesday, July 11, 2012 3:20 AM, Ian Abbott wrote: On 2012-07-11 00:36, H Hartley Sweeten wrote: The 'devpriv' macro usage in this driver is holding up other cleanup of the comedi drivers. This patch series removes all the macros used to read/write the hardware registers. All of them

RE: [PATCH] staging: comedi: rtd520: add a few comments

2012-07-11 Thread H Hartley Sweeten
: H Hartley Sweeten hswee...@visionengravers.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- To be applied after Hartley's 83 patches. --- drivers/staging/comedi/drivers/rtd520.c | 23 ++- 1 files changed, 18 insertions(+), 5 deletions(-) diff --git a/drivers

[PATCH 00/30] staging: comedi: move 'struct pci_dev *' into comedi_device

2012-07-11 Thread H Hartley Sweeten
to remove some of the unneeded private data variables and to use the comedi_device iobase variable. H Hartley Sweeten (30): staging: comedi: add pci_dev pointer to comedi_device staging: comedi: adl_pci6208: use comedi_device pci_dev pointer staging: comedi: adl_pci7230: use comedi_device pci_dev

[PATCH 01/30] staging: comedi: add pci_dev pointer to comedi_device

2012-07-11 Thread H Hartley Sweeten
Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/comedidev.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/comedi/comedidev.h b/drivers/staging/comedi/comedidev.h

[PATCH 02/30] staging: comedi: adl_pci6208: use comedi_device pci_dev pointer

2012-07-11 Thread H Hartley Sweeten
Use the pci_dev pointer in the comedi_device struct instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/adl_pci6208.c | 17

[PATCH 03/30] staging: comedi: adl_pci7230: use comedi_device pci_dev pointer

2012-07-11 Thread H Hartley Sweeten
Use the pci_dev pointer in the comedi_device struct instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/adl_pci7230.c | 15

[PATCH 04/30] staging: comedi: adl_pci7230: remove private data

2012-07-11 Thread H Hartley Sweeten
The private data is no longer needed by this driver. Remove it. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/adl_pci7230.c | 9 - 1 file changed, 9

[PATCH 05/30] staging: comedi: adl_pci7296: use comedi_device pci_dev pointer

2012-07-11 Thread H Hartley Sweeten
Use the pci_dev pointer in the comedi_device struct instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/adl_pci7296.c | 15

[PATCH 06/30] staging: comedi: adl_pci7296: remove private data

2012-07-11 Thread H Hartley Sweeten
The private data is no longer needed by this driver. Remove it. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/adl_pci7296.c | 9 - 1 file changed, 9

[PATCH 07/30] staging: comedi: adl_pci7432: use comedi_device pci_dev pointer

2012-07-11 Thread H Hartley Sweeten
Use the pci_dev pointer in the comedi_device struct instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/adl_pci7432.c | 15

[PATCH 08/30] staging: comedi: adl_pci7432: remove private data

2012-07-11 Thread H Hartley Sweeten
The private data is no longer needed by this driver. Remove it. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/adl_pci7432.c | 9 - 1 file changed, 9

[PATCH 09/30] staging: comedi: adl_pci8164: use comedi_device pci_dev pointer

2012-07-11 Thread H Hartley Sweeten
Use the pci_dev pointer in the comedi_device struct instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/adl_pci8164.c | 15

[PATCH 10/30] staging: comedi: adl_pci8164: remove private data

2012-07-11 Thread H Hartley Sweeten
The private data is no longer needed by this driver. Remove it. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/adl_pci8164.c | 9 - 1 file changed, 9

[PATCH 11/30] staging: comedi: adl_pci9111: use comedi_device pci_dev pointer

2012-07-11 Thread H Hartley Sweeten
Use the pci_dev pointer in the comedi_device struct instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/adl_pci9111.c | 25

[PATCH 12/30] staging: comedi: adl_pci9118: use comedi_device pci_dev pointer

2012-07-11 Thread H Hartley Sweeten
Use the pci_dev pointer in the comedi_device struct instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/adl_pci9118.c | 23

[PATCH 13/30] staging: comedi: cb_pcidas: use comedi_device pci_dev pointer

2012-07-11 Thread H Hartley Sweeten
Use the pci_dev pointer in the comedi_device struct instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/cb_pcidas.c | 31

[PATCH 14/30] staging: comedi: cb_pcidio: factor out the find pci device code

2012-07-11 Thread H Hartley Sweeten
Factor the find pci device code out of the attach function. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/cb_pcidio.c | 56 -- 1 file

[PATCH 15/30] staging: comedi: cb_pcidio: cleanup the find pci device code

2012-07-11 Thread H Hartley Sweeten
the need for the 'goto'. Reword the messages a bit. Also, move the setting of the dev-board_name back into the attach. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi

[PATCH 16/30] staging: comedi: cb_pcidio: use comedi_device pci_dev pointer

2012-07-11 Thread H Hartley Sweeten
Use the pci_dev pointer in the comedi_device struct instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/cb_pcidio.c | 21

[PATCH 17/30] staging: comedi: cb_pcidio: use comedi_device iobase

2012-07-11 Thread H Hartley Sweeten
Use the iobase in the comedi_device struct instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/cb_pcidio.c | 14

[PATCH 18/30] staging: comedi: cb_pcidio: remove private data

2012-07-11 Thread H Hartley Sweeten
The private data is no longer needed by this driver. Remove it. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/cb_pcidio.c | 23 --- 1 file

[PATCH 19/30] staging: comedi: contec_pci_dio: factor out the find pci device code

2012-07-11 Thread H Hartley Sweeten
Factor the find pci device code out of the attach function. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/contec_pci_dio.c | 91 + 1 file

[PATCH 20/30] staging: comedi: contec_pci_dio: cleanup the find pci device code

2012-07-11 Thread H Hartley Sweeten
Cleanup the find pci device code to follow the format of the other comedi pci drivers. Create local variables for the bus and slot options to clarify the code. Change the pci ven/dev test to reduce the indent level. Change the printk into a dev_warn. Signed-off-by: H Hartley Sweeten hswee

[PATCH 21/30] staging: comedi: contec_pci_dio: use comedi_device pci_dev pointer

2012-07-11 Thread H Hartley Sweeten
Use the pci_dev pointer in the comedi_device struct instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/contec_pci_dio.c

[PATCH 22/30] staging: comedi: contec_pci_dio: remove private data

2012-07-11 Thread H Hartley Sweeten
The private data is no longer needed by this driver. Remove it. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/contec_pci_dio.c | 9 - 1 file changed, 9

[PATCH 23/30] staging: comedi: dyna_pci10xx: factor out the find pci device code

2012-07-11 Thread H Hartley Sweeten
Factor the find pci device code out of the attach function. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/dyna_pci10xx.c | 86 ++- 1 file

[PATCH 24/30] staging: comedi: dyna_pci10xx: cleanup the find pci device code

2012-07-11 Thread H Hartley Sweeten
Cleanup the find pci device code to follow the format of the other comedi pci drivers. Use for_each_pci_dev() instead of open-coding the for loop. Reorder and refactor some of the tests to reduce the indent level. Change the printk's to dev_printk's. Signed-off-by: H Hartley Sweeten hswee

[PATCH 25/30] staging: comedi: dyna_pci10xx: use comedi_device pci_dev pointer

2012-07-11 Thread H Hartley Sweeten
Use the pci_dev pointer in the comedi_device struct instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/dyna_pci10xx.c | 25

[PATCH 26/30] staging: comedi: dyna_pci10xx: remove unused variables in the private data

2012-07-11 Thread H Hartley Sweeten
These variables are set during the attach of the device but they are never read. Just remove them. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/dyna_pci10xx.c

[PATCH 27/30] staging: comedi: dyna_pci10xx: use comedi_device iobase

2012-07-11 Thread H Hartley Sweeten
Use the iobase in the comedi_device struct instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/dyna_pci10xx.c | 11

[PATCH 28/30] staging: comedi: ke_counter: factor out the find pci device code

2012-07-11 Thread H Hartley Sweeten
Factor the find pci device code out of the attach function. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/ke_counter.c | 46 ++--- 1 file

[PATCH 29/30] staging: comedi: ke_counter: cleanup the find pci device code

2012-07-11 Thread H Hartley Sweeten
-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/ke_counter.c | 58 - 1 file changed, 23 insertions(+), 35 deletions(-) diff --git a/drivers/staging

[PATCH 30/30] staging: comedi: ke_counter: use comedi_device pci_dev pointer

2012-07-11 Thread H Hartley Sweeten
Use the pci_dev pointer in the comedi_device struct instead of carrying it in the private data. Since the pci_dev pointer was the only variable in the private data, remove it as well. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah

RE: [PATCH 15/90] staging: comedi: adv_pci1723: move comedi_pci_enable() into the attach

2012-07-20 Thread H Hartley Sweeten
On Thursday, July 19, 2012 4:35 PM, gregkh wrote: On Thu, Jul 19, 2012 at 06:31:23PM -0500, H Hartley Sweeten wrote: If the comedi pci drivers have the attach_pci callback defined, the PCI api does correctly probe the driver. The comedi_pci_auto_config() then passes the pci_dev directly

[PATCH 0/5] staging: comedi: fix issues with the pci_dev patchset

2012-07-20 Thread H Hartley Sweeten
The patchset to store the pci_dev in the comedi_device had a couple issues pointed out by Ian Abbott. This patchset addresses all of them except checking the bustype in the detach of the amplc drivers. Ian is going to address those. H Hartley Sweeten (5): staging: comedi: remove pci_is_enabled

[PATCH 1/5] staging: comedi: remove pci_is_enabled() tests

2012-07-20 Thread H Hartley Sweeten
. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Reported-by: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/adv_pci1710.c | 3 --- drivers/staging/comedi/drivers/adv_pci1723.c | 2 -- drivers/staging/comedi/drivers

[PATCH 2/5] staging: comedi: daqboard2000: add back subsystem_device check

2012-07-20 Thread H Hartley Sweeten
As mentioned by Ian Abbott, this driver originally checked the pci_dev subsystem_device in order to make sure that the pci_dev was compatible with this driver. The cleanup of the find pci device code removed this check. Add it back. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com

[PATCH 3/5] staging: comedi: daqboard2000: ioremap'ed addresses are resource_size_t

2012-07-20 Thread H Hartley Sweeten
to know that comedi_pci_disable() needs to be called. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Reported-by: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/daqboard2000.c | 14 +++--- 1 file changed, 7

[PATCH 4/5] staging: comedi: dt3000: ioremap'ed addresses are resource_size_t

2012-07-20 Thread H Hartley Sweeten
to know that comedi_pci_disable() needs to be called. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Reported-by: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/dt3000.c | 6 -- 1 file changed, 4 insertions(+), 2

[PATCH 5/5] staging: comedi: rtd520: ioremap'ed addresses are resource_size_t

2012-07-20 Thread H Hartley Sweeten
to know that comedi_pci_disable() needs to be called. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Reported-by: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/rtd520.c | 26 ++ 1 file changed, 10

build failure next-20121126

2012-11-26 Thread H Hartley Sweeten
Hello all, I was just trying a allyesconfig build of next-20121126 and got this: CC fs/cifs/cifs_debug.o In function 'copy_from_user', inlined from 'cifs_security_flags_proc_write' at fs/cifs/cifs_debug.c:593: /home/bigguiness/src/git/linux-next/arch/x86/include/asm/uaccess_32.h:211:

build failure next-20121126

2012-11-26 Thread H Hartley Sweeten
Hello all, Another build failure with next-20121126: CC security/integrity/evm/evm_secfs.o In function 'copy_from_user', inlined from 'evm_write_key' at security/integrity/evm/evm_secfs.c:71: /home/bigguiness/src/git/linux-next/arch/x86/include/asm/uaccess_32.h:211: error: call to

[PATCH 0/3] HID: introduce, and use, module_hid_driver

2012-12-17 Thread H Hartley Sweeten
Introduce, and use, the helper macro module_hid_driver to allow removing the init/exit boilerplate code from the HID drivers. H Hartley Sweeten (3): HID: introduce helper for hid_driver boilerplate HID: hid.h: remove unused hid_generic_{init,exit} prototypes HID: Use module_hid_driver macro

[PATCH 1/3] HID: introduce helper for hid_driver boilerplate

2012-12-17 Thread H Hartley Sweeten
Introduce the module_hid_driver macro which is a convenience macro for HID driver modules similar to module_usb_driver. It is intended to be used by drivers with init/exit sections that do nothing but register/unregister the HID driver. Signed-off-by: H Hartley Sweeten hswee

[PATCH 2/3] HID: hid.h: remove unused hid_generic_{init,exit} prototypes

2012-12-17 Thread H Hartley Sweeten
These functions are not defined. Remove the extern declarations. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Jiri Kosina jkos...@suse.cz --- include/linux/hid.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/linux/hid.h b/include/linux/hid.h index d6c71a6

[PATCH 3/3] HID: Use module_hid_driver macro

2012-12-17 Thread H Hartley Sweeten
-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Jiri Kosina jkos...@suse.cz --- drivers/hid/hid-a4tech.c | 13 + drivers/hid/hid-apple.c| 19 +-- drivers/hid/hid-aureal.c | 13 + drivers/hid/hid-axff.c | 14

RE: [PATCH] Staging: comedi: drivers: replaced printk with dev_dbg

2012-11-15 Thread H Hartley Sweeten
On Thursday, November 15, 2012 9:28 AM, Arpith Easow Alexander wrote: On Tue, Nov 13, 2012 at 11:52:52AM -0800, Greg KH wrote: So a macro called dbgcm tests a variable called dbgcm? Gotta love c at times... Just delete the macro, and the variable, and call dev_dbg() directly please. Ok.

RE: [PATCH 1/8] staging/comedi: Add macro for registering a comedi PCMCIA driver

2013-01-14 Thread H Hartley Sweeten
On Saturday, January 12, 2013 7:11 PM, Peter Huewe wrote: This patch introduces a new macro 'module_comedi_pcmcia_driver' for comedi PCMCIA drivers which do not do anything special in module init/exit. This eliminates a lot of boilerplate. Adapted from 'module_comedi_pci_driver'

RE: [PATCH 2/2] Staging: comedi: addi_common.h: checkpatch.pl fixes

2013-01-07 Thread H Hartley Sweeten
On Monday, January 07, 2013 3:40 PM, Greg KH wrote: On Sat, Jan 05, 2013 at 06:12:55PM +0400, Lijo Antony wrote: Reduced line lengths to 80 chars by removing extra spaces. Signed-off-by: Lijo Antony lijo.ker...@gmail.com --- .../staging/comedi/drivers/addi-data/addi_common.h | 20

RE: linux-next: build failure after merge of the staging tree

2013-01-08 Thread H Hartley Sweeten
On Monday, January 07, 2013 9:30 PM, Stephen Rothwell wrote: On Mon, 7 Jan 2013 20:27:30 -0800 Greg KH g...@kroah.com wrote: On Tue, Jan 08, 2013 at 01:23:52PM +1100, Stephen Rothwell wrote: After merging the staging tree, today's linux-next build (x86_64 allmodconfig) failed like this:

RE: [PATCH 22/36] staging: comedi: convert class code to use dev_groups

2013-07-24 Thread H Hartley Sweeten
On Wednesday, July 24, 2013 3:05 PM, Greg Kroah-Hartman wrote: The dev_attrs field of struct class is going away soon, dev_groups should be used instead. This converts the comedi class code to use the correct field. Cc: Ian Abbott abbo...@mev.co.uk Cc: H Hartley Sweeten hswee

RE: [PATCH v2 0/4] usb: ohci-ep93xx: do a bit of housecleaning

2013-07-26 Thread H Hartley Sweeten
On Monday, July 01, 2013 3:52 PM, H Hartley Sweeten wrote: Tidy up this driver a bit. v2: redo patch 4 based on suggestions from Alan Stern H Hartley Sweeten (4): usb: ohci-ep93xx: use devm_ioremap_resource() usb: ohci-ep93xx: use platform_get_irq() usb: ohci-ep93xx: use devm_clk_get

RE: [PATCH] gpio: (gpio-pca953x) move header to linux/platform_data/

2013-08-16 Thread H Hartley Sweeten
On Friday, August 16, 2013 8:02 AM, Vivien Didelot wrote: Hi Linus, You wrote: But: drivers/gpio/gpio-pca953x.c | 2 +- (...) diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c index 426c51d..8804aec 100644 --- a/drivers/gpio/gpio-pca953x.c +++

RE: [PATCH v4] pwm: add sysfs interface

2013-06-19 Thread H Hartley Sweeten
On Tuesday, June 11, 2013 12:48 PM, Thierry Reding wrote: I'm tempted to take your v5 patch and make a note to clean that up separately at some point (along with similar changes for the DEBUG_FS support). Thierry, So you want a v6 of this patch or are you ok with v5? Thanks, Hartley -- To

RE: [PATCH] gpio: (gpio-pca953x) move header to linux/platform_data/

2013-07-31 Thread H Hartley Sweeten
/vision_ep9307.c| 2 +- For the ep93xx change: Acked-by: H Hartley Sweeten hswee...@visionengravers.com Thanks -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

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