diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-12 21:56:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-12 21:56:03 -0400 |
commit | 8bbbfa70549bd84f29ff331d0ac051897ccbbd72 (patch) | |
tree | 306640629d368960428326201098a881d7fd724f /include/linux | |
parent | bd81ccea8558daab570d70d2c23746413f26cecf (diff) | |
parent | 0cc8d6a9d23d6662da91eeb6bb8e7d1c559850f0 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
Pull input layer updates from Dmitry Torokhov:
"2nd round of updates for the input subsystem. With it input core no
longer limits number of character devices per event handler (such as
evdev) to 32, but switches to dynamic minors once legacy range is
exhausted. This should get multi-seat installations that currently
run our of event devices very quickly.
You will also get an update for Wacom driver and a couple of driver
fixes."
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
Input: extend the number of event (and other) devices
Input: mousedev - mark mousedev interfaces as non-seekable
Input: mousedev - rename mixdev_open to opened_by_mixdev
Input: mousedev - reformat structure initializers
Input: mousedev - factor out psaux code to reduce #ifdefery
Input: samsung-keypad - add clk_prepare and clk_unprepare
Input: atmel_mxt_ts - simplify mxt_dump_message
Input: wacom - clean up wacom_query_tablet_data
Input: wacom - introduce wacom_fix_phy_from_hid
Input: wacom - allow any multi-input Intuos device to set prox
Input: wacom - report correct touch contact size for I5/Bamboo
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/input.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/linux/input.h b/include/linux/input.h index ba4874302939..15464ba6bf53 100644 --- a/include/linux/input.h +++ b/include/linux/input.h | |||
@@ -1396,8 +1396,8 @@ struct input_handle; | |||
1396 | * @start: starts handler for given handle. This function is called by | 1396 | * @start: starts handler for given handle. This function is called by |
1397 | * input core right after connect() method and also when a process | 1397 | * input core right after connect() method and also when a process |
1398 | * that "grabbed" a device releases it | 1398 | * that "grabbed" a device releases it |
1399 | * @fops: file operations this driver implements | 1399 | * @legacy_minors: set to %true by drivers using legacy minor ranges |
1400 | * @minor: beginning of range of 32 minors for devices this driver | 1400 | * @minor: beginning of range of 32 legacy minors for devices this driver |
1401 | * can provide | 1401 | * can provide |
1402 | * @name: name of the handler, to be shown in /proc/bus/input/handlers | 1402 | * @name: name of the handler, to be shown in /proc/bus/input/handlers |
1403 | * @id_table: pointer to a table of input_device_ids this driver can | 1403 | * @id_table: pointer to a table of input_device_ids this driver can |
@@ -1431,7 +1431,7 @@ struct input_handler { | |||
1431 | void (*disconnect)(struct input_handle *handle); | 1431 | void (*disconnect)(struct input_handle *handle); |
1432 | void (*start)(struct input_handle *handle); | 1432 | void (*start)(struct input_handle *handle); |
1433 | 1433 | ||
1434 | const struct file_operations *fops; | 1434 | bool legacy_minors; |
1435 | int minor; | 1435 | int minor; |
1436 | const char *name; | 1436 | const char *name; |
1437 | 1437 | ||
@@ -1499,6 +1499,10 @@ void input_reset_device(struct input_dev *); | |||
1499 | int __must_check input_register_handler(struct input_handler *); | 1499 | int __must_check input_register_handler(struct input_handler *); |
1500 | void input_unregister_handler(struct input_handler *); | 1500 | void input_unregister_handler(struct input_handler *); |
1501 | 1501 | ||
1502 | int __must_check input_get_new_minor(int legacy_base, unsigned int legacy_num, | ||
1503 | bool allow_dynamic); | ||
1504 | void input_free_minor(unsigned int minor); | ||
1505 | |||
1502 | int input_handler_for_each_handle(struct input_handler *, void *data, | 1506 | int input_handler_for_each_handle(struct input_handler *, void *data, |
1503 | int (*fn)(struct input_handle *, void *)); | 1507 | int (*fn)(struct input_handle *, void *)); |
1504 | 1508 | ||