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 14:11:38 -0700
commite726111f953f8f5b922b953caf06ba6790c5fbaa (patch)
tree4c2355531dad72055f3d8d1e704947d0210fd32a /drivers/hwmon/lis3lv02d.h
parentf9deb41f91c41d9d91a24c84a555ec7fe82620da (diff)
downloadkernel_samsung_smdk4412-e726111f953f8f5b922b953caf06ba6790c5fbaa.zip
kernel_samsung_smdk4412-e726111f953f8f5b922b953caf06ba6790c5fbaa.tar.gz
kernel_samsung_smdk4412-e726111f953f8f5b922b953caf06ba6790c5fbaa.tar.bz2
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 c5c063d..e54a167 100644
--- a/drivers/hwmon/lis3lv02d.h
+++ b/drivers/hwmon/lis3lv02d.h
@@ -271,6 +271,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;
+ unsigned char irq_cfg;
struct lis3lv02d_platform_data *pdata; /* for passing board config */
struct mutex mutex; /* Serialize poll and selftest */