alistair23-linux/drivers/staging/vme/devices
Ricardo Silva 9d15662175 staging: vme: Use BIT macro for bit definitions
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: Ricardo Silva <rjpdasilva@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-05-16 13:53:23 +02:00
..
Kconfig staging: vme: devices: Added a paragraph to describe Kconfig symbol 2014-10-20 10:29:18 +08:00
Makefile
vme_pio2.h staging: vme: Use BIT macro for bit definitions 2017-05-16 13:53:23 +02:00
vme_pio2_cntr.c drivers: staging: vme: Fixed indention 2015-11-24 15:30:50 -08:00
vme_pio2_core.c Annotate hardware config module parameters in drivers/staging/vme/ 2017-04-20 12:02:32 +01:00
vme_pio2_gpio.c Staging and IIO driver update for 4.7-rc1 2016-05-20 22:20:48 -07:00
vme_user.c drivers: convert vme_user_vma_priv.refcnt from atomic_t to refcount_t 2017-03-14 06:23:12 +08:00
vme_user.h drivers: staging: vme: Deleted extra empty lines 2015-11-24 15:30:50 -08:00