summaryrefslogtreecommitdiff
path: root/drivers/media/usb/em28xx/em28xx.h
diff options
context:
space:
mode:
authorFrank Schaefer <fschaefer.oss@googlemail.com>2013-12-14 06:40:11 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2013-12-20 14:10:21 -0200
commit0ff950a73dcd25b8d435043440c11901ac91654c (patch)
treeb546906e9febc535ce0f471958dc20805cef7a71 /drivers/media/usb/em28xx/em28xx.h
parenta03636cb21af1d22a894a5a863b2ba3c3687da63 (diff)
downloadlinux-stable-0ff950a73dcd25b8d435043440c11901ac91654c.tar.gz
[media] em28xx: reduce the polling interval for GPI connected buttons
For GPI-connected buttons without (hardware) debouncing, the polling interval needs to be reduced to detect button presses properly. Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/usb/em28xx/em28xx.h')
-rw-r--r--drivers/media/usb/em28xx/em28xx.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/usb/em28xx/em28xx.h b/drivers/media/usb/em28xx/em28xx.h
index aa35750d6e66..191ef3593891 100644
--- a/drivers/media/usb/em28xx/em28xx.h
+++ b/drivers/media/usb/em28xx/em28xx.h
@@ -681,6 +681,7 @@ struct em28xx {
u8 button_polling_addresses[EM28XX_NUM_BUTTON_ADDRESSES_MAX];
u8 button_polling_last_values[EM28XX_NUM_BUTTON_ADDRESSES_MAX];
u8 num_button_polling_addresses;
+ u16 button_polling_interval; /* [ms] */
/* Snapshot button input device */
char snapshot_button_path[30]; /* path of the input dev */
struct input_dev *sbutton_input_dev;