staging: comedi: cleanup the pci_dev usage
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest90 patches 30 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/90 | staging: comedi: comedidev.h: introduce comedi_to_pci_dev() helperdrivers/ | +5 | 4 replies | |
| 2/90 | staging: comedi: adl_pci6208: store the pci_dev in the comedi_devicedrivers/ | +10 | 0 replies | |
| 3/90 | staging: comedi: adl_pci7230: store the pci_dev in the comedi_devicedrivers/ | +11 | 0 replies | |
| 4/90 | staging: comedi: adl_pci7230: remove the private datadrivers/ | +0 | 0 replies | |
| 5/90 | staging: comedi: adl_pci7296: store the pci_dev in the comedi_devicedrivers/ | +11 | 0 replies | |
| 6/90 | staging: comedi: adl_pci7296: remove the private datadrivers/ | +0 | 0 replies | |
| 7/90 | staging: comedi: adl_pci7432: store the pci_dev in the comedi_devicedrivers/ | +11 | 0 replies | |
| 8/90 | staging: comedi: adl_pci7432: remove the private datadrivers/ | +0 | 0 replies | |
| 9/90 | staging: comedi: adl_pci8164: store the pci_dev in the comedi_devicedrivers/ | +11 | 0 replies | |
| 10/90 | staging: comedi: adl_pci8164: remove the private datadrivers/ | +0 | 0 replies | |
| 11/90 | staging: comedi: adl_pci9111: store the pci_dev in the comedi_devicedrivers/ | +16 | 0 replies | |
| 12/90 | staging: comedi: adl_pci9118: store the pci_dev in the comedi_devicedrivers/ | +18 | 0 replies | |
| 13/90 | staging: comedi: adv_pci1723: factor out the "find pci device" codedrivers/ | +26 | 0 replies | |
| 14/90 | staging: comedi: adv_pci1723: cleanup "find pci device" codedrivers/ | +17 | 0 replies | |
| 15/90 | staging: comedi: adv_pci1723: move comedi_pci_enable() into the attachdrivers/ | +5 | 9 replies | |
| 16/90 | staging: comedi: adv_pci1723: store the pci_dev in the comedi_devicedrivers/ | +13 | 0 replies | |
| 17/90 | staging: comedi: adv_pci1710: factor out the "find pci device" codedrivers/ | +27 | 0 replies | |
| 18/90 | staging: comedi: adv_pci1710: cleanup "find pci device" codedrivers/ | +17 | 0 replies | |
| 19/90 | staging: comedi: adv_pci1710: move comedi_pci_enable() into the attachdrivers/ | +6 | 1 reply | |
| 20/90 | staging: comedi: adv_pci1710: store the pci_dev in the comedi_devicedrivers/ | +14 | 0 replies | |
| 21/90 | staging: comedi: adv_pci_dio: factor out the "find pci device" codedrivers/ | +29 | 0 replies | |
| 22/90 | staging: comedi: adv_pci_dio: remove CheckAndAllocCard()drivers/ | +1 | 1 reply | |
| 23/90 | staging: comedi: adv_pci_dio: cleanup "find pci device" codedrivers/ | +14 | 0 replies | |
| 24/90 | staging: comedi: adv_pci_dio: store the pci_dev in the comedi_devicedrivers/ | +12 | 0 replies | |
| 25/90 | staging: comedi: cb_pcidas: store the pci_dev in the comedi_devicedrivers/ | +17 | 0 replies | |
| 26/90 | staging: comedi: cb_pcidio: factor out the "find pci device" codedrivers/ | +25 | 0 replies | |
| 27/90 | staging: comedi: cb_pcidio: cleanup "find pci device" codedrivers/ | +13 | 0 replies | |
| 28/90 | staging: comedi: cb_pcidio: store the pci_dev in the comedi_devicedrivers/ | +12 | 0 replies | |
| 29/90 | staging: comedi: amplc_dio200: cleanup "find pci device" codedrivers/ | +15 | 0 replies | |
| 30/90 | staging: comedi: amplc_dio200: store the pci_dev in the comedi_devicedrivers/ | +12 | 5 replies | |
| 31/90 | staging: comedi: amplc_pc236: cleanup "find pci device" codedrivers/ | +17 | 0 replies | |
| 32/90 | staging: comedi: amplc_pc236: store the pci_dev in the comedi_devicedrivers/ | +12 | 2 replies | |
| 33/90 | staging: comedi: amplc_pc263: cleanup "find pci device" codedrivers/ | +16 | 0 replies | |
| 34/90 | staging: comedi: amplc_pc263: store the pci_dev in the comedi_devicedrivers/ | +9 | 1 reply | |
| 35/90 | staging: comedi: amplc_pci224: cleanup "find pci device" codedrivers/ | +16 | 0 replies | |
| 36/90 | staging: comedi: amplc_pci224: store the pci_dev in the comedi_devicedrivers/ | +10 | 0 replies | |
| 37/90 | staging: comedi: amplc_pci230: cleanup "find pci device" codedrivers/ | +8 | 0 replies | |
| 38/90 | staging: comedi: amplc_pci230: store the pci_dev in the comedi_devicedrivers/ | +11 | 0 replies | |
| 39/90 | staging: comedi: cb_pcidas64: factor out the "find pci device" codedrivers/ | +29 | 0 replies | |
| 40/90 | staging: comedi: cb_pcidas64: cleanup "find pci device" codedrivers/ | +15 | 0 replies | |
| 41/90 | staging: comedi: cb_pcidas64: store the pci_dev in the comedi_devicedrivers/ | +21 | 0 replies | |
| 42/90 | staging: comedi: cb_pcidda: factor out the "find pci device" codedrivers/ | +32 | 0 replies | |
| 43/90 | staging: comedi: cb_pcidda: cleanup "find pci device" codedrivers/ | +18 | 0 replies | |
| 44/90 | staging: comedi: cb_pcidda: store the pci_dev in the comedi_devicedrivers/ | +10 | 0 replies | |
| 45/90 | staging: comedi: cb_pcidio: store the iobase in the comedi_devicedrivers/ | +4 | 0 replies | |
| 46/90 | staging: comedi: cb_pcidio: remove the private datadrivers/ | +0 | 0 replies | |
| 47/90 | staging: comedi: cb_pcimdas: factor out the "find pci device" codedrivers/ | +32 | 0 replies | |
| 48/90 | staging: comedi: cb_pcimdas: cleanup "find pci device" codedrivers/ | +15 | 0 replies | |
| 49/90 | staging: comedi: cb_pcimdas: remove the debug print of the pci barsdrivers/ | +0 | 0 replies | |
| 50/90 | staging: comedi: cb_pcimdas: cleanup the private datadrivers/ | +0 | 0 replies | |
| 51/90 | staging: comedi: cb_pcimdas: remove BADR1 from the private datadrivers/ | +0 | 0 replies | |
| 52/90 | staging: comedi: cb_pcimdas: remove BADR4 from the private datadrivers/ | +3 | 0 replies | |
| 53/90 | staging: comedi: cb_pcimdas: remove BADR2 from the private datadrivers/ | +5 | 0 replies | |
| 54/90 | staging: comedi: cb_pcimdas: remove BADR0 from the private datadrivers/ | +1 | 0 replies | |
| 55/90 | staging: comedi: cb_pcimdas: store the pci_dev in the comedi_devicedrivers/ | +13 | 0 replies | |
| 56/90 | staging: comedi: contec_pci_dio: factor out the "find pci device" codedrivers/ | +50 | 0 replies | |
| 57/90 | staging: comedi: contec_pci_dio: cleanup "find pci device" codedrivers/ | +15 | 0 replies | |
| 58/90 | staging: comedi: contec_pci_dio: store the pci_dev in the comedi_devicedrivers/ | +6 | 0 replies | |
| 59/90 | staging: comedi: contec_pci_dio: remove the private datadrivers/ | +0 | 0 replies | |
| 60/90 | staging: comedi: daqboard2000: factor out the "find pci device" codedrivers/ | +39 | 0 replies | |
| 61/90 | staging: comedi: daqboard2000: cleanup "find pci device" codedrivers/ | +20 | 0 replies | |
| 62/90 | staging: comedi: daqboard2000: remove 'got_regions' from private datadrivers/ | +4 | 0 replies | |
| 63/90 | staging: comedi: daqboard2000: store the pci_dev in the comedi_devicedrivers/ | +8 | 0 replies | |
| 64/90 | staging: comedi: daqboard2000: void *plx should be a void __iomem *drivers/ | +1 | 0 replies | |
| 65/90 | staging: comedi: dt3000: cleanup "find pci device" codedrivers/ | +31 | 1 reply | |
| 66/90 | staging: comedi: dt3000: move the setup_pci() code into the attachdrivers/ | +6 | 0 replies | |
| 67/90 | staging: comedi: dt3000: remove 'phys_addr' from the private datadrivers/ | +3 | 1 reply | |
| 68/90 | staging: comedi: dt3000: store the pci_dev in the comedi_devicedrivers/ | +8 | 0 replies | |
| 69/90 | staging: comedi: dyna_pci10xx: factor out the "find pci device" codedrivers/ | +38 | 0 replies | |
| 70/90 | staging: comedi: dyna_pci10xx: cleanup "find pci device" codedrivers/ | +17 | 0 replies | |
| 71/90 | staging: comedi: dyna_pci10xx: remove the 'start_stop_sem' mutexdrivers/ | +2 | 0 replies | |
| 72/90 | staging: comedi: dyna_pci10xx: remove 'valid' from the private datadrivers/ | +0 | 0 replies | |
| 73/90 | staging: comedi: dyna_pci10xx: remove unused bars from the private datadrivers/ | +1 | 0 replies | |
| 74/90 | staging: comedi: dyna_pci10xx: use dev->iobasedrivers/ | +5 | 0 replies | |
| 75/90 | staging: comedi: dyna_pci10xx: store the pci_dev in the comedi_devicedrivers/ | +6 | 0 replies | |
| 76/90 | staging: comedi: dyna_pci10xx: fix detachdrivers/ | +3 | 0 replies | |
| 77/90 | staging: comedi: ke_counter: factor out the "find pci device" codedrivers/ | +26 | 0 replies | |
| 78/90 | staging: comedi: ke_counter: cleanup "find pci device" codedrivers/ | +23 | 0 replies | |
| 79/90 | staging: comedi: ke_counter: minor cleanup of cnt_attach()drivers/ | +8 | 0 replies | |
| 80/90 | staging: comedi: ke_counter: store the pci_dev in the comedi_devicedrivers/ | +6 | 0 replies | |
| 81/90 | staging: comedi: ke_counter: remove the cnt_board_nbr macrodrivers/ | +1 | 0 replies | |
| 82/90 | staging: comedi: me_daq: factor out the "find pci device" codedrivers/ | +30 | 0 replies | |
| 83/90 | staging: comedi: me_daq: cleanup "find pci device" codedrivers/ | +23 | 0 replies | |
| 84/90 | staging: comedi: me_daq: store the pci_dev in the comedi_devicedrivers/ | +8 | 0 replies | |
| 85/90 | staging: comedi: rtd520: remove the debug print of the pci addressesdrivers/ | +0 | 0 replies | |
| 86/90 | staging: comedi: rtd520: remove 'got_regions' from private datadrivers/ | +3 | 1 reply | |
| 87/90 | staging: comedi: rtd520: remove the '#if 0' code in the attachdrivers/ | +0 | 0 replies | |
| 88/90 | staging: comedi: rtd520: store the pci_dev in the comedi_devicedrivers/ | +24 | 2 replies | |
| 89/90 | staging: comedi: aio_iiro_16: remove the private datadrivers/ | +0 | 0 replies | |
| 90/90 | staging: comedi: s526: remove unused variables in the private datadrivers/ | +0 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/90] staging: comedi: cleanup the pci_dev usage
All the comedi pci drivers currently store a pointer to the pci_dev in their private data. We can use the 'struct device *hw_dev' variable in the comedi_device struct instead and introduce a wrapper for to_pci_dev() to allow the drivers to easily get the pci_dev.
This patchset does just that. It also removes the private data from the drivers that no longer needed it.
Some of the drivers required a bit of cleanup to their "find pci device" code or the private data in order to make the conversion cleaner.
There are still a couple drivers, specifically the ni and addi ones, that need additional work before they can be converted cleanly.
H Hartley Sweeten (90):
staging: comedi: comedidev.h: introduce comedi_to_pci_dev() helper
staging: comedi: adl_pci6208: store the pci_dev in the comedi_device
staging: comedi: adl_pci7230: store the pci_dev in the comedi_device
staging: comedi: adl_pci7230: remove the private data
staging: comedi: adl_pci7296: store the pci_dev in the comedi_device
staging: comedi: adl_pci7296: remove the private data
staging: comedi: adl_pci7432: store the pci_dev in the comedi_device
staging: comedi: adl_pci7432: remove the private data
staging: comedi: adl_pci8164: store the pci_dev in the comedi_device
staging: comedi: adl_pci8164: remove the private data
staging: comedi: adl_pci9111: store the pci_dev in the comedi_device
staging: comedi: adl_pci9118: store the pci_dev in the comedi_device
staging: comedi: adv_pci1723: factor out the "find pci device" code
staging: comedi: adv_pci1723: cleanup "find pci device" code
staging: comedi: adv_pci1723: move comedi_pci_enable() into the attach
staging: comedi: adv_pci1723: store the pci_dev in the comedi_device
staging: comedi: adv_pci1710: factor out the "find pci device" code
staging: comedi: adv_pci1710: cleanup "find pci device" code
staging: comedi: adv_pci1710: move comedi_pci_enable() into the attach
staging: comedi: adv_pci1710: store the pci_dev in the comedi_device
staging: comedi: adv_pci_dio: factor out the "find pci device" code
staging: comedi: adv_pci_dio: remove CheckAndAllocCard()
staging: comedi: adv_pci_dio: cleanup "find pci device" code
staging: comedi: adv_pci_dio: store the pci_dev in the comedi_device
staging: comedi: cb_pcidas: store the pci_dev in the comedi_device
staging: comedi: cb_pcidio: factor out the "find pci device" code
staging: comedi: cb_pcidio: cleanup "find pci device" code
staging: comedi: cb_pcidio: store the pci_dev in the comedi_device
staging: comedi: amplc_dio200: cleanup "find pci device" code
staging: comedi: amplc_dio200: store the pci_dev in the comedi_device
staging: comedi: amplc_pc236: cleanup "find pci device" code
staging: comedi: amplc_pc236: store the pci_dev in the comedi_device
staging: comedi: amplc_pc263: cleanup "find pci device" code
staging: comedi: amplc_pc263: store the pci_dev in the comedi_device
staging: comedi: amplc_pci224: cleanup "find pci device" code
staging: comedi: amplc_pci224: store the pci_dev in the comedi_device
staging: comedi: amplc_pci230: cleanup "find pci device" code
staging: comedi: amplc_pci230: store the pci_dev in the comedi_device
staging: comedi: cb_pcidas64: factor out the "find pci device" code
staging: comedi: cb_pcidas64: cleanup "find pci device" code
staging: comedi: cb_pcidas64: store the pci_dev in the comedi_device
staging: comedi: cb_pcidda: factor out the "find pci device" code
staging: comedi: cb_pcidda: cleanup "find pci device" code
staging: comedi: cb_pcidda: store the pci_dev in the comedi_device
staging: comedi: cb_pcidio: store the iobase in the comedi_device
staging: comedi: cb_pcidio: remove the private data
staging: comedi: cb_pcimdas: factor out the "find pci device" code
staging: comedi: cb_pcimdas: cleanup "find pci device" code
staging: comedi: cb_pcimdas: remove the debug print of the pci bars
staging: comedi: cb_pcimdas: cleanup the private data
staging: comedi: cb_pcimdas: remove BADR1 from the private data
staging: comedi: cb_pcimdas: remove BADR4 from the private data
staging: comedi: cb_pcimdas: remove BADR2 from the private data
staging: comedi: cb_pcimdas: remove BADR0 from the private data
staging: comedi: cb_pcimdas: store the pci_dev in the comedi_device
staging: comedi: contec_pci_dio: factor out the "find pci device" code
staging: comedi: contec_pci_dio: cleanup "find pci device" code
staging: comedi: contec_pci_dio: store the pci_dev in the comedi_device
staging: comedi: contec_pci_dio: remove the private data
staging: comedi: daqboard2000: factor out the "find pci device" code
staging: comedi: daqboard2000: cleanup "find pci device" code
staging: comedi: daqboard2000: remove 'got_regions' from private data
staging: comedi: daqboard2000: store the pci_dev in the comedi_device
staging: comedi: daqboard2000: void *plx should be a void __iomem *
staging: comedi: dt3000: cleanup "find pci device" code
staging: comedi: dt3000: move the setup_pci() code into the attach
staging: comedi: dt3000: remove 'phys_addr' from the private data
staging: comedi: dt3000: store the pci_dev in the comedi_device
staging: comedi: dyna_pci10xx: factor out the "find pci device" code
staging: comedi: dyna_pci10xx: cleanup "find pci device" code
staging: comedi: dyna_pci10xx: remove the 'start_stop_sem' mutex
staging: comedi: dyna_pci10xx: remove 'valid' from the private data
staging: comedi: dyna_pci10xx: remove unused bars from the private data
staging: comedi: dyna_pci10xx: use dev->iobase
staging: comedi: dyna_pci10xx: store the pci_dev in the comedi_device
staging: comedi: dyna_pci10xx: fix detach
staging: comedi: ke_counter: factor out the "find pci device" code
staging: comedi: ke_counter: cleanup "find pci device" code
staging: comedi: ke_counter: minor cleanup of cnt_attach()
staging: comedi: ke_counter: store the pci_dev in the comedi_device
staging: comedi: ke_counter: remove the cnt_board_nbr macro
staging: comedi: me_daq: factor out the "find pci device" code
staging: comedi: me_daq: cleanup "find pci device" code
staging: comedi: me_daq: store the pci_dev in the comedi_device
staging: comedi: rtd520: remove the debug print of the pci addresses
staging: comedi: rtd520: remove 'got_regions' from private data
staging: comedi: rtd520: remove the '#if 0' code in the attach
staging: comedi: rtd520: store the pci_dev in the comedi_device
staging: comedi: aio_iiro_16: remove the private data
staging: comedi: s526: remove unused variables in the private data
drivers/staging/comedi/comedidev.h | 5 + drivers/staging/comedi/drivers/adl_pci6208.c | 19 ++-- drivers/staging/comedi/drivers/adl_pci7230.c | 28 ++--- drivers/staging/comedi/drivers/adl_pci7296.c | 28 ++--- drivers/staging/comedi/drivers/adl_pci7432.c | 28 ++--- drivers/staging/comedi/drivers/adl_pci8164.c | 28 ++--- drivers/staging/comedi/drivers/adl_pci9111.c | 29 ++--- drivers/staging/comedi/drivers/adl_pci9118.c | 33 +++--- drivers/staging/comedi/drivers/adv_pci1710.c | 119 +++++++++----------- drivers/staging/comedi/drivers/adv_pci1723.c | 96 +++++++--------- drivers/staging/comedi/drivers/adv_pci_dio.c | 112 +++++++------------ drivers/staging/comedi/drivers/aio_iiro_16.c | 11 -- drivers/staging/comedi/drivers/amplc_dio200.c | 73 +++++------- drivers/staging/comedi/drivers/amplc_pc236.c | 71 +++++------- drivers/staging/comedi/drivers/amplc_pc263.c | 82 +++++--------- drivers/staging/comedi/drivers/amplc_pci224.c | 62 +++++------ drivers/staging/comedi/drivers/amplc_pci230.c | 47 ++++---- drivers/staging/comedi/drivers/cb_pcidas.c | 32 +++--- drivers/staging/comedi/drivers/cb_pcidas64.c | 108 +++++++++--------- drivers/staging/comedi/drivers/cb_pcidda.c | 86 +++++++-------- drivers/staging/comedi/drivers/cb_pcidio.c | 109 ++++++------------ drivers/staging/comedi/drivers/cb_pcimdas.c | 140 +++++++++--------------- drivers/staging/comedi/drivers/contec_pci_dio.c | 121 ++++++++++---------- drivers/staging/comedi/drivers/daqboard2000.c | 118 ++++++++++---------- drivers/staging/comedi/drivers/dt3000.c | 127 ++++++++------------- drivers/staging/comedi/drivers/dyna_pci10xx.c | 136 +++++++++-------------- drivers/staging/comedi/drivers/ke_counter.c | 111 +++++++++---------- drivers/staging/comedi/drivers/me_daq.c | 99 ++++++++--------- drivers/staging/comedi/drivers/rtd520.c | 103 +++++------------ drivers/staging/comedi/drivers/s526.c | 8 -- 30 files changed, 882 insertions(+), 1287 deletions(-)
Signature · 1 line
1.7.11