summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoshua Primero <jprimero@nvidia.com>2012-02-22 13:32:36 -0800
committerSimone Willett <swillett@nvidia.com>2012-03-08 15:11:06 -0800
commit30bc36f606443f5f4b6873e769f401a4ac87c33a (patch)
treefb75bfa292e097900b41f5a2efce5fb9121e3182 /include
parent0ea0d72ae4607c61440f4333bd62718a9cea2f03 (diff)
drivers: misc: nct: Fixed spurious nct interrupts
Enabled one-shot mode in the bottom half handler of nct interrupts to force a conversion/comparison. This effectively stops repeated nct interrupts. Signed-off-by: Joshua Primero <jprimero@nvidia.com> Reviewed-on: http://git-master/r/85277 (cherry picked from commit bc90335e0201cba073333c679b2fddff7bb293f1) Change-Id: Id0bd19f8f464ffbd9079fc2910a1bbcd0e621843 Reviewed-on: http://git-master/r/88373 Reviewed-by: Joshua Primero <jprimero@nvidia.com> Tested-by: Joshua Primero <jprimero@nvidia.com> Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/nct1008.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/nct1008.h b/include/linux/nct1008.h
index d2be5dba1563..0a517f1d6d89 100644
--- a/include/linux/nct1008.h
+++ b/include/linux/nct1008.h
@@ -47,6 +47,7 @@ struct nct1008_platform_data {
};
struct nct1008_data {
+ struct workqueue_struct *workqueue;
struct work_struct work;
struct i2c_client *client;
struct nct1008_platform_data plat_data;
@@ -59,6 +60,7 @@ struct nct1008_data {
struct regulator *nct_reg;
long current_lo_limit;
long current_hi_limit;
+ int conv_period_ms;
void (*alert_func)(void *);
void *alert_data;