sensor: Fix bad bit mask macro in mpu60x0
This commit is contained in:
parent
22b719945f
commit
e155af891a
@ -77,7 +77,7 @@
|
|||||||
|
|
||||||
/* Masks and shifts @v into bit field @m */
|
/* Masks and shifts @v into bit field @m */
|
||||||
|
|
||||||
#define TO_BITFIELD(m,v) ((v) & MASK(m ##__WIDTH) << (m ##__SHIFT))
|
#define TO_BITFIELD(m,v) (((v) & MASK(m ##__WIDTH)) << (m ##__SHIFT))
|
||||||
|
|
||||||
/* Un-masks and un-shifts bit field @m from @v */
|
/* Un-masks and un-shifts bit field @m from @v */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user