summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/em28xx/em28xx.h
diff options
context:
space:
mode:
authorFrank Schaefer <fschaefer.oss@googlemail.com>2014-05-11 22:59:04 +0200
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-05-23 18:37:49 +0200
commit8139a4d583abad45eb987b5a99b3281b6d435b7e (patch)
treeda71de3861b282e96ffd6cc5960451a69d09b391 /drivers/media/usb/em28xx/em28xx.h
parent[media] em28xx: move capture state tracking fields from struct em28xx to stru... (diff)
downloadlinux-8139a4d583abad45eb987b5a99b3281b6d435b7e.tar.xz
linux-8139a4d583abad45eb987b5a99b3281b6d435b7e.zip
[media] em28xx: move v4l2 user counting fields from struct em28xx to struct v4l2
Despite being at the common em28xx struct, those two fields are actually taking into account only the usage inside em28xx v4l2 submodule. So, move them out of the common struct. Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/usb/em28xx/em28xx.h b/drivers/media/usb/em28xx/em28xx.h
index 7edba65f99c9..998be42c0f70 100644
--- a/drivers/media/usb/em28xx/em28xx.h
+++ b/drivers/media/usb/em28xx/em28xx.h
@@ -524,6 +524,9 @@ struct em28xx_v4l2 {
int sensor_yres;
int sensor_xtal;
+ int users; /* user count for exclusive use */
+ int streaming_users; /* number of actively streaming users */
+
struct em28xx_fmt *format;
v4l2_std_id norm; /* selected tv norm */
@@ -642,8 +645,6 @@ struct em28xx {
struct rt_mutex i2c_bus_lock;
/* video for linux */
- int users; /* user count for exclusive use */
- int streaming_users; /* Number of actively streaming users */
int ctl_freq; /* selected frequency */
unsigned int ctl_input; /* selected input */
unsigned int ctl_ainput;/* selected audio input */