[PATCH 00/10] staging: comedi: remove some duplicate ranges

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

 



The comedi code exports a number of simple comedi_lrange tables for
use by the comedi drivers. Use them instead of duplicating the ranges
in the drivers.

Introduce a couple simple comedi_lrange tables for some of the more
common ranges found in the drivers and use them instead of privately
creating the ranges.

H Hartley Sweeten (10):
  staging: comedi: cb_pcidas64: use comedi provided range_bipolar10
  staging: comedi: das1800: use comedi provided range_bipolar10
  staging: comedi: das800: use comedi provided range_bipolar5
  staging: comedi: dt9812: use comedi provided range_bipolar10
  staging: comedi: range: introduce range_unipolar2_5
  staging: comedi: dt9812: use comedi provided range_unipolar2_5
  staging: comedi: ni_pcimio: use comedi provided range_bipolar10
  staging: comedi: ni_mio_common: use comedi provided range_bipolar5
  staging: comedi: usbduxsigma: use comedi provided range_unipolar2_5
  staging: comedi: range: introduce some simple mA ranges

 drivers/staging/comedi/comedidev.h             |  4 ++++
 drivers/staging/comedi/drivers/cb_pcidas64.c   | 19 ++++++-----------
 drivers/staging/comedi/drivers/das1800.c       | 10 +--------
 drivers/staging/comedi/drivers/das800.c        | 12 ++---------
 drivers/staging/comedi/drivers/dt2815.c        |  8 +-------
 drivers/staging/comedi/drivers/dt9812.c        | 28 ++++----------------------
 drivers/staging/comedi/drivers/ni_670x.c       |  2 --
 drivers/staging/comedi/drivers/ni_mio_common.c |  7 +------
 drivers/staging/comedi/drivers/ni_pcimio.c     | 15 +++++---------
 drivers/staging/comedi/drivers/pcl726.c        |  3 ---
 drivers/staging/comedi/drivers/usbduxsigma.c   |  8 +-------
 drivers/staging/comedi/range.c                 |  8 ++++++++
 12 files changed, 33 insertions(+), 91 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