[PATCH 1/1] Input/Joystick Driver: add support AD7142 joystick driver

Previous thread: DMA not working on SATA? by Alex Bennee on Wednesday, March 26, 2008 - 5:59 am. (2 messages)

Next thread: [PATCH 1/1] [GPIO]: new arch-independent simple-gpio driver by Bryan Wu on Wednesday, March 26, 2008 - 9:05 pm. (4 messages)
To: <dmitry.torokhov@...>, <khali@...>
Cc: <linux-input@...>, <i2c@...>, <linux-kernel@...>, Michael Hennerich <michael.hennerich@...>, Bryan Wu <bryan.wu@...>, Bryan Wu <cooloney@...>
Date: Wednesday, March 26, 2008 - 9:00 pm

From: Michael Hennerich <michael.hennerich@analog.com>

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
---
drivers/input/joystick/Kconfig | 6 +
drivers/input/joystick/Makefile | 1 +
drivers/input/joystick/ad7142.c | 447 +++++++++++++++++++++++++++++++++++++++
3 files changed, 454 insertions(+), 0 deletions(-)
create mode 100644 drivers/input/joystick/ad7142.c

diff --git a/drivers/input/joystick/Kconfig b/drivers/input/joystick/Kconfig
index 7c662ee..e65aeb6 100644
--- a/drivers/input/joystick/Kconfig
+++ b/drivers/input/joystick/Kconfig
@@ -282,4 +282,10 @@ config JOYSTICK_XPAD_LEDS
This option enables support for the LED which surrounds the Big X on
XBox 360 controller.

+config JOYSTICK_AD7142
+ tristate "Analog Devices AD7142 Joystick support"
+ depends on BLACKFIN && I2C
+ ---help---
+ Say Y here if you want to support an AD7142 joystick
+
endif
diff --git a/drivers/input/joystick/Makefile b/drivers/input/joystick/Makefile
index e855abb..8df388f 100644
--- a/drivers/input/joystick/Makefile
+++ b/drivers/input/joystick/Makefile
@@ -5,6 +5,7 @@
# Each configuration option enables a list of files.

obj-$(CONFIG_JOYSTICK_A3D) += a3d.o
+obj-$(CONFIG_JOYSTICK_AD7142) += ad7142.o
obj-$(CONFIG_JOYSTICK_ADI) += adi.o
obj-$(CONFIG_JOYSTICK_AMIGA) += amijoy.o
obj-$(CONFIG_JOYSTICK_ANALOG) += analog.o
diff --git a/drivers/input/joystick/ad7142.c b/drivers/input/joystick/ad7142.c
new file mode 100644
index 0000000..900affd
--- /dev/null
+++ b/drivers/input/joystick/ad7142.c
@@ -0,0 +1,447 @@
+/*
+ * I2C Based AD7142 Joystick Input Device Driver
+ *
+ * Copyright 2005-2008 Analog Devices Inc.
+ *
+ * Enter bugs at http://blackfin.uclinux.org/
+ *
+ * Licensed under the GPL-2 or later.
+ */
+
+#include <linux/module.h>
+#include <linux/init.h>
+#include <linux/input.h>
+#inc...

To: Bryan Wu <cooloney@...>
Cc: <dmitry.torokhov@...>, <khali@...>, <linux-input@...>, <i2c@...>, <linux-kernel@...>, Michael Hennerich <michael.hennerich@...>, Bryan Wu <bryan.wu@...>
Date: Wednesday, March 26, 2008 - 10:36 am

since you're going to send another patch anyways ;), this kconfig text
could use a line telling you the module name if built as a module.
-mike
--

To: Mike Frysinger <vapier.adi@...>
Cc: <dmitry.torokhov@...>, <khali@...>, <linux-input@...>, <i2c@...>, <linux-kernel@...>, Michael Hennerich <michael.hennerich@...>, Bryan Wu <bryan.wu@...>
Date: Wednesday, March 26, 2008 - 12:15 pm

No problem, I am waiting you guys to give some comments and update
this driver later.

Thanks
-Bryan
--

To: Bryan Wu <cooloney@...>
Cc: <dmitry.torokhov@...>, <khali@...>, <linux-input@...>, <i2c@...>, <linux-kernel@...>, Michael Hennerich <michael.hennerich@...>, Bryan Wu <bryan.wu@...>
Date: Wednesday, March 26, 2008 - 6:18 am

does this really have to depend on Blackfin?

regards,

Andre
--

To: Andre Haupt <andre@...>
Cc: <dmitry.torokhov@...>, <khali@...>, <linux-input@...>, <i2c@...>, <linux-kernel@...>, Michael Hennerich <michael.hennerich@...>, Bryan Wu <bryan.wu@...>
Date: Wednesday, March 26, 2008 - 6:47 am

Right, I think it is ok for other architecture, while I only tested on Blackfin.
I will remove this depends.

Thanks
-Bryan
--

Previous thread: DMA not working on SATA? by Alex Bennee on Wednesday, March 26, 2008 - 5:59 am. (2 messages)

Next thread: [PATCH 1/1] [GPIO]: new arch-independent simple-gpio driver by Bryan Wu on Wednesday, March 26, 2008 - 9:05 pm. (4 messages)