summaryrefslogtreecommitdiffstats
path: root/drivers/macintosh/ams/ams.h
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2019-10-02 14:48:54 -0700
committerMichael Ellerman <mpe@ellerman.id.au>2020-05-28 23:24:32 +1000
commit0c444d98efad89e2a189d1a5a188e0385edac647 (patch)
tree106b4efa76592a5e289405f27b56bc4af15afd94 /drivers/macintosh/ams/ams.h
parent0755e85570a4615ca674ad6489d44d63916f1f3e (diff)
downloadlinux-0c444d98efad89e2a189d1a5a188e0385edac647.tar.bz2
macintosh/ams-input: switch to using input device polling mode
Now that instances of input_dev support polling mode natively, we no longer need to create input_polled_dev instance. Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20191002214854.GA114387@dtor-ws
Diffstat (limited to 'drivers/macintosh/ams/ams.h')
-rw-r--r--drivers/macintosh/ams/ams.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/macintosh/ams/ams.h b/drivers/macintosh/ams/ams.h
index fe8d596f9845..935bdd9cd9a6 100644
--- a/drivers/macintosh/ams/ams.h
+++ b/drivers/macintosh/ams/ams.h
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0 */
#include <linux/i2c.h>
-#include <linux/input-polldev.h>
+#include <linux/input.h>
#include <linux/kthread.h>
#include <linux/mutex.h>
#include <linux/spinlock.h>
@@ -51,7 +51,7 @@ struct ams {
#endif
/* Joystick emulation */
- struct input_polled_dev *idev;
+ struct input_dev *idev;
__u16 bustype;
/* calibrated null values */