1. 30 Aug, 2014 1 commit
  2. 30 Jul, 2014 1 commit
  3. 21 Jul, 2014 1 commit
    • H Hartley Sweeten's avatar
      staging: comedi: drivers: cleanup cmd->flags use · a207c12f
      H Hartley Sweeten authored
      
      
      Most of the comedi drivers that support async commands have some sort
      of timer to control the acquisition timing. For these drivers, Step 4
      of the (*do_cmdtest) operations calls a ns_to_timer() function that
      converts the desired ns time of the command into a value used to set
      the timer. These ns_to_timer() functions also typically pass the
      cmd->flags in order to determine the desired rounding mode.
      
      Some of the drivers mask the cmd->flags with TRIG_ROUND_MASK when
      calling the ns_to_timer() functions. Move all the masking into the
      ns_to_timer() functions and just pass the cmd->flags directly.
      
      The cmd->flags member is an unsigned int, change the parameter type
      in the the ns_to_timer() functions to match.
      
      For aesthetics, rename the parameter in all the ns_to_timer()
      functions to 'flags'.
      
      Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
      Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      a207c12f
  4. 28 May, 2014 1 commit
  5. 23 May, 2014 1 commit
  6. 22 Apr, 2014 2 commits
  7. 14 Feb, 2014 1 commit
  8. 07 Feb, 2014 1 commit
  9. 06 Dec, 2013 1 commit
  10. 03 Dec, 2013 2 commits
  11. 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
  12. 16 Oct, 2013 1 commit
  13. 17 Sep, 2013 1 commit
  14. 12 Aug, 2013 1 commit
  15. 23 Jul, 2013 2 commits
  16. 13 May, 2013 1 commit
  17. 03 Apr, 2013 11 commits
  18. 28 Mar, 2013 10 commits