forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
…/git/dtor/input * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (35 commits) Input: add driver for Synaptics I2C touchpad Input: synaptics - add support for reporting x/y resolution Input: ALPS - handle touchpoints buttons correctly Input: gpio-keys - change timer to workqueue Input: ads7846 - pin change interrupt support Input: add support for touchscreen on W90P910 ARM platform Input: appletouch - improve finger detection Input: wacom - clear Intuos4 wheel data when finger leaves proximity Input: ucb1400 - move static function from header into core Input: add driver for EETI touchpanels Input: ads7846 - more detailed model name in sysfs Input: ads7846 - support swapping x and y axes Input: ati_remote2 - use non-atomic bitops Input: introduce lm8323 keypad driver Input: psmouse - ESD workaround fix for OLPC XO touchpad Input: tsc2007 - make sure platform provides get_pendown_state() Input: uinput - flush all pending ff effects before destroying device Input: simplify name handling for certain input handles Input: serio - do not use deprecated dev.power.power_state Input: wacom - add support for Intuos4 tablets ...
- Loading branch information
Showing
52 changed files
with
4,256 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* arch/arm/mach-ep93xx/include/mach/ep93xx_keypad.h | ||
*/ | ||
|
||
#ifndef __ASM_ARCH_EP93XX_KEYPAD_H | ||
#define __ASM_ARCH_EP93XX_KEYPAD_H | ||
|
||
#define MAX_MATRIX_KEY_ROWS (8) | ||
#define MAX_MATRIX_KEY_COLS (8) | ||
|
||
/* flags for the ep93xx_keypad driver */ | ||
#define EP93XX_KEYPAD_DISABLE_3_KEY (1<<0) /* disable 3-key reset */ | ||
#define EP93XX_KEYPAD_DIAG_MODE (1<<1) /* diagnostic mode */ | ||
#define EP93XX_KEYPAD_BACK_DRIVE (1<<2) /* back driving mode */ | ||
#define EP93XX_KEYPAD_TEST_MODE (1<<3) /* scan only column 0 */ | ||
#define EP93XX_KEYPAD_KDIV (1<<4) /* 1/4 clock or 1/16 clock */ | ||
#define EP93XX_KEYPAD_AUTOREPEAT (1<<5) /* enable key autorepeat */ | ||
|
||
/** | ||
* struct ep93xx_keypad_platform_data - platform specific device structure | ||
* @matrix_key_rows: number of rows in the keypad matrix | ||
* @matrix_key_cols: number of columns in the keypad matrix | ||
* @matrix_key_map: array of keycodes defining the keypad matrix | ||
* @matrix_key_map_size: ARRAY_SIZE(matrix_key_map) | ||
* @debounce: debounce start count; terminal count is 0xff | ||
* @prescale: row/column counter pre-scaler load value | ||
* @flags: see above | ||
*/ | ||
struct ep93xx_keypad_platform_data { | ||
unsigned int matrix_key_rows; | ||
unsigned int matrix_key_cols; | ||
unsigned int *matrix_key_map; | ||
int matrix_key_map_size; | ||
unsigned int debounce; | ||
unsigned int prescale; | ||
unsigned int flags; | ||
}; | ||
|
||
/* macro for creating the matrix_key_map table */ | ||
#define KEY(row, col, val) (((row) << 28) | ((col) << 24) | (val)) | ||
|
||
#endif /* __ASM_ARCH_EP93XX_KEYPAD_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -167,5 +167,6 @@ module_exit(fm801_gp_exit); | |
|
||
MODULE_DEVICE_TABLE(pci, fm801_gp_id_table); | ||
|
||
MODULE_DESCRIPTION("FM801 gameport driver"); | ||
MODULE_AUTHOR("Takashi Iwai <[email protected]>"); | ||
MODULE_LICENSE("GPL"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,16 +30,6 @@ MODULE_AUTHOR("Vojtech Pavlik <[email protected]>"); | |
MODULE_DESCRIPTION("Generic gameport layer"); | ||
MODULE_LICENSE("GPL"); | ||
|
||
EXPORT_SYMBOL(__gameport_register_port); | ||
EXPORT_SYMBOL(gameport_unregister_port); | ||
EXPORT_SYMBOL(__gameport_register_driver); | ||
EXPORT_SYMBOL(gameport_unregister_driver); | ||
EXPORT_SYMBOL(gameport_open); | ||
EXPORT_SYMBOL(gameport_close); | ||
EXPORT_SYMBOL(gameport_set_phys); | ||
EXPORT_SYMBOL(gameport_start_polling); | ||
EXPORT_SYMBOL(gameport_stop_polling); | ||
|
||
/* | ||
* gameport_mutex protects entire gameport subsystem and is taken | ||
* every time gameport port or driver registrered or unregistered. | ||
|
@@ -162,6 +152,7 @@ void gameport_start_polling(struct gameport *gameport) | |
|
||
spin_unlock(&gameport->timer_lock); | ||
} | ||
EXPORT_SYMBOL(gameport_start_polling); | ||
|
||
void gameport_stop_polling(struct gameport *gameport) | ||
{ | ||
|
@@ -172,6 +163,7 @@ void gameport_stop_polling(struct gameport *gameport) | |
|
||
spin_unlock(&gameport->timer_lock); | ||
} | ||
EXPORT_SYMBOL(gameport_stop_polling); | ||
|
||
static void gameport_run_poll_handler(unsigned long d) | ||
{ | ||
|
@@ -516,6 +508,7 @@ void gameport_set_phys(struct gameport *gameport, const char *fmt, ...) | |
vsnprintf(gameport->phys, sizeof(gameport->phys), fmt, args); | ||
va_end(args); | ||
} | ||
EXPORT_SYMBOL(gameport_set_phys); | ||
|
||
/* | ||
* Prepare gameport port for registration. | ||
|
@@ -658,6 +651,7 @@ void __gameport_register_port(struct gameport *gameport, struct module *owner) | |
gameport_init_port(gameport); | ||
gameport_queue_event(gameport, owner, GAMEPORT_REGISTER_PORT); | ||
} | ||
EXPORT_SYMBOL(__gameport_register_port); | ||
|
||
/* | ||
* Synchronously unregisters gameport port. | ||
|
@@ -669,6 +663,7 @@ void gameport_unregister_port(struct gameport *gameport) | |
gameport_destroy_port(gameport); | ||
mutex_unlock(&gameport_mutex); | ||
} | ||
EXPORT_SYMBOL(gameport_unregister_port); | ||
|
||
|
||
/* | ||
|
@@ -728,7 +723,7 @@ int __gameport_register_driver(struct gameport_driver *drv, struct module *owner | |
* Temporarily disable automatic binding because probing | ||
* takes long time and we are better off doing it in kgameportd | ||
*/ | ||
drv->ignore = 1; | ||
drv->ignore = true; | ||
|
||
error = driver_register(&drv->driver); | ||
if (error) { | ||
|
@@ -741,7 +736,7 @@ int __gameport_register_driver(struct gameport_driver *drv, struct module *owner | |
/* | ||
* Reset ignore flag and let kgameportd bind the driver to free ports | ||
*/ | ||
drv->ignore = 0; | ||
drv->ignore = false; | ||
error = gameport_queue_event(drv, NULL, GAMEPORT_ATTACH_DRIVER); | ||
if (error) { | ||
driver_unregister(&drv->driver); | ||
|
@@ -750,14 +745,15 @@ int __gameport_register_driver(struct gameport_driver *drv, struct module *owner | |
|
||
return 0; | ||
} | ||
EXPORT_SYMBOL(__gameport_register_driver); | ||
|
||
void gameport_unregister_driver(struct gameport_driver *drv) | ||
{ | ||
struct gameport *gameport; | ||
|
||
mutex_lock(&gameport_mutex); | ||
|
||
drv->ignore = 1; /* so gameport_find_driver ignores it */ | ||
drv->ignore = true; /* so gameport_find_driver ignores it */ | ||
gameport_remove_pending_events(drv); | ||
|
||
start_over: | ||
|
@@ -774,6 +770,7 @@ void gameport_unregister_driver(struct gameport_driver *drv) | |
|
||
mutex_unlock(&gameport_mutex); | ||
} | ||
EXPORT_SYMBOL(gameport_unregister_driver); | ||
|
||
static int gameport_bus_match(struct device *dev, struct device_driver *drv) | ||
{ | ||
|
@@ -812,6 +809,7 @@ int gameport_open(struct gameport *gameport, struct gameport_driver *drv, int mo | |
gameport_set_drv(gameport, drv); | ||
return 0; | ||
} | ||
EXPORT_SYMBOL(gameport_open); | ||
|
||
void gameport_close(struct gameport *gameport) | ||
{ | ||
|
@@ -822,6 +820,7 @@ void gameport_close(struct gameport *gameport) | |
if (gameport->close) | ||
gameport->close(gameport); | ||
} | ||
EXPORT_SYMBOL(gameport_close); | ||
|
||
static int __init gameport_init(void) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.