[PATCH 00/15] staging: comedi: tidy up some usb driver boilerplate

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

 



Introduce a new helper function for the comedi usb drivers to get the
usb_device pointer from the comedi_device pointer. Use the helper in
the comedi usb drivers that have been cleaned up (usbduxfast, vmk80xx,
and dt9812).

Convert the usbdux* drivers to request the firmware synchronously and
use the comedi_load_firmware() helper.

H Hartley Sweeten (15):
  staging: comedi: introduce comedi_to_usb_dev()
  staging: comedi: usbduxfast: use comedi_to_usb_dev()
  staging: comedi: vmk80xx: don't pass the private data directly
  staging: comedi: vmk80xx: use comedi_to_usb_dev()
  staging: comedi: vmk80xx: remove usb_interface from private data
  staging: comedi: dt9812: use comedi_to_usb_dev()
  staging: comedi: usbduxfast: use comedi_load_firmware()
  staging: comedi: usbdux: request firmware synchronously
  staging: comedi: usbdux: consolidate the firmware upload
  staging: comedi: usbdux: move firmware request/upload into (*auto_attach)
  staging: comedi: usbdux: use comedi_load_firmware()
  staging: comedi: usbduxsigma: request firmware synchronously
  staging: comedi: usbduxsigma: consolidate the firmware upload
  staging: comedi: usbduxsigma: move firmware request/upload into (*auto_attach)
  staging: comedi: usbduxsigma: use comedi_load_firmware()

 drivers/staging/comedi/comedi_usb.c          |  12 ++
 drivers/staging/comedi/comedidev.h           |   1 +
 drivers/staging/comedi/drivers/dt9812.c      |  15 +-
 drivers/staging/comedi/drivers/usbdux.c      | 231 +++++++-------------------
 drivers/staging/comedi/drivers/usbduxfast.c  |  58 ++-----
 drivers/staging/comedi/drivers/usbduxsigma.c | 233 ++++++++-------------------
 drivers/staging/comedi/drivers/vmk80xx.c     |  83 +++++-----
 7 files changed, 195 insertions(+), 438 deletions(-)

-- 
1.8.1.4

_______________________________________________
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