On Mon, Dec 09, 2013 at 12:35:10PM +0100, [email protected] wrote: > From: Michael Hennerich <[email protected]> > > Coverity report pointet out by Dmitry > > Reported-by: Dmitry Torokhov <[email protected]> > Signed-off-by: Michael Hennerich <[email protected]>
Applied, thank you. > --- > drivers/input/misc/adxl34x.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/input/misc/adxl34x.c b/drivers/input/misc/adxl34x.c > index 0735de3..1cb1da2 100644 > --- a/drivers/input/misc/adxl34x.c > +++ b/drivers/input/misc/adxl34x.c > @@ -158,7 +158,7 @@ > > /* ORIENT ADXL346 only */ > #define ADXL346_2D_VALID (1 << 6) > -#define ADXL346_2D_ORIENT(x) (((x) & 0x3) >> 4) > +#define ADXL346_2D_ORIENT(x) (((x) & 0x30) >> 4) > #define ADXL346_3D_VALID (1 << 3) > #define ADXL346_3D_ORIENT(x) ((x) & 0x7) > #define ADXL346_2D_PORTRAIT_POS 0 /* +X */ > -- > 1.7.9.5 > > -- Dmitry -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
