]> git.baikalelectronics.ru Git - kernel.git/commit
Input: ep93xx_keypad - update driver to new core support
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 15 Dec 2009 16:39:51 +0000 (08:39 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 15 Dec 2009 16:54:45 +0000 (08:54 -0800)
commit38135d3c8932190a5dbcfc54553a34e267e8c5be
treed3448d974cd96bd353e5b82b49fa2b19f161b531
parent215d8be01c511df3ce1a7d3bd43aaf4d124944a7
Input: ep93xx_keypad - update driver to new core support

This driver was merged before the ep93xx core support was added
for the keypad clock and acquiring/releasing the necessary gpio's.
Now that the proper support is in the ep93xx core this driver
needs to be updated to work correctly.

Summary of changes:
  1) Remove some unused members from the platform data.
  2) Remove the custom KEY macro and use the ones available in
     <linux/input/matrix_keypad.h>
  3) Remove the keypad_{readl/writel} macros and just use
     __raw_{readl/writel} directly.
  4) Update the clk_set_rate() call to work with the core support.
  5) Cleanup the probe routine and remove some unneeded messages.
  6) Use the ep93xx core functions to acquire and release the gpio's.
  7) Fix the clk_get() call to get the keypad clock.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
arch/arm/mach-ep93xx/include/mach/ep93xx_keypad.h
drivers/input/keyboard/ep93xx_keypad.c