linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ADXL34X orientation definition
@ 2013-12-07  9:53 Dmitry Torokhov
  2013-12-09  8:11 ` Michael Hennerich
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Torokhov @ 2013-12-07  9:53 UTC (permalink / raw)
  To: Michael Hennerich; +Cc: linux-input

Hi Michael,

I was going though Coverity reports and it looks like definition of

#define ADXL346_2D_ORIENT(x)            (((x) & 0x3) >> 4)

is not correct as it will always evaluate to 0. Should the mask be 0x30
instead?

Thanks.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-12-09 11:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-07  9:53 ADXL34X orientation definition Dmitry Torokhov
2013-12-09  8:11 ` Michael Hennerich
2013-12-09 11:18   ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).