summaryrefslogtreecommitdiff
path: root/linux/include
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-04-28 19:45:20 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-04-28 19:45:20 -0300
commitb254ef22ff520250431995106e98ce08a9cd0af2 (patch)
tree4e730e629127c5ceaef2f24c45f4d2857289c3a0 /linux/include
parent931c58dd0134b10194c570d8e5d47f774dd6fb5d (diff)
parentba369d468ab5439d1b514a0c52eca6b6e3186211 (diff)
downloadmediapointer-dvb-s2-b254ef22ff520250431995106e98ce08a9cd0af2.tar.gz
mediapointer-dvb-s2-b254ef22ff520250431995106e98ce08a9cd0af2.tar.bz2
merge: http://linuxtv.org/hg/~dheitmueller/v4l-dvb-dvicofix
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/include')
-rw-r--r--linux/include/media/soc_camera.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/linux/include/media/soc_camera.h b/linux/include/media/soc_camera.h
index 37013688a..bef5e81d6 100644
--- a/linux/include/media/soc_camera.h
+++ b/linux/include/media/soc_camera.h
@@ -60,7 +60,7 @@ struct soc_camera_file {
struct soc_camera_host {
struct list_head list;
- struct device dev;
+ struct device *dev;
unsigned char nr; /* Host number */
void *priv;
const char *drv_name;
@@ -107,6 +107,7 @@ struct soc_camera_link {
*/
int (*set_bus_param)(struct soc_camera_link *, unsigned long flags);
unsigned long (*query_bus_param)(struct soc_camera_link *);
+ void (*free_bus)(struct soc_camera_link *);
};
static inline struct soc_camera_device *to_soc_camera_dev(struct device *dev)
@@ -116,7 +117,7 @@ static inline struct soc_camera_device *to_soc_camera_dev(struct device *dev)
static inline struct soc_camera_host *to_soc_camera_host(struct device *dev)
{
- return container_of(dev, struct soc_camera_host, dev);
+ return dev_get_drvdata(dev);
}
extern int soc_camera_host_register(struct soc_camera_host *ici);