Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I ipipe-x86
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • xenomai
  • ipipe-x86
  • Repository
Switch branch/tag
  • ipipe-x86
  • drivers
  • staging
  • comedi
  • drivers
  • rtd520.c
Find file BlameHistoryPermalink
  • Ian Abbott's avatar
    staging: comedi: rtd520: sample types are unsigned · 055a1e2c
    Ian Abbott authored Oct 16, 2013
    
    
    Sample values in comedi are generally represented as unsigned values.
    Use unsigned types for sample value manipulations in the "rtd520" driver
    for consistency.
    
    Also replace the hand-coded munging of 2's complement sample values with
    calls to `comedi_offset_munge()` and AND with `s->maxdata` to strip off
    any extra sign bits.
    Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    055a1e2c

Imprint & Privacy Policy