Skip to contentSkip to conversation

Input/Joystick Driver: add support AD7142 joystick driver

PATCH In review Bryan Wu 3 participants 5 messages Mar 26, 2008

Subsystems (3)
lore
Share & tools
lore

Bryan Wu

author
#0 lore raw

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

From: Michael Hennerich <[email protected]>

---
 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
drivers/input/joystick/Kconfig +6 -0
index 7c662ee..e65aeb6 100644
@@ -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
drivers/input/joystick/Makefile +1 -0
index e855abb..8df388f 100644
@@ -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
drivers/input/joystick/ad7142.c new file +447 -0

447 lines not on this page · raw message

Signature · 1 line
1.5.4.3
#1 lore raw
Quoted 17 lines · Bryan Wu

From: Michael Hennerich <[email protected]>

---
 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
drivers/input/joystick/Kconfig +0 -0
index 7c662ee..e65aeb6 100644

drivers/input/joystick/Kconfig config JOYSTICK_XPAD_LEDS · line 287

Quoted 6 lines
drivers/input/joystick/Kconfig +3 -0
@@ -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

does this really have to depend on Blackfin?

regards,

Andre

author
#2 lore raw
Quoted 8 lines
Quoted 8 lines
drivers/input/joystick/Kconfig +0 -0
index 7c662ee..e65aeb6 100644
@@ -282,4 +282,10 @@ config JOYSTICK_XPAD_LEDS
        This option enables support for the LED which surrounds the Big X on
        XBox 360 controller.
 
Quoted 9 lines

drivers/input/joystick/Kconfig config JOYSTICK_XPAD_LEDS · line 287

Quoted 3 lines
drivers/input/joystick/Kconfig +3 -0
+config JOYSTICK_AD7142
+     tristate "Analog Devices AD7142 Joystick support"
+     depends on BLACKFIN && I2C

does this really have to depend on Blackfin?

regards,

Andre

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

Thanks
-Bryan

#3 lore raw
In reply to Bryan Wu
Quoted 5 lines · Bryan Wu

+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

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

author
#4 lore raw
Quoted 10 lines · Mike Frysinger
Quoted 5 lines · Bryan Wu

+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

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

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

Thanks
-Bryan

_______________________________________________
i2c mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/i2c