aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/lis3lv02d.h
diff options
context:
space:
mode:
authorSamu Onkalo <samu.p.onkalo@nokia.com>2010-10-22 07:57:32 -0400
committerGuenter Roeck <guenter.roeck@ericsson.com>2010-10-25 14:11:39 -0700
commit029756d0b8856f52d83dee81c01dd3af786cadff (patch)
tree573ac19fe3461f1ffece64fd42af8573c011fa5d /drivers/hwmon/lis3lv02d.h
parenthwmon: lis3: use block read to access data registers (diff)
downloadlinux-dev-029756d0b8856f52d83dee81c01dd3af786cadff.tar.xz
linux-dev-029756d0b8856f52d83dee81c01dd3af786cadff.zip
hwmon: lis3: Enhance lis3 selftest with IRQ line test
Configure chip to data ready mode in selftest and count received interrupts to see that interrupt line(s) are working. Signed-off-by: Samu Onkalo <samu.p.onkalo@nokia.com> Acked-by: Eric Piel <eric.piel@tremplin-utc.net> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to '')
-rw-r--r--drivers/hwmon/lis3lv02d.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hwmon/lis3lv02d.h b/drivers/hwmon/lis3lv02d.h
index fdbe899a7f14..a1939589eb2c 100644
--- a/drivers/hwmon/lis3lv02d.h
+++ b/drivers/hwmon/lis3lv02d.h
@@ -273,7 +273,8 @@ struct lis3lv02d {
struct fasync_struct *async_queue; /* queue for the misc device */
wait_queue_head_t misc_wait; /* Wait queue for the misc device */
unsigned long misc_opened; /* bit0: whether the device is open */
- atomic_t wake_thread;
+ int data_ready_count[2];
+ atomic_t wake_thread;
unsigned char irq_cfg;
struct lis3lv02d_platform_data *pdata; /* for passing board config */