]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/media/saa7146.h
V4L/DVB (10497): saa7146: i2c adapdata now points to v4l2_device.
[linux-2.6-omap-h63xx.git] / include / media / saa7146.h
index b9dfeeb26faea30b413f81991cdaace2d99c08a3..fff4235adae54c9901502ae973ce2c2aed585880 100644 (file)
@@ -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);