diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-11-24 22:16:46 +0100 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2008-11-24 22:16:46 +0100 |
commit | 24dc2f33e9336e9e01da8321352fb93173454e88 (patch) | |
tree | 530b141934ecd9514a01ca5c0b8bdb38ed7d8c8d /linux/drivers/media/video/msp3400-driver.h | |
parent | 59736da8febbd58e35798210cb51e2e9e4dbe3a9 (diff) | |
download | mediapointer-dvb-s2-24dc2f33e9336e9e01da8321352fb93173454e88.tar.gz mediapointer-dvb-s2-24dc2f33e9336e9e01da8321352fb93173454e88.tar.bz2 |
msp3400: convert to v4l2_subdev.
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video/msp3400-driver.h')
-rw-r--r-- | linux/drivers/media/video/msp3400-driver.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/linux/drivers/media/video/msp3400-driver.h b/linux/drivers/media/video/msp3400-driver.h index ab69a290e..3fe1c1b10 100644 --- a/linux/drivers/media/video/msp3400-driver.h +++ b/linux/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); |