sensor: Fix bad bit mask macro in mpu60x0
This commit is contained in:
parent
22b719945f
commit
e155af891a
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@
|
|||
|
||||
/* 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 */
|
||||
|
||||
|
|
Loading…
Reference in a new issue