[media] em28xx: move snapshot button bit definition for reg 0x0C from em28xx-input...
authorFrank Schaefer <fschaefer.oss@googlemail.com>
Mon, 3 Jun 2013 17:12:04 +0000 (14:12 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 Jun 2013 14:42:27 +0000 (11:42 -0300)
Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/em28xx/em28xx-input.c
drivers/media/usb/em28xx/em28xx-reg.h

index 466b19d0d767a653458b313a057d9f40a1c86531..ea181e4b68c5b445026b5f75458f86a7b7096db8 100644 (file)
@@ -32,7 +32,6 @@
 
 #define EM28XX_SNAPSHOT_KEY KEY_CAMERA
 #define EM28XX_SBUTTON_QUERY_INTERVAL 500
-#define EM28XX_R0C_USBSUSP_SNAPSHOT 0x20
 
 static unsigned int ir_debug;
 module_param(ir_debug, int, 0644);
index af39ddbe01e0f4cefe8cd5d4deb48945d74c4b26..0e0477847965ad822b61ba005de3b34865910275 100644 (file)
@@ -68,7 +68,8 @@
 
 
 #define EM28XX_R0A_CHIPID      0x0a
-#define EM28XX_R0C_USBSUSP     0x0c    /* */
+#define EM28XX_R0C_USBSUSP     0x0c
+#define   EM28XX_R0C_USBSUSP_SNAPSHOT  0x20 /* 1=button pressed, needs reset */
 
 #define EM28XX_R0E_AUDIOSRC    0x0e
 #define EM28XX_R0F_XCLK        0x0f