History log of /drivers/input/keyboard/tca8418_keypad.c
Revision Date Author Comments
c16134976fb27d325ae037a8b39b537a77ba1d12 25-Apr-2014 Dr. H. Nikolaus Schaller <hns@goldelico.com> Input: tca8418 - fix loading this driver as a module from a device tree

Loading the tca8418 driver as a module on a device tree based system needs
a MODULE_ALIAS because the driver name does not match the automatic
name generation rules of a 'compatible' entry on i2c bus.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
43840415339f1600f281211cfb5400fab696536e 25-Feb-2013 Simon Glass <sjg@chromium.org> input: matrix-keymap: Add function to read the new DT binding

We now have a binding which adds two parameters to the matrix keypad DT
node. This is separate from the GPIO-driven matrix keypad binding, and
unfortunately incompatible, since that uses row-gpios/col-gpios for the
row and column counts.

So the easiest option here is to provide a function for non-GPIO drivers
to use to decode the binding.

Note: We could in fact create an entirely separate structure to hold
these two fields, but it does not seem worth it, yet. If we have more
parameters then we can add this, and then refactor each driver to hold
such a structure.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Tested-by: Sourav Poddar <sourav.poddar@ti.com> (v2)
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
0fe763c570ad2701c830b9e4e53c65ad89c11c32 22-Dec-2012 Greg Kroah-Hartman <gregkh@linuxfoundation.org> Drivers: misc: remove __dev* attributes.

CONFIG_HOTPLUG is going away as an option. As a result, the __dev*
markings need to be removed.

This change removes the use of __devinit, __devexit_p, __devinitdata,
__devinitconst, and __devexit from these drivers.

Based on patches originally written by Bill Pemberton, but redone by me
in order to handle some of the coding style issues better, by hand.

Cc: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16ff7cb1848a8898ff19f77b4a9632a73ff98457 05-Nov-2012 Dmitry Torokhov <dmitry.torokhov@gmail.com> Input: tca8418-keypad - switch to using managed resources

Let's switch to using devm_*() interfaces to manage our resources,
thus will simplify error unwinding a bit.

Reviewed-by: Alban Bedel <alban.bedel@avionic-design.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
91c5d67f17784078169bdcce4c21df82ac6c234c 14-Nov-2012 Dmitry Torokhov <dmitry.torokhov@gmail.com> Input: tca8418_keypad - increase severity of failures in probe()

Failures to build a keymap, request an IRQ, or register input device are
fatal for the driver, therefore the messages should have "error" severity
instead of "debug".

Reviewed-by: Alban Bedel <alban.bedel@avionic-design.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
5cc0dfe043f84a777bf9d66dc48cc2b83709c9ef 14-Nov-2012 Dmitry Torokhov <dmitry.torokhov@gmail.com> Input: tca8418_keypad - move device ID tables closer to where they are used

This matches structure of most other input drivers.

Reviewed-by: Alban Bedel <alban.bedel@avionic-design.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
cdbe8a86379b9002598a4d14791dc8e790b1f5f5 14-Nov-2012 Dmitry Torokhov <dmitry.torokhov@gmail.com> Input: tca8418_keypad - use dev_get_platdata() to retrieve platform data

We need to use proper accessor functions instead of directly poking into
various structures.

Reviewed-by: Alban Bedel <alban.bedel@avionic-design.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
efce8a412161b0555254bd6ac1dcdfb7886bfd8c 14-Nov-2012 Dmitry Torokhov <dmitry.torokhov@gmail.com> Input: tca8418_keypad - use a temporary variable for parent device

Use a temporary variable for our parent device (coming from I2C client
structure); we'll be also using it during conversion to managed resources.

Reviewed-by: Alban Bedel <alban.bedel@avionic-design.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
bf7f5316cbacbcb7d3c337eba36322cab255dec0 08-Nov-2012 Alban Bedel <alban.bedel@avionic-design.de> Input: tca8418_keypad - add support for shared interrupt

Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
e89e29b8585379c844b03fb3aa2cca73e2bc5b26 05-Nov-2012 Alban Bedel <alban.bedel@avionic-design.de> Input: tca8418_keypad - add support for device tree bindings

Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
e2619cf78e19476bfd7ceaefa9eff0847529346e 24-Nov-2012 Bill Pemberton <wfp5p@virginia.edu> Input: remove use of __devexit

CONFIG_HOTPLUG is going away as an option so __devexit is no
longer needed.

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
5298cc4cc753bbe4c530b41341834f6ef3344d0d 24-Nov-2012 Bill Pemberton <wfp5p@virginia.edu> Input: remove use of __devinit

CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1cb0aa88179b7a71c240529e9d781d7bbb43d2e8 24-Nov-2012 Bill Pemberton <wfp5p@virginia.edu> Input: remove use of __devexit_p

CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer
needed.

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
9b7e31bbf4bb58b12e11a7f24b7c3e48bbd2f4da 04-Jul-2012 Lars-Peter Clausen <lars@metafoo.de> Input: request threaded-only IRQs with IRQF_ONESHOT

Since commit 1c6c69525b ("genirq: Reject bogus threaded irq requests")
threaded IRQs without a primary handler need to be requested with
IRQF_ONESHOT, otherwise the request will fail. This patch adds the
IRQF_ONESHOT to input drivers where it is missing. Not modified by
this patch are those drivers where the requested IRQ will always be a
nested IRQ (e.g. because it's part of an MFD), since for this special
case IRQF_ONESHOT is not required to be specified when requesting the
IRQ.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1932811f426fee71b7ece67e70aeba7e1b0ebb6d 11-May-2012 Dmitry Torokhov <dmitry.torokhov@gmail.com> Input: matrix-keymap - uninline and prepare for device tree support

Change matrix-keymap helper to be out-of-line, like sparse keymap,
allow the helper perform basic keymap validation and return errors,
and prepare for device tree support.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
fb6c721b69d4ac518b9be6de8f44ba87a0c0d235 29-Oct-2011 Kyle Manna <kyle.manna@fuel7.com> Input: tca8418_keypad - initial driver release

This driver has been tested with hardware and works as expected. To use
it add the platform data as appropriate and register it with the
corresponding I2C bus.

Signed-off-by: Kyle Manna <kyle.manna@fuel7.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>