[PATCH 00/10] staging: comedi: improve auto-configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ian Abbott (10):
  staging: comedi: pass 'struct comedi_driver *' to comedi_..._auto_config
  staging: comedi: don't disable IRQ for comedi_file_info_table_lock
  staging: comedi: don't hijack hardware device private data
  staging: comedi: pass usb interface to comedi_usb_auto_config
  staging: comedi: refactor comedi_device_attach() a bit
  staging: comedi: add bus-type-specific attach hooks for PCI and USB
  staging: comedi: pass struct comedi_driver * to comedi_auto_config()
  staging: comedi: restrict comedi_auto_config() to single driver
  staging: comedi: amplc_pci224: use attach_pci() hook
  staging: comedi: usbdux: use attach_usb() hook

Improve auto-configuration of probed USB and PCI devices by adding
bus-type-specific attach hooks to struct comedi_driver.  See patch 06/10
for the rationale.

Only a couple of drivers (amplc_pci224 and usbdux) have been changed
to use the new hooks so far, just to get the ball rolling.  I won't
bother converting the other drivers until the changes have been merged
and I can spare the time!

 drivers/staging/comedi/comedi_fops.c               |   43 +++--
 drivers/staging/comedi/comedidev.h                 |   15 +-
 drivers/staging/comedi/drivers.c                   |  253 +++++++++++++-------
 .../staging/comedi/drivers/addi-data/addi_common.c |    2 +-
 drivers/staging/comedi/drivers/adl_pci6208.c       |    2 +-
 drivers/staging/comedi/drivers/adl_pci7230.c       |    2 +-
 drivers/staging/comedi/drivers/adl_pci7296.c       |    2 +-
 drivers/staging/comedi/drivers/adl_pci7432.c       |    2 +-
 drivers/staging/comedi/drivers/adl_pci8164.c       |    2 +-
 drivers/staging/comedi/drivers/adl_pci9111.c       |    2 +-
 drivers/staging/comedi/drivers/adl_pci9118.c       |    2 +-
 drivers/staging/comedi/drivers/adv_pci1710.c       |    2 +-
 drivers/staging/comedi/drivers/adv_pci1723.c       |    2 +-
 drivers/staging/comedi/drivers/adv_pci_dio.c       |    2 +-
 drivers/staging/comedi/drivers/amplc_dio200.c      |    2 +-
 drivers/staging/comedi/drivers/amplc_pc236.c       |    2 +-
 drivers/staging/comedi/drivers/amplc_pc263.c       |    2 +-
 drivers/staging/comedi/drivers/amplc_pci224.c      |  147 ++++++++----
 drivers/staging/comedi/drivers/amplc_pci230.c      |    2 +-
 drivers/staging/comedi/drivers/cb_pcidas.c         |    2 +-
 drivers/staging/comedi/drivers/cb_pcidas64.c       |    2 +-
 drivers/staging/comedi/drivers/cb_pcidda.c         |    2 +-
 drivers/staging/comedi/drivers/cb_pcidio.c         |    2 +-
 drivers/staging/comedi/drivers/cb_pcimdas.c        |    2 +-
 drivers/staging/comedi/drivers/cb_pcimdda.c        |    2 +-
 drivers/staging/comedi/drivers/contec_pci_dio.c    |    2 +-
 drivers/staging/comedi/drivers/daqboard2000.c      |    2 +-
 drivers/staging/comedi/drivers/das08.c             |    2 +-
 drivers/staging/comedi/drivers/dt3000.c            |    2 +-
 drivers/staging/comedi/drivers/dyna_pci10xx.c      |    2 +-
 drivers/staging/comedi/drivers/gsc_hpdi.c          |    2 +-
 drivers/staging/comedi/drivers/jr3_pci.c           |    2 +-
 drivers/staging/comedi/drivers/ke_counter.c        |    2 +-
 drivers/staging/comedi/drivers/me4000.c            |    2 +-
 drivers/staging/comedi/drivers/me_daq.c            |    2 +-
 drivers/staging/comedi/drivers/ni_6527.c           |    2 +-
 drivers/staging/comedi/drivers/ni_65xx.c           |    2 +-
 drivers/staging/comedi/drivers/ni_660x.c           |    2 +-
 drivers/staging/comedi/drivers/ni_670x.c           |    2 +-
 drivers/staging/comedi/drivers/ni_labpc.c          |    2 +-
 drivers/staging/comedi/drivers/ni_pcidio.c         |    2 +-
 drivers/staging/comedi/drivers/ni_pcimio.c         |    2 +-
 drivers/staging/comedi/drivers/rtd520.c            |    2 +-
 drivers/staging/comedi/drivers/s626.c              |    2 +-
 drivers/staging/comedi/drivers/skel.c              |    2 +-
 drivers/staging/comedi/drivers/usbdux.c            |  122 +++++++---
 drivers/staging/comedi/drivers/usbduxfast.c        |   10 +-
 drivers/staging/comedi/drivers/usbduxsigma.c       |   12 +-
 drivers/staging/comedi/drivers/vmk80xx.c           |    6 +-
 drivers/staging/comedi/internal.h                  |    1 +
 50 files changed, 446 insertions(+), 245 deletions(-)
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux