• Ricardo Silva's avatar
    staging: vme: Use BIT macro for bit definitions · 9d156621
    Ricardo Silva authored
    Use the BIT(n) macro instead of '(1 << n)' in definitions where the bit
    semantics clearly applies.
    
    Fixes true positive "Prefer using the BIT macro" checks reported by
    checkpatch.
    
    Some of these checks are still triggering on definitions using
    '(1 << n)', namely for PIO2_CNTR_SC_DEV1, PIO2_CNTR_RW_LSB and
    PIO2_CNTR_MODE1. Leave them be, as the context there is more of a
    "multi-bit field value" ((val << n), where for some cases 'val' happens
    to be 1) rather than a "single bit" (1 << n), so keeping the value as is
    in the code makes it more readable that using a combination of BIT
    macros.
    Signed-off-by: default avatarRicardo Silva <rjpdasilva@gmail.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    9d156621
vme_pio2.h 6.75 KB