History log of /drivers/input/keyboard/pxa27x_keypad.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5146c84f87c8aa3d115cea0d77ed3553df426752 29-Nov-2011 JJ Ding <dgdunix@gmail.com> Input: keyboard - use macro module_platform_driver()

Commit 940ab88962bc1aff3273a8356d64577a6e386736 introduced a new macro to
save some platform_driver boilerplate code. Use it.

Signed-off-by: JJ Ding <dgdunix@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
/drivers/input/keyboard/pxa27x_keypad.c
ec4665c46b11f6e444911ba73dddae6044dec909 07-Sep-2011 Yong Zhang <yong.zhang0@gmail.com> Input: remove IRQF_DISABLED from drivers

This flag is a NOOP and can be removed now.

Signed-off-by: Yong Zhang <yong.zhang0@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
/drivers/input/keyboard/pxa27x_keypad.c
3587c258078479824342f33dc513ca7c66d729bc 04-Sep-2010 Mark F. Brown <mark.brown314@gmail.com> ARM: pxa27x_keypad: added wakeup event handler for keypad interrupts

mach-mmp needs to clear wake event in order to clear the keypad interrupt

Signed-off-by: Mark F. Brown <mark.brown314@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
/drivers/input/keyboard/pxa27x_keypad.c
4a2490eac897e3648c4800b1068b56b7e1ad91b3 04-Sep-2010 Mark F. Brown <mark.brown314@gmail.com> ARM: pxa: moved pxa27x_keypad.h to platform pxa directory

mach-mmp utilizes pxa27x_keypad code so we need to move header to
platform pxa directory.

Signed-off-by: Mark F. Brown <mark.brown314@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
/drivers/input/keyboard/pxa27x_keypad.c
288933c02b440621d9c8e7bb5f232cfb7bdef7df 25-Aug-2010 Axel Lin <axel.lin@gmail.com> Input: pxa27x_keypad - remove input_free_device() in pxa27x_keypad_remove()

No need to call input_free_device() after input_unregister_device().

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
/drivers/input/keyboard/pxa27x_keypad.c
5a0e3ad6af8660be21ca98a971cd00f331318c05 24-Mar-2010 Tejun Heo <tj@kernel.org> include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h

percpu.h is included by sched.h and module.h and thus ends up being
included when building most .c files. percpu.h includes slab.h which
in turn includes gfp.h making everything defined by the two files
universally available and complicating inclusion dependencies.

percpu.h -> slab.h dependency is about to be removed. Prepare for
this change by updating users of gfp and slab facilities include those
headers directly instead of assuming availability. As this conversion
needs to touch large number of source files, the following script is
used as the basis of conversion.

http://userweb.kernel.org/~tj/misc/slabh-sweep.py

The script does the followings.

* Scan files for gfp and slab usages and update includes such that
only the necessary includes are there. ie. if only gfp is used,
gfp.h, if slab is used, slab.h.

* When the script inserts a new include, it looks at the include
blocks and try to put the new include such that its order conforms
to its surrounding. It's put in the include block which contains
core kernel includes, in the same order that the rest are ordered -
alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
doesn't seem to be any matching order.

* If the script can't find a place to put a new include (mostly
because the file doesn't have fitting include block), it prints out
an error message indicating which .h file needs to be added to the
file.

The conversion was done in the following steps.

1. The initial automatic conversion of all .c files updated slightly
over 4000 files, deleting around 700 includes and adding ~480 gfp.h
and ~3000 slab.h inclusions. The script emitted errors for ~400
files.

2. Each error was manually checked. Some didn't need the inclusion,
some needed manual addition while adding it to implementation .h or
embedding .c file was more appropriate for others. This step added
inclusions to around 150 files.

3. The script was run again and the output was compared to the edits
from #2 to make sure no file was left behind.

4. Several build tests were done and a couple of problems were fixed.
e.g. lib/decompress_*.c used malloc/free() wrappers around slab
APIs requiring slab.h to be added manually.

5. The script was run on all .h files but without automatically
editing them as sprinkling gfp.h and slab.h inclusions around .h
files could easily lead to inclusion dependency hell. Most gfp.h
inclusion directives were ignored as stuff from gfp.h was usually
wildly available and often used in preprocessor macros. Each
slab.h inclusion directive was examined and added manually as
necessary.

6. percpu.h was updated not to include slab.h.

7. Build test were done on the following configurations and failures
were fixed. CONFIG_GCOV_KERNEL was turned off for all tests (as my
distributed build env didn't work with gcov compiles) and a few
more options had to be turned off depending on archs to make things
build (like ipr on powerpc/64 which failed due to missing writeq).

* x86 and x86_64 UP and SMP allmodconfig and a custom test config.
* powerpc and powerpc64 SMP allmodconfig
* sparc and sparc64 SMP allmodconfig
* ia64 SMP allmodconfig
* s390 SMP allmodconfig
* alpha SMP allmodconfig
* um on x86_64 SMP allmodconfig

8. percpu.h modifications were reverted so that it could be applied as
a separate patch and serve as bisection point.

Given the fact that I had only a couple of failures from tests on step
6, I'm fairly confident about the coverage of this conversion patch.
If there is a breakage, it's likely to be something in one of the arch
headers which should be easily discoverable easily on most builds of
the specific arch.

Signed-off-by: Tejun Heo <tj@kernel.org>
Guess-its-ok-by: Christoph Lameter <cl@linux-foundation.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
/drivers/input/keyboard/pxa27x_keypad.c
2f82af08fcc7dc01a7e98a49a5995a77e32a2925 14-Sep-2009 Nicolas Pitre <nico@fluxnic.net> Nicolas Pitre has a new email address

Due to problems at cam.org, my nico@cam.org email address is no longer
valid. FRom now on, nico@fluxnic.net should be used instead.

Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
/drivers/input/keyboard/pxa27x_keypad.c
bd96f37895197563bc1d6d6f7c012b3ae7df1c45 05-Sep-2009 Dmitry Torokhov <dmitry.torokhov@gmail.com> Input: pxa27x_keypad - allow modifying keymap from userspace

Tested-by: Mike Rapoport <mike@compulab.co.il>
Acked-by: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
/drivers/input/keyboard/pxa27x_keypad.c
b0010911d52dc7836a78c9f5c3b32ce4ac05b3c3 25-Jul-2009 Dmitry Torokhov <dmitry.torokhov@gmail.com> Input: pxa27x_keypad - switch to using dev_pm_ops

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
/drivers/input/keyboard/pxa27x_keypad.c
52ec7752b457311f10f5a8d16faa8ac2e684eb65 23-Jul-2009 Dmitry Torokhov <dmitry.torokhov@gmail.com> Input: pxa27x_keypad - remove extra clk_disable

clk_disable() in remove method is not needed since we already
have clk_disable in pxa27x_keypad_close().

Also make sure the driver uses resource_size() and helpers from
include/input/matrix_keypad.h

Tested-by: Mike Rapoport <mike@compulab.co.il>
Acked-by: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
/drivers/input/keyboard/pxa27x_keypad.c
e0d8b13ae1e3ea747620580b6f777992148de182 11-Nov-2008 Russell King <rmk@dyn-67.arm.linux.org.uk> [ARM] pxa: don't pass a consumer clock name for devices with unique clocks

Where devices only have one consumer, passing a consumer clock ID
has no real benefit. Remove it.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
/drivers/input/keyboard/pxa27x_keypad.c
a09e64fbc0094e3073dbb09c3b4bfe4ab669244b 05-Aug-2008 Russell King <rmk@dyn-67.arm.linux.org.uk> [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach

This just leaves include/asm-arm/plat-* to deal with.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
/drivers/input/keyboard/pxa27x_keypad.c
0f8469a54f7bd65f2c740a5480c56260dc8a7ae0 03-Aug-2008 Russell King <rmk@dyn-67.arm.linux.org.uk> [ARM] Eliminate useless includes of asm/mach-types.h

There are 43 includes of asm/mach-types.h by files that don't
reference anything from that file. Remove these unnecessary
includes.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
/drivers/input/keyboard/pxa27x_keypad.c
15439dd37f92f930ac7fc65a4f261834e4215bb0 17-Jun-2008 Dmitry Torokhov <dmitry.torokhov@gmail.com> Merge branch 'for-linus' into next

Conflicts:

drivers/input/mouse/appletouch.c
39ab9ddeb3e9573a1ea9a17a1431ea5c81681964 02-Jun-2008 Eric Miao <eric.y.miao@gmail.com> Input: pxa27x_keypad - add wakeup support

Signed-off-by: Eric Miao <eric.miao@marvell.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
/drivers/input/keyboard/pxa27x_keypad.c
471637a575329f9250e7e4099e84084820a35e11 28-May-2008 Antonio Ospite <ospite@studenti.unina.it> Input: pxa27x_keypad - miscellaneous fixes

1. Set input bits for direct keys codes
2. Set input bits for rotary encoder codes only if rotary
encoder is enabled
3. Enable EV_REL only if rotary encoder is enabled and rel_codes
are set up

Signed-off-by: Antonio Ospite <ao2@openezx.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
/drivers/input/keyboard/pxa27x_keypad.c
d7b5247bbcfba2bc96d4b3dec9086a4f1a31363b 18-Apr-2008 Kay Sievers <kay.sievers@vrfy.org> Input: add MODULE_ALIAS() to hotpluggable platform modules

Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform modalias
is prefixed with "platform:". Add MODULE_ALIAS() to the hotpluggable
"input" platform drivers, to re-enable auto loading.

[dbrownell@users.sourceforge.net: more drivers, registration fixes]
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
/drivers/input/keyboard/pxa27x_keypad.c
688dad4f4c9004fcaa4cadad167b064342be5d63 20-Mar-2008 Samuel Ortiz <sameo@openedhand.com> Input: pxa27x - fix keypad KPC macros

We want to mask (key_number - 1), not key_number. The current
implementation works fine for all values but the maximum one,
i.e. 8.

Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
Acked-by: Eric Miao <eric.miao@marvell.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
/drivers/input/keyboard/pxa27x_keypad.c
76cb44e1a853f9c438ccf62eb5006f089430da72 31-Jan-2008 Eric Miao <eric.y.miao@gmail.com> Input: pxa27x_keypad - add debounce_interval to the keypad platform data

Currently, only one debounce_interval is introduced for both direct and
matrix keys. This is true in most cases, although the keypad controller
supports different debounce for direct/matrix keys.

Some platforms do require this to be tuned, instead of the default
reset value of 100ms.

Rotary encoder will always use zero debounce time for now to achieve
certain sensitivity.

Signed-off-by: Eric Miao <eric.miao@marvell.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
/drivers/input/keyboard/pxa27x_keypad.c
9c60debd2a666dc0e8466dee556af30ea68e97d2 31-Jan-2008 Eric Miao <eric.miao@marvell.com> Input: pxa27x_keypad - use device resources for I/O memory mapping and IRQ

1. use ioremap() for registers access, this improves the portability
of the driver (e.g. same IP on different processor with different
I/O memory range), and make it possible to remove those registers
definition in pxa-regs.h as PXA is undergoing a clean-up of that
header file

2. use device specific IRQ instead of hardcoded IRQ_KEYPAD, same
reason as above

3. clean up the error handling path in _probe()

4. remove DRIVER_NAME and use pdev->name when necessary, we don't
actually need a constant string literals

Signed-off-by: Eric Miao <eric.miao@marvell.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
/drivers/input/keyboard/pxa27x_keypad.c
62059d9e912717abbfb875440621d935d091f289 31-Jan-2008 Eric Miao <eric.y.miao@gmail.com> Input: pxa27x_keypad - enable rotary encoders and direct keys

1. Rotary encoder events can be configured either as relative events
as the legacy code does or as any specified key code, this is
useful on some platform which uses the rotary keys as
KEY_{UP/DOWN/LEFT/RIGHT}

2. Add support for direct keys, the corresponding keycodes for each
direct key can now be specified within the platform data

3. Remove the direct/rotary key detection code from the IRQ handler
to dedicated functions to improve readability

Signed-off-by: Eric Miao <eric.miao@marvell.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
/drivers/input/keyboard/pxa27x_keypad.c
d7416f9eaa5427f47648973aac3a65e7a0eeda04 31-Jan-2008 Eric Miao <eric.y.miao@gmail.com> Input: pxa27x_keypad - introduce pxa27x_keypad_config()

Introduce pxa27x_keypad_config() for keypad registers configuration
and remove the reg_kpc, reg_kprec from platform data structure
so that configurations of keypad registers can be centralized to a
single function.

It can also be re-used when resuming.

Signed-off-by: Eric Miao <eric.miao@marvell.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
/drivers/input/keyboard/pxa27x_keypad.c
1814db69698479eec2c000a43c83b5f263f6fbb6 31-Jan-2008 Eric Miao <eric.y.miao@gmail.com> Input: pxa27x_keypad - introduce driver structure and use KEY() to define matrix keys

1. Introduce the "struct pxa27x_keypad" structure for driver specific
information, such as "struct clk", generated matrix key codes and
so on

2. Use KEY() macro to define matrix keys, instead of original 8x8 map
this makes definition easier with keypad where keys are sparse

3. Keep a generated array in "struct pxa27x_keypad" for fast lookup

4. Separate the matrix scan into a dedicated function for readability
and report only those keys whose state has been changed, instead
of report all states

5. Make use of KPAS to decide the faster path if only one key has been
detected

Signed-off-by: Eric Miao <eric.miao@marvell.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
/drivers/input/keyboard/pxa27x_keypad.c
1a1cd739a4b985f87c47e2809db7e240dba2c385 31-Jan-2008 Eric Miao <eric.y.miao@gmail.com> Input: pxa27x_keypad - remove pin configuration from the driver

The pin configurations will slowly be moved to the board specific code
at initialization thus to make the driver more generic.

Signed-off-by: Eric Miao <eric.miao@marvell.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
/drivers/input/keyboard/pxa27x_keypad.c
0e5f11aa80bd01d048f374cc64ef0819ad7d86f2 31-Jan-2008 Eric Miao <eric.y.miao@gmail.com> Input: pxa27x_keypad - rename the driver (was pxa27x_keyboard)

The controller should really be called keypad, and also align
the naming of functions and structures to use "pxa27x_keypad"
as prefix, instead of "pxakbd".

Signed-off-by: Eric Miao <eric.miao@marvell.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
/drivers/input/keyboard/pxa27x_keypad.c