diff options
author | Frank Schaefer <fschaefer.oss@googlemail.com> | 2014-07-25 19:48:58 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-07-26 21:45:14 +0200 |
commit | 747dba7de2a51a3db58b665ed3bc8c07921546ec (patch) | |
tree | 560155bcd7477ea26608e1d8deb127122d04cb07 /drivers/media/usb/em28xx/em28xx.h | |
parent | [media] em28xx-v4l: simplify em28xx_v4l2_open() by using v4l2_fh_open() (diff) | |
download | linux-747dba7de2a51a3db58b665ed3bc8c07921546ec.tar.xz linux-747dba7de2a51a3db58b665ed3bc8c07921546ec.zip |
[media] em28xx-v4l: get rid of field "users" in struct em28xx_v4l2
Instead of counting the number of opened file handles, use function
v4l2_fh_is_singular_file() in em28xx_v4l2_open() and em28xx_v4l2_close() to
determine if the file handle is the first/last opened one.
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.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/usb/em28xx/em28xx.h b/drivers/media/usb/em28xx/em28xx.h index 4360338e7b31..84ef8efdb148 100644 --- a/drivers/media/usb/em28xx/em28xx.h +++ b/drivers/media/usb/em28xx/em28xx.h @@ -524,7 +524,6 @@ struct em28xx_v4l2 { int sensor_yres; int sensor_xtal; - int users; /* user count for exclusive use */ int streaming_users; /* number of actively streaming users */ u32 frequency; /* selected tuner frequency */ |