diff options
author | Sean Young <sean@mess.org> | 2016-07-10 13:34:38 -0300 |
---|---|---|
committer | Tao Huang <huangtao@rock-chips.com> | 2018-12-10 20:36:01 +0800 |
commit | 196f2674e63485e8c1c749cf2df47cceae7a57ae (patch) | |
tree | e84a65cb9bfa52ec91f0972cb19274ce2891ccfb /include | |
parent | 1b6394e86cd515ac4a7bda12a8a554af63575bbe (diff) |
UPSTREAM: [media] redrat3: make hardware timeout configurable
Instead of hardcoding a timeout, let userspace change it dynamically
by adding a s_timeout ops.
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
(cherry picked from commit 4f253cecf8cb59816d53267170440efa3e1df018)
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Note: it didn't change anything due to we didn't need this rc_dev
Conflicts:
drivers/media/rc/redrat3.c
Diffstat (limited to 'include')
-rw-r--r-- | include/media/rc-core.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/media/rc-core.h b/include/media/rc-core.h index ff54a71f5cd2..10908e356b23 100644 --- a/include/media/rc-core.h +++ b/include/media/rc-core.h @@ -126,6 +126,7 @@ enum rc_filter_type { * @s_carrier_report: enable carrier reports * @s_filter: set the scancode filter * @s_wakeup_filter: set the wakeup scancode filter + * @s_timeout: set hardware timeout in ns */ struct rc_dev { struct device dev; @@ -181,6 +182,8 @@ struct rc_dev { struct rc_scancode_filter *filter); int (*s_wakeup_filter)(struct rc_dev *dev, struct rc_scancode_filter *filter); + int (*s_timeout)(struct rc_dev *dev, + unsigned int timeout); }; #define to_rc_dev(d) container_of(d, struct rc_dev, dev) |