pagemap: fix pfn calculation for hugepage
[safe/jmp/linux-2.6] / include / media / soc_camera_platform.h
index 7c81ad3..0ecefe2 100644 (file)
@@ -1,15 +1,27 @@
+/*
+ * Generic Platform Camera Driver Header
+ *
+ * Copyright (C) 2008 Magnus Damm
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
 #ifndef __SOC_CAMERA_H__
 #define __SOC_CAMERA_H__
 
 #include <linux/videodev2.h>
+#include <media/soc_camera.h>
+
+struct device;
 
 struct soc_camera_platform_info {
-       int iface;
-       char *format_name;
+       const char *format_name;
        unsigned long format_depth;
-       struct v4l2_pix_format format;
+       struct v4l2_mbus_framefmt format;
        unsigned long bus_param;
-       void (*power)(int);
+       struct device *dev;
        int (*set_capture)(struct soc_camera_platform_info *info, int enable);
 };