staging: comedi: rtd520: initial cleanup
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest83 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/83 | staging: comedi: rtd520: remove RtdResetBoard macrodrivers/ | +2 | 0 replies | |
| 2/83 | staging: comedi: rtd520: remove RtdResetCGT macrodrivers/ | +0 | 0 replies | |
| 3/83 | staging: comedi: rtd520: remove RtdClearCGT macrodrivers/ | +3 | 0 replies | |
| 4/83 | staging: comedi: rtd520: remove RtdEnableCGT macrodrivers/ | +2 | 0 replies | |
| 5/83 | staging: comedi: rtd520: remove RtdWriteCGTable macrodrivers/ | +2 | 0 replies | |
| 6/83 | staging: comedi: rtd520: remove RtdWriteCGLatch macrodrivers/ | +2 | 0 replies | |
| 7/83 | staging: comedi: rtd520: remove RtdAdcClearFifo macrodrivers/ | +6 | 0 replies | |
| 8/83 | staging: comedi: rtd520: remove RtdAdcConversionSource macrodrivers/ | +7 | 0 replies | |
| 9/83 | staging: comedi: rtd520: remove RtdBurstStartSource macrodrivers/ | +2 | 0 replies | |
| 10/83 | staging: comedi: rtd520: remove RtdPacerStartSource macrodrivers/ | +3 | 0 replies | |
| 11/83 | staging: comedi: rtd520: remove RtdPacerStopSource macrodrivers/ | +3 | 0 replies | |
| 12/83 | staging: comedi: rtd520: remove RtdPacerClockSource macrodrivers/ | +1 | 0 replies | |
| 13/83 | staging: comedi: rtd520: remove RtdAdcSampleCounterSource macrodrivers/ | +0 | 0 replies | |
| 14/83 | staging: comedi: rtd520: remove RtdPacerTriggerMode macrodrivers/ | +0 | 0 replies | |
| 15/83 | staging: comedi: rtd520: remove RtdAboutStopEnable macrodrivers/ | +1 | 0 replies | |
| 16/83 | staging: comedi: rtd520: remove RtdTriggerPolarity macrodrivers/ | +0 | 0 replies | |
| 17/83 | staging: comedi: rtd520: remove RtdAdcStart macrodrivers/ | +2 | 0 replies | |
| 18/83 | staging: comedi: rtd520: remove RtdAdcFifoGet macrodrivers/ | +4 | 0 replies | |
| 19/83 | staging: comedi: rtd520: remove RtdAdcFifoGet2 macrodrivers/ | +0 | 0 replies | |
| 20/83 | staging: comedi: rtd520: remove RtdFifoStatus macrodrivers/ | +8 | 0 replies | |
| 21/83 | staging: comedi: rtd520: remove RtdPacerStart macrodrivers/ | +1 | 0 replies | |
| 22/83 | staging: comedi: rtd520: remove RtdPacerStop macrodrivers/ | +3 | 0 replies | |
| 23/83 | staging: comedi: rtd520: remove RtdInterruptStatus macrodrivers/ | +3 | 0 replies | |
| 24/83 | staging: comedi: rtd520: remove RtdInterruptMask macrodrivers/ | +14 | 0 replies | |
| 25/83 | staging: comedi: rtd520: remove RtdInterruptClear macrodrivers/ | +5 | 0 replies | |
| 26/83 | staging: comedi: rtd520: remove RtdInterruptClearMask macrodrivers/ | +11 | 0 replies | |
| 27/83 | staging: comedi: rtd520: remove RtdInterruptOverrunStatus macrodrivers/ | +10 | 0 replies | |
| 28/83 | staging: comedi: rtd520: remove RtdInterruptOverrunClear macrodrivers/ | +2 | 0 replies | |
| 29/83 | staging: comedi: rtd520: remove RtdPacerCount macrodrivers/ | +0 | 0 replies | |
| 30/83 | staging: comedi: rtd520: remove RtdPacerCounter macrodrivers/ | +1 | 0 replies | |
| 31/83 | staging: comedi: rtd520: remove RtdBurstCount macrodrivers/ | +0 | 0 replies | |
| 32/83 | staging: comedi: rtd520: remove RtdBurstCounter macrodrivers/ | +1 | 0 replies | |
| 33/83 | staging: comedi: rtd520: remove RtdDelayCount macrodrivers/ | +0 | 0 replies | |
| 34/83 | staging: comedi: rtd520: remove RtdDelayCounter macrodrivers/ | +0 | 0 replies | |
| 35/83 | staging: comedi: rtd520: remove RtdAboutCount macrodrivers/ | +0 | 0 replies | |
| 36/83 | staging: comedi: rtd520: remove RtdAboutCounter macrodrivers/ | +3 | 0 replies | |
| 37/83 | staging: comedi: rtd520: remove RtdAdcSampleCount macrodrivers/ | +0 | 0 replies | |
| 38/83 | staging: comedi: rtd520: remove RtdAdcSampleCounter macrodrivers/ | +0 | 0 replies | |
| 39/83 | staging: comedi: rtd520: remove RtdUtcCounterGet macrodrivers/ | +0 | 0 replies | |
| 40/83 | staging: comedi: rtd520: remove RtdUtcCounterPut macrodrivers/ | +0 | 0 replies | |
| 41/83 | staging: comedi: rtd520: remove RtdUtcCtrlPut macrodrivers/ | +8 | 0 replies | |
| 42/83 | staging: comedi: rtd520: remove RtdUtcClockSource macrodrivers/ | +0 | 0 replies | |
| 43/83 | staging: comedi: rtd520: remove RtdUtcGateSource macrodrivers/ | +0 | 0 replies | |
| 44/83 | staging: comedi: rtd520: remove RtdUsrOutSource macrodrivers/ | +0 | 0 replies | |
| 45/83 | staging: comedi: rtd520: remove RtdDio0Read macrodrivers/ | +1 | 0 replies | |
| 46/83 | staging: comedi: rtd520: remove RtdDio0Write macrodrivers/ | +1 | 0 replies | |
| 47/83 | staging: comedi: rtd520: remove RtdDio1Read macrodrivers/ | +0 | 0 replies | |
| 48/83 | staging: comedi: rtd520: remove RtdDio1Write macrodrivers/ | +0 | 0 replies | |
| 49/83 | staging: comedi: rtd520: remove RtdDioStatusRead macrodrivers/ | +0 | 0 replies | |
| 50/83 | staging: comedi: rtd520: remove RtdDioStatusWrite macrodrivers/ | +6 | 0 replies | |
| 51/83 | staging: comedi: rtd520: remove RtdDio0CtrlRead macrodrivers/ | +0 | 0 replies | |
| 52/83 | staging: comedi: rtd520: remove RtdDio0CtrlWrite macrodrivers/ | +1 | 0 replies | |
| 53/83 | staging: comedi: rtd520: remove RtdDacFifoPut macrodrivers/ | +2 | 0 replies | |
| 54/83 | staging: comedi: rtd520: remove RtdDacUpdate macrodrivers/ | +1 | 0 replies | |
| 55/83 | staging: comedi: rtd520: remove RtdDacBothUpdate macrodrivers/ | +0 | 0 replies | |
| 56/83 | staging: comedi: rtd520: remove RtdDacRange macrodrivers/ | +2 | 0 replies | |
| 57/83 | staging: comedi: rtd520: remove RtdDacClearFifo macrodrivers/ | +2 | 0 replies | |
| 58/83 | staging: comedi: rtd520: remove RtdDma0Source macrodrivers/ | +2 | 0 replies | |
| 59/83 | staging: comedi: rtd520: remove RtdDma1Source macrodrivers/ | +0 | 0 replies | |
| 60/83 | staging: comedi: rtd520: remove RtdDma0Reset macrodrivers/ | +1 | 0 replies | |
| 61/83 | staging: comedi: rtd520: remove RtdDma1Reset macrodrivers/ | +0 | 0 replies | |
| 62/83 | staging: comedi: rtd520: remove RtdPlxInterruptRead macrodrivers/ | +17 | 0 replies | |
| 63/83 | staging: comedi: rtd520: remove RtdPlxInterruptWrite macrodrivers/ | +18 | 0 replies | |
| 64/83 | staging: comedi: rtd520: remove RtdDma0Mode macrodrivers/ | +2 | 0 replies | |
| 65/83 | staging: comedi: rtd520: remove RtdDma0PciAddr macrodrivers/ | +0 | 0 replies | |
| 66/83 | staging: comedi: rtd520: remove RtdDma0LocalAddr macrodrivers/ | +0 | 0 replies | |
| 67/83 | staging: comedi: rtd520: remove RtdDma0Count macrodrivers/ | +0 | 0 replies | |
| 68/83 | staging: comedi: rtd520: remove RtdDma0Next macrodrivers/ | +3 | 0 replies | |
| 69/83 | staging: comedi: rtd520: remove RtdDma1Mode macrodrivers/ | +0 | 0 replies | |
| 70/83 | staging: comedi: rtd520: remove RtdDma1PciAddr macrodrivers/ | +0 | 0 replies | |
| 71/83 | staging: comedi: rtd520: remove RtdDma1LocalAddr macrodrivers/ | +0 | 0 replies | |
| 72/83 | staging: comedi: rtd520: remove RtdDma1Count macrodrivers/ | +0 | 0 replies | |
| 73/83 | staging: comedi: rtd520: remove RtdDma1Next macrodrivers/ | +0 | 0 replies | |
| 74/83 | staging: comedi: rtd520: remove RtdDma0Control macrodrivers/ | +22 | 0 replies | |
| 75/83 | staging: comedi: rtd520: remove RtdDma0Status macrodrivers/ | +0 | 0 replies | |
| 76/83 | staging: comedi: rtd520: remove RtdDma1Control macrodrivers/ | +3 | 0 replies | |
| 77/83 | staging: comedi: rtd520: remove RtdDma1Status macrodrivers/ | +0 | 0 replies | |
| 78/83 | staging: comedi: rtd520: remove devpriv macrodrivers/ | +22 | 0 replies | |
| 79/83 | staging: comedi: rtd520: remove thisboard macrodrivers/ | +3 | 0 replies | |
| 80/83 | staging: comedi: rtd520: factor out the "find pci device" codedrivers/ | +40 | 0 replies | |
| 81/83 | staging: comedi: rtd520: cleanup the "find pci device" codedrivers/ | +19 | 0 replies | |
| 82/83 | staging: comedi: rtd520: cleanup the range tablesdrivers/ | +63 | 0 replies | |
| 83/83 | staging: comedi: rtd520: cleanup the boardinfodrivers/ | +17 | 0 replies |
Reviews trailers per patch
None of the 83 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | H Hartley Sweeten |
|---|---|
| Series | R-b |
| 1/83 | |
| 2/83 | |
| 3/83 | |
| 4/83 | |
| 5/83 | |
| 6/83 | |
| 7/83 | |
| 8/83 | |
| 9/83 | |
| 10/83 | |
| 11/83 | |
| 12/83 | |
| 13/83 | |
| 14/83 | |
| 15/83 | |
| 16/83 | |
| 17/83 | |
| 18/83 | |
| 19/83 | |
| 20/83 | |
| 21/83 | |
| 22/83 | |
| 23/83 | |
| 24/83 | |
| 25/83 | |
| 26/83 | |
| 27/83 | |
| 28/83 | |
| 29/83 | |
| 30/83 | |
| 31/83 | |
| 32/83 | |
| 33/83 | |
| 34/83 | |
| 35/83 | |
| 36/83 | |
| 37/83 | |
| 38/83 | |
| 39/83 | |
| 40/83 | |
| 41/83 | |
| 42/83 | |
| 43/83 | |
| 44/83 | |
| 45/83 | |
| 46/83 | |
| 47/83 | |
| 48/83 | |
| 49/83 | |
| 50/83 | |
| 51/83 | |
| 52/83 | |
| 53/83 | |
| 54/83 | |
| 55/83 | |
| 56/83 | |
| 57/83 | |
| 58/83 | |
| 59/83 | |
| 60/83 | |
| 61/83 | |
| 62/83 | |
| 63/83 | |
| 64/83 | |
| 65/83 | |
| 66/83 | |
| 67/83 | |
| 68/83 | |
| 69/83 | |
| 70/83 | |
| 71/83 | |
| 72/83 | |
| 73/83 | |
| 74/83 | |
| 75/83 | |
| 76/83 | |
| 77/83 | |
| 78/83 | |
| 79/83 | |
| 80/83 | |
| 81/83 | |
| 82/83 | |
| 83/83 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/83] staging: comedi: rtd520: initial cleanup
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 are simple wrappers around standard {read,write}[rwl] calls with some of them caching the write value in a shadow variable in the private data.
Each of the macros is removed in a separate patch to ease reviewing. They can all be squashed into one patch if desired.
After all the macros are gone, the devpriv macro itself can be removed along with the boardinfo macro.
The "find pci device" code is also refactored to follow the style of the other comedi pci drivers.
The range tables are also cleaned up for aesthetic reasons. The large whitespace causes some pretty nasty line breaks in order to keep the lines < 80 characters.
H Hartley Sweeten (83):
staging: comedi: rtd520: remove RtdResetBoard macro
staging: comedi: rtd520: remove RtdResetCGT macro
staging: comedi: rtd520: remove RtdClearCGT macro
staging: comedi: rtd520: remove RtdEnableCGT macro
staging: comedi: rtd520: remove RtdWriteCGTable macro
staging: comedi: rtd520: remove RtdWriteCGLatch macro
staging: comedi: rtd520: remove RtdAdcClearFifo macro
staging: comedi: rtd520: remove RtdAdcConversionSource macro
staging: comedi: rtd520: remove RtdBurstStartSource macro
staging: comedi: rtd520: remove RtdPacerStartSource macro
staging: comedi: rtd520: remove RtdPacerStopSource macro
staging: comedi: rtd520: remove RtdPacerClockSource macro
staging: comedi: rtd520: remove RtdAdcSampleCounterSource macro
staging: comedi: rtd520: remove RtdPacerTriggerMode macro
staging: comedi: rtd520: remove RtdAboutStopEnable macro
staging: comedi: rtd520: remove RtdTriggerPolarity macro
staging: comedi: rtd520: remove RtdAdcStart macro
staging: comedi: rtd520: remove RtdAdcFifoGet macro
staging: comedi: rtd520: remove RtdAdcFifoGet2 macro
staging: comedi: rtd520: remove RtdFifoStatus macro
staging: comedi: rtd520: remove RtdPacerStart macro
staging: comedi: rtd520: remove RtdPacerStop macro
staging: comedi: rtd520: remove RtdInterruptStatus macro
staging: comedi: rtd520: remove RtdInterruptMask macro
staging: comedi: rtd520: remove RtdInterruptClear macro
staging: comedi: rtd520: remove RtdInterruptClearMask macro
staging: comedi: rtd520: remove RtdInterruptOverrunStatus macro
staging: comedi: rtd520: remove RtdInterruptOverrunClear macro
staging: comedi: rtd520: remove RtdPacerCount macro
staging: comedi: rtd520: remove RtdPacerCounter macro
staging: comedi: rtd520: remove RtdBurstCount macro
staging: comedi: rtd520: remove RtdBurstCounter macro
staging: comedi: rtd520: remove RtdDelayCount macro
staging: comedi: rtd520: remove RtdDelayCounter macro
staging: comedi: rtd520: remove RtdAboutCount macro
staging: comedi: rtd520: remove RtdAboutCounter macro
staging: comedi: rtd520: remove RtdAdcSampleCount macro
staging: comedi: rtd520: remove RtdAdcSampleCounter macro
staging: comedi: rtd520: remove RtdUtcCounterGet macro
staging: comedi: rtd520: remove RtdUtcCounterPut macro
staging: comedi: rtd520: remove RtdUtcCtrlPut macro
staging: comedi: rtd520: remove RtdUtcClockSource macro
staging: comedi: rtd520: remove RtdUtcGateSource macro
staging: comedi: rtd520: remove RtdUsrOutSource macro
staging: comedi: rtd520: remove RtdDio0Read macro
staging: comedi: rtd520: remove RtdDio0Write macro
staging: comedi: rtd520: remove RtdDio1Read macro
staging: comedi: rtd520: remove RtdDio1Write macro
staging: comedi: rtd520: remove RtdDioStatusRead macro
staging: comedi: rtd520: remove RtdDioStatusWrite macro
staging: comedi: rtd520: remove RtdDio0CtrlRead macro
staging: comedi: rtd520: remove RtdDio0CtrlWrite macro
staging: comedi: rtd520: remove RtdDacFifoPut macro
staging: comedi: rtd520: remove RtdDacUpdate macro
staging: comedi: rtd520: remove RtdDacBothUpdate macro
staging: comedi: rtd520: remove RtdDacRange macro
staging: comedi: rtd520: remove RtdDacClearFifo macro
staging: comedi: rtd520: remove RtdDma0Source macro
staging: comedi: rtd520: remove RtdDma1Source macro
staging: comedi: rtd520: remove RtdDma0Reset macro
staging: comedi: rtd520: remove RtdDma1Reset macro
staging: comedi: rtd520: remove RtdPlxInterruptRead macro
staging: comedi: rtd520: remove RtdPlxInterruptWrite macro
staging: comedi: rtd520: remove RtdDma0Mode macro
staging: comedi: rtd520: remove RtdDma0PciAddr macro
staging: comedi: rtd520: remove RtdDma0LocalAddr macro
staging: comedi: rtd520: remove RtdDma0Count macro
staging: comedi: rtd520: remove RtdDma0Count macro
staging: comedi: rtd520: remove RtdDma1Mode macro
staging: comedi: rtd520: remove RtdDma1PciAddr macro
staging: comedi: rtd520: remove RtdDma1LocalAddr macro
staging: comedi: rtd520: remove RtdDma1Count macro
staging: comedi: rtd520: remove RtdDma1Next macro
staging: comedi: rtd520: remove RtdDma0Control macro
staging: comedi: rtd520: remove RtdDma0Status macro
staging: comedi: rtd520: remove RtdDma1Control macro
staging: comedi: rtd520: remove RtdDma1Status macro
staging: comedi: rtd520: remove devpriv macro
staging: comedi: rtd520: remove thisboard macro
staging: comedi: rtd520: factor out the "find pci device" code
staging: comedi: rtd520: cleanup the "find pci device" code
staging: comedi: rtd520: cleanup the range tables
staging: comedi: rtd520: cleanup the boardinfo
drivers/staging/comedi/drivers/rtd520.c | 915 +++++++++++--------------------- 1 file changed, 318 insertions(+), 597 deletions(-)
Signature · 1 line
1.7.11