summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/em28xx/em28xx.h
diff options
context:
space:
mode:
authorFrank Schaefer <fschaefer.oss@googlemail.com>2013-12-01 18:06:53 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2013-12-10 16:11:28 -0200
commit7763481a97488f201e7b6a42ddce1d163cd6297a (patch)
treefa3c54c3b84d418cd60959fbb951e54a3871a4ba /drivers/media/usb/em28xx/em28xx.h
parentf522260993822d82e2c480aa676aa4ca1230d235 (diff)
downloadlinux-stable-7763481a97488f201e7b6a42ddce1d163cd6297a.tar.gz
linux-stable-7763481a97488f201e7b6a42ddce1d163cd6297a.tar.bz2
linux-stable-7763481a97488f201e7b6a42ddce1d163cd6297a.zip
[media] em28xx: add debouncing mechanism for GPI-connected buttons
So far, the driver only supports a snapshot button which is assigned to register 0x0c bit 5. This special port has a built-in debouncing mechanism. For buttons connected to ordinary GPI ports, this patch implements a software debouncing mechanism. 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 e185d00e9044..df828c68ef44 100644
--- a/drivers/media/usb/em28xx/em28xx.h
+++ b/drivers/media/usb/em28xx/em28xx.h
@@ -669,6 +669,7 @@ struct em28xx {
/* Button state polling */
struct delayed_work buttons_query_work;
u8 button_polling_addresses[EM28XX_NUM_BUTTON_ADDRESSES_MAX];
+ u8 button_polling_last_values[EM28XX_NUM_BUTTON_ADDRESSES_MAX];
u8 num_button_polling_addresses;
/* Snapshot button input device */
char snapshot_button_path[30]; /* path of the input dev */