lis3: add missing constants for 8bit device
authorSamu Onkalo <[email protected]>
Mon, 24 May 2010 21:33:32 +0000 (14:33 -0700)
committerLinus Torvalds <[email protected]>
Tue, 25 May 2010 15:07:06 +0000 (08:07 -0700)
Definitions for click were missing.

Signed-off-by: Samu Onkalo <[email protected]>
Acked-by: Eric Piel <[email protected]>
Tested-by: Daniel Mack <[email protected]>
Cc: Pavel Machek <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/hwmon/lis3lv02d.h

index e6a01f44709b9de41a3821e9cfacd07bb42a9691..692e2442ce0851e3b6880ca9e32d429adcbed836 100644 (file)
@@ -196,6 +196,16 @@ enum lis3lv02d_dd_src {
        DD_SRC_IA       = 0x40,
 };
 
+enum lis3lv02d_click_src_8b {
+       CLICK_SINGLE_X  = 0x01,
+       CLICK_DOUBLE_X  = 0x02,
+       CLICK_SINGLE_Y  = 0x04,
+       CLICK_DOUBLE_Y  = 0x08,
+       CLICK_SINGLE_Z  = 0x10,
+       CLICK_DOUBLE_Z  = 0x20,
+       CLICK_IA        = 0x40,
+};
+
 struct axis_conversion {
        s8      x;
        s8      y;