1. 22 Apr, 2014 1 commit
  2. 14 Feb, 2014 1 commit
  3. 07 Feb, 2014 1 commit
  4. 06 Dec, 2013 1 commit
  5. 03 Dec, 2013 2 commits
  6. 19 Oct, 2013 1 commit
    • Ian Abbott's avatar
      staging: comedi: rtd520: use normal bitfield functions · f8d939e4
      Ian Abbott authored
      
      
      The `unsigned char chan_is_bipolar[]` member of `struct rtd_private` is
      used with some macros as a packed array of 1-bit values that indicate
      whether the corresponding entries in the hardware's "channel-gain" table
      have been set to a bipolar (1) or unipolar (0) range, as the raw samples
      from the hardware need to be cooked differently in each case.
      
      Replace the declaration of the member with a standard Linux bitfield
      using `DECLARE_BITFIELD()`, and replace the home-grown macros used
      access the bitfield with the standard Linux non-atomic bitop functions,
      `__set_bit()`, `__clear_bit()` and `test_bit()`.
      
      Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      f8d939e4
  7. 16 Oct, 2013 1 commit
  8. 17 Sep, 2013 1 commit
  9. 12 Aug, 2013 1 commit
  10. 23 Jul, 2013 2 commits
  11. 13 May, 2013 1 commit
  12. 03 Apr, 2013 11 commits
  13. 28 Mar, 2013 10 commits
  14. 15 Mar, 2013 1 commit
  15. 14 Mar, 2013 2 commits
    • H Hartley Sweeten's avatar
      staging: comedi_pci: pass comedi_device to comedi_pci_enable() · 818f569f
      H Hartley Sweeten authored
      
      
      Make comedi_pci_enable() use the same parameter type as
      comedi_pci_disable(). This also allows comedi_pci_enable
      to automatically determine the resource name passed to
      pci_request_regions().
      
      Make sure the errno value returned is passed on instead of
      assuming an errno. Also, remove any kernel noise that is
      generated when the call fails.
      
      The National Instruments drivers that use the mite module
      currently enable the PCI device in the mite module. For
      those drivers move the call to comedi_pci_enable into the
      driver.
      
      Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
      Cc: Ian Abbott <abbotti@mev.co.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      818f569f
    • H Hartley Sweeten's avatar
      staging: comedi_pci: make comedi_pci_disable() safe to call · 7f072f54
      H Hartley Sweeten authored
      
      
      Currently all the comedi PCI drivers need to do some checking in
      their (*detach) before calling comedi_pci_disable() in order to
      make sure the PCI device has actually be enabled.
      
      Change the parameter passed to comedi_pci_disable() from a struct
      pci_dev pointer to a comedi_device pointer and have comedi_pci_disable()
      handle all the checking.
      
      For most comedi PCI drivers this also allows removing the local
      variable holding the pointer to the pci_dev. For some of the drivers
      comedi_pci_disable can now be used directly as the (*detach) function.
      
      The National Instruments drivers that use the mite module currently
      enable/disable the PCI device in the mite module. For those drivers
      move the call to comedi_pci_disable into the driver and make sure
      dev->iobase is set to a non-zero value.
      
      Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
      Cc: Ian Abbott <abbotti@mev.co.uk>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      7f072f54
  16. 11 Mar, 2013 2 commits
  17. 31 Jan, 2013 1 commit
    • H Hartley Sweeten's avatar
      staging: comedi: conditionally build in PCI driver support · 33782dd5
      H Hartley Sweeten authored
      
      
      Separate the comedi_pci_* functions out of drivers.c into a new
      source file, comedi_pci.c. This allows conditionally building
      support for comedi PCI drivers into the comedi core. Fix the
      Kconfig and Makefile appropriately.
      
      Group all the comedi_pci_* prototypes and related defines into one
      place in comedidev.h. Protect these prototypes with an #ifdef and
      provide some dummy functions so that the mixed ISA/PCI comedi
      drivers will still build correctly.
      
      Remove the #include <linux/pci.h> from comedidev.h and drivers.c. This
      include is only needed by the comedi PCI driver support code and the
      PCI drivers. The include should occur in those files.
      
      Also, remove the #include <linux/pci.h> from a couple non-PCI drivers
      since it's not needed.
      
      Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
      Cc: Ian Abbott <abbotti@mev.co.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      33782dd5