diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-02-07 07:38:12 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 12:42:41 -0300 |
commit | 45d809431daaa3ab01f877388d09676d05b469be (patch) | |
tree | 653bdabe7447cc2cde26bf672bff66c122c2da86 /include/media/saa7146.h | |
parent | ef77a26be1883366bb78741d1808e5c86a14ec76 (diff) | |
download | kernel-crypto-45d809431daaa3ab01f877388d09676d05b469be.tar.gz kernel-crypto-45d809431daaa3ab01f877388d09676d05b469be.tar.xz kernel-crypto-45d809431daaa3ab01f877388d09676d05b469be.zip |
V4L/DVB (10497): saa7146: i2c adapdata now points to v4l2_device.
Prepare for converting to v4l2_subdev.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media/saa7146.h')
-rw-r--r-- | include/media/saa7146.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/media/saa7146.h b/include/media/saa7146.h index b9dfeeb26fa..fff4235adae 100644 --- a/include/media/saa7146.h +++ b/include/media/saa7146.h @@ -148,6 +148,11 @@ struct saa7146_dev struct saa7146_dma d_rps1; }; +static inline struct saa7146_dev *to_saa7146_dev(struct v4l2_device *v4l2_dev) +{ + return container_of(v4l2_dev, struct saa7146_dev, v4l2_dev); +} + /* from saa7146_i2c.c */ int saa7146_i2c_adapter_prepare(struct saa7146_dev *dev, struct i2c_adapter *i2c_adapter, u32 bitrate); |