diff options
Diffstat (limited to 'drivers/media/video/msp3400-driver.h')
-rw-r--r-- | drivers/media/video/msp3400-driver.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/video/msp3400-driver.h b/drivers/media/video/msp3400-driver.h index ab69a290e5dc..3fe1c1b10f53 100644 --- a/drivers/media/video/msp3400-driver.h +++ b/drivers/media/video/msp3400-driver.h | |||
@@ -5,6 +5,7 @@ | |||
5 | #define MSP3400_DRIVER_H | 5 | #define MSP3400_DRIVER_H |
6 | 6 | ||
7 | #include <media/msp3400.h> | 7 | #include <media/msp3400.h> |
8 | #include <media/v4l2-device.h> | ||
8 | 9 | ||
9 | /* ---------------------------------------------------------------------- */ | 10 | /* ---------------------------------------------------------------------- */ |
10 | 11 | ||
@@ -49,6 +50,7 @@ extern int msp_dolby; | |||
49 | extern int msp_stereo_thresh; | 50 | extern int msp_stereo_thresh; |
50 | 51 | ||
51 | struct msp_state { | 52 | struct msp_state { |
53 | struct v4l2_subdev sd; | ||
52 | int rev1, rev2; | 54 | int rev1, rev2; |
53 | int ident; | 55 | int ident; |
54 | u8 has_nicam; | 56 | u8 has_nicam; |
@@ -96,6 +98,11 @@ struct msp_state { | |||
96 | unsigned int watch_stereo:1; | 98 | unsigned int watch_stereo:1; |
97 | }; | 99 | }; |
98 | 100 | ||
101 | static inline struct msp_state *to_state(struct v4l2_subdev *sd) | ||
102 | { | ||
103 | return container_of(sd, struct msp_state, sd); | ||
104 | } | ||
105 | |||
99 | /* msp3400-driver.c */ | 106 | /* msp3400-driver.c */ |
100 | int msp_write_dem(struct i2c_client *client, int addr, int val); | 107 | int msp_write_dem(struct i2c_client *client, int addr, int val); |
101 | int msp_write_dsp(struct i2c_client *client, int addr, int val); | 108 | int msp_write_dsp(struct i2c_client *client, int addr, int val); |