buf[3];
> > + z = buf[5];
> > + /* add 4 LSB */
> > + x = (x << 4) | (buf[0] & 0xf);
> > + y = (y << 4) | (buf[2] & 0xf);
> > + z = (z << 4) | (buf[4] & 0xf);
>
> Should we just say:
>
> x = ((int)(s8
From: seb
Event value is wrong. Should be in range -2048 to 2047, but is in range 0 to
4095.
Use s8 to int conversion and remove 0xfff mask.
Signed-off-by: Sebastien Royen
---
drivers/input/misc/mma8450.c |6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers
2 matches
Mail list logo