aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/ams/ams.h
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2007-09-26 00:01:41 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2007-09-26 00:01:41 -0400
commit3fdbc340876572e8b467d199946b7b475cb9cd75 (patch)
treecc305d68ddf98c028d2e9a032580743b02414cf5 /drivers/hwmon/ams/ams.h
parentd5cf2b99dac2e3ff17c7a80fcc71e538b38a3c75 (diff)
downloadkernel_samsung_smdk4412-3fdbc340876572e8b467d199946b7b475cb9cd75.zip
kernel_samsung_smdk4412-3fdbc340876572e8b467d199946b7b475cb9cd75.tar.gz
kernel_samsung_smdk4412-3fdbc340876572e8b467d199946b7b475cb9cd75.tar.bz2
HWMON: ams - convert to use input-polldev
Switch to using input-polldev skeleton instead of implementing polling loop by itself. Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Acked-by: Michael Hanselmann <linux-kernel@hansmi.ch>
Diffstat (limited to 'drivers/hwmon/ams/ams.h')
-rw-r--r--drivers/hwmon/ams/ams.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/hwmon/ams/ams.h b/drivers/hwmon/ams/ams.h
index 240730e..a6221e5 100644
--- a/drivers/hwmon/ams/ams.h
+++ b/drivers/hwmon/ams/ams.h
@@ -1,5 +1,5 @@
#include <linux/i2c.h>
-#include <linux/input.h>
+#include <linux/input-polldev.h>
#include <linux/kthread.h>
#include <linux/mutex.h>
#include <linux/spinlock.h>
@@ -52,8 +52,7 @@ struct ams {
#endif
/* Joystick emulation */
- struct task_struct *kthread;
- struct input_dev *idev;
+ struct input_polled_dev *idev;
__u16 bustype;
/* calibrated null values */