aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/msp3400-driver.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-11-24 16:16:46 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-30 06:38:39 -0500
commit76efd62f1546c6fab2116d3ba832403387bd3d4a (patch)
tree2dacbc15f37de125aa573708f599913f5fe05e91 /drivers/media/video/msp3400-driver.h
parent5d302f2e2c5fce46d88a9f6b3c1f74f9e9240e25 (diff)
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.h7
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;
49extern int msp_stereo_thresh; 50extern int msp_stereo_thresh;
50 51
51struct msp_state { 52struct 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
101static 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 */
100int msp_write_dem(struct i2c_client *client, int addr, int val); 107int msp_write_dem(struct i2c_client *client, int addr, int val);
101int msp_write_dsp(struct i2c_client *client, int addr, int val); 108int msp_write_dsp(struct i2c_client *client, int addr, int val);