summaryrefslogtreecommitdiff
path: root/drivers/media/usb/em28xx/em28xx.h
diff options
context:
space:
mode:
authorFrank Schaefer <fschaefer.oss@googlemail.com>2014-03-24 23:33:09 +0400
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-05-23 20:06:11 +0400
commit95d2608b88a17d0a9326e91608f7b2cf4c1c000d (patch)
tree5659e7bb544f73726e2f8076d6fe15f5c3e1a529 /drivers/media/usb/em28xx/em28xx.h
parentad2980557d10ae51cb3168d6ff7b4399a295d30d (diff)
downloadlinux-95d2608b88a17d0a9326e91608f7b2cf4c1c000d.tar.xz
[media] em28xx: start moving em28xx-v4l specific data to its own struct
That reduces a little bit the memory footprint when em28xx-video is not loaded. 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.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/media/usb/em28xx/em28xx.h b/drivers/media/usb/em28xx/em28xx.h
index 3595880cfeaa..05deb84f70bb 100644
--- a/drivers/media/usb/em28xx/em28xx.h
+++ b/drivers/media/usb/em28xx/em28xx.h
@@ -498,6 +498,12 @@ struct em28xx_eeprom {
#define EM28XX_RESOURCE_VIDEO 0x01
#define EM28XX_RESOURCE_VBI 0x02
+struct em28xx_v4l2 {
+ struct kref ref;
+
+ struct v4l2_device v4l2_dev;
+};
+
struct em28xx_audio {
char name[50];
unsigned num_urb;
@@ -543,6 +549,7 @@ struct em28xx {
struct kref ref;
/* Sub-module data */
+ struct em28xx_v4l2 *v4l2;
struct em28xx_dvb *dvb;
struct em28xx_audio adev;
struct em28xx_IR *ir;
@@ -560,7 +567,6 @@ struct em28xx {
unsigned int has_alsa_audio:1;
unsigned int is_audio_only:1;
- struct v4l2_device v4l2_dev;
struct v4l2_ctrl_handler ctrl_handler;
struct v4l2_clk *clk;
struct em28xx_board board;