diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2019-10-02 10:20:19 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2019-10-04 12:31:46 -0700 |
commit | 894616f79200f74af6a0426fa20d986b1f45cd9b (patch) | |
tree | 9370c2eeb1d9e28f868d8d3de086d823b329b775 /include/linux/input.h | |
parent | 463fa44eec2fef50d111ed0199cf593235065c04 (diff) | |
download | linux-stable-894616f79200f74af6a0426fa20d986b1f45cd9b.tar.gz linux-stable-894616f79200f74af6a0426fa20d986b1f45cd9b.tar.bz2 linux-stable-894616f79200f74af6a0426fa20d986b1f45cd9b.zip |
Input: add input_get_poll_interval()
Some drivers need to be able to know the current polling interval for
devices working in polling mode, let's allow them fetching it.
Acked-By: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Tested-by: Michal Vokáč <michal.vokac@ysoft.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include/linux/input.h')
-rw-r--r-- | include/linux/input.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/input.h b/include/linux/input.h index 94f277cd806a..56f2fd32e609 100644 --- a/include/linux/input.h +++ b/include/linux/input.h @@ -383,6 +383,7 @@ int input_setup_polling(struct input_dev *dev, void input_set_poll_interval(struct input_dev *dev, unsigned int interval); void input_set_min_poll_interval(struct input_dev *dev, unsigned int interval); void input_set_max_poll_interval(struct input_dev *dev, unsigned int interval); +int input_get_poll_interval(struct input_dev *dev); int __must_check input_register_handler(struct input_handler *); void input_unregister_handler(struct input_handler *); |