diff options
author | Samu Onkalo <samu.p.onkalo@nokia.com> | 2010-10-22 07:57:32 -0400 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2010-10-25 17:11:39 -0400 |
commit | 029756d0b8856f52d83dee81c01dd3af786cadff (patch) | |
tree | 573ac19fe3461f1ffece64fd42af8573c011fa5d /drivers/hwmon/lis3lv02d.h | |
parent | f10a5407b58603fb3b084d7fbdbd50f47d010c82 (diff) |
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 'drivers/hwmon/lis3lv02d.h')
-rw-r--r-- | drivers/hwmon/lis3lv02d.h | 3 |
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 { | |||
273 | struct fasync_struct *async_queue; /* queue for the misc device */ | 273 | struct fasync_struct *async_queue; /* queue for the misc device */ |
274 | wait_queue_head_t misc_wait; /* Wait queue for the misc device */ | 274 | wait_queue_head_t misc_wait; /* Wait queue for the misc device */ |
275 | unsigned long misc_opened; /* bit0: whether the device is open */ | 275 | unsigned long misc_opened; /* bit0: whether the device is open */ |
276 | atomic_t wake_thread; | 276 | int data_ready_count[2]; |
277 | atomic_t wake_thread; | ||
277 | unsigned char irq_cfg; | 278 | unsigned char irq_cfg; |
278 | 279 | ||
279 | struct lis3lv02d_platform_data *pdata; /* for passing board config */ | 280 | struct lis3lv02d_platform_data *pdata; /* for passing board config */ |