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
  • s626.c
Find file BlameHistoryPermalink
  • H Hartley Sweeten's avatar
    staging: comedi: s626: remove the uint16_t casts of the bit values · 12f4e2f2
    H Hartley Sweeten authored Mar 26, 2013
    
    
    There are a number of uint16_t casts used in the #define's of the
    constant bit field values as well as the calls to DEBIreplace().
    These cause a number of sparse warnings of the type:
    
    warning: cast truncates bits from constant value (ffff1cff becomes 1cff)
    
    Remove all of the casts and change the types of the parameters to
    DEBIreplace from uin16_t to unsigned int. This fixes all the warnings.
    
    Mask the addr that is or'ed with DEBI_CMD_RDWORD then written to the
    P_DEBICMD register as well as the val written to the P_DEBIAD register
    with 0xffff. The addr and val are only 16-bits but the registers are
    32-bits.
    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>
    12f4e2f2

Imprint & Privacy Policy