Input/Joystick Driver: add support AD7142 joystick driver
Subsystems (3)
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
@@ -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
@@ -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
Quoted 17 lines · Bryan Wu
From: Michael Hennerich <[email protected]>
Signed-off-by Michael Hennerich <[email protected]>Signed-off-by Bryan Wu <[email protected]>Signed-off-by Bryan Wu <[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.cdrivers/input/joystick/Kconfig +0
-0
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
Quoted 8 lines
Quoted 8 lines
drivers/input/joystick/Kconfig +0
-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.
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 && I2Cdoes 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
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
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