diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-11-24 21:16:46 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-30 11:38:39 (GMT) |
commit | 76efd62f1546c6fab2116d3ba832403387bd3d4a (patch) | |
tree | 2dacbc15f37de125aa573708f599913f5fe05e91 /drivers/media/video/msp3400-driver.h | |
parent | 5d302f2e2c5fce46d88a9f6b3c1f74f9e9240e25 (diff) | |
download | linux-76efd62f1546c6fab2116d3ba832403387bd3d4a.tar.xz |
V4L/DVB (9825): msp3400: convert to v4l2_subdev.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
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 ab69a29..3fe1c1b 100644 --- a/drivers/media/video/msp3400-driver.h +++ b/drivers/media/video/msp3400-driver.h @@ -5,6 +5,7 @@ #define MSP3400_DRIVER_H #include <media/msp3400.h> +#include <media/v4l2-device.h> /* ---------------------------------------------------------------------- */ @@ -49,6 +50,7 @@ extern int msp_dolby; extern int msp_stereo_thresh; struct msp_state { + struct v4l2_subdev sd; int rev1, rev2; int ident; u8 has_nicam; @@ -96,6 +98,11 @@ struct msp_state { unsigned int watch_stereo:1; }; +static inline struct msp_state *to_state(struct v4l2_subdev *sd) +{ + return container_of(sd, struct msp_state, sd); +} + /* msp3400-driver.c */ int msp_write_dem(struct i2c_client *client, int addr, int val); int msp_write_dsp(struct i2c_client *client, int addr, int val); |