aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/lis3lv02d.h
diff options
context:
space:
mode:
authorSamu Onkalo <samu.p.onkalo@nokia.com>2010-10-22 07:57:25 -0400
committerGuenter Roeck <guenter.roeck@ericsson.com>2010-10-25 17:11:38 -0400
commite726111f953f8f5b922b953caf06ba6790c5fbaa (patch)
tree4c2355531dad72055f3d8d1e704947d0210fd32a /drivers/hwmon/lis3lv02d.h
parentf9deb41f91c41d9d91a24c84a555ec7fe82620da (diff)
hwmon: lis3: Cleanup interrupt handling
Irqcfg moved to chip data instead of platform data. This simplifies access in interrupt handler little bit. Input device open and close functions set status for interrupt threaded handler once. Unnecessary check for interrupt source removed since it is enough that active interrupt line indicates that there was an interrupt. 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hwmon/lis3lv02d.h b/drivers/hwmon/lis3lv02d.h
index c5c063de2f48..e54a1672ae64 100644
--- a/drivers/hwmon/lis3lv02d.h
+++ b/drivers/hwmon/lis3lv02d.h
@@ -271,6 +271,8 @@ struct lis3lv02d {
271 struct fasync_struct *async_queue; /* queue for the misc device */ 271 struct fasync_struct *async_queue; /* queue for the misc device */
272 wait_queue_head_t misc_wait; /* Wait queue for the misc device */ 272 wait_queue_head_t misc_wait; /* Wait queue for the misc device */
273 unsigned long misc_opened; /* bit0: whether the device is open */ 273 unsigned long misc_opened; /* bit0: whether the device is open */
274 atomic_t wake_thread;
275 unsigned char irq_cfg;
274 276
275 struct lis3lv02d_platform_data *pdata; /* for passing board config */ 277 struct lis3lv02d_platform_data *pdata; /* for passing board config */
276 struct mutex mutex; /* Serialize poll and selftest */ 278 struct mutex mutex; /* Serialize poll and selftest */