aboutsummaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2009-08-25 10:06:21 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-18 23:18:24 -0400
commitc41debafc6e396a8e15f1f017aec7c0cf67e1b54 (patch)
tree4f128d3acb39deab3eb9f8ab1a9681fc07148432 /include/media
parent2639ead140aa7063188b6599a1a7398d60db2712 (diff)
V4L/DVB (12504): soc-camera: prepare soc_camera_platform.c and its users for conversion
soc_camera_platform.c is only used by y SuperH ap325rxa board. This patch converts soc_camera_platform.c and its users for the soc-camera platform- device conversion and also extends soc-camera core to handle non-I2C cameras. Cc: Paul Mundt <lethal@linux-sh.org> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Acked-by: Paul Mundt <lethal@linux-sh.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/soc_camera.h6
-rw-r--r--include/media/soc_camera_platform.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/include/media/soc_camera.h b/include/media/soc_camera.h
index 23ecead35e7a..813e12061daa 100644
--- a/include/media/soc_camera.h
+++ b/include/media/soc_camera.h
@@ -102,6 +102,12 @@ struct soc_camera_link {
102 int i2c_adapter_id; 102 int i2c_adapter_id;
103 struct i2c_board_info *board_info; 103 struct i2c_board_info *board_info;
104 const char *module_name; 104 const char *module_name;
105 /*
106 * For non-I2C devices platform platform has to provide methods to
107 * add a device to the system and to remove
108 */
109 int (*add_device)(struct soc_camera_link *, struct device *);
110 void (*del_device)(struct soc_camera_link *);
105 /* Optional callbacks to power on or off and reset the sensor */ 111 /* Optional callbacks to power on or off and reset the sensor */
106 int (*power)(struct device *, int); 112 int (*power)(struct device *, int);
107 int (*reset)(struct device *); 113 int (*reset)(struct device *);
diff --git a/include/media/soc_camera_platform.h b/include/media/soc_camera_platform.h
index 1d092b4678aa..af224deadb43 100644
--- a/include/media/soc_camera_platform.h
+++ b/include/media/soc_camera_platform.h
@@ -12,6 +12,7 @@
12#define __SOC_CAMERA_H__ 12#define __SOC_CAMERA_H__
13 13
14#include <linux/videodev2.h> 14#include <linux/videodev2.h>
15#include <media/soc_camera.h>
15 16
16struct soc_camera_platform_info { 17struct soc_camera_platform_info {
17 int iface; 18 int iface;
@@ -21,6 +22,7 @@ struct soc_camera_platform_info {
21 unsigned long bus_param; 22 unsigned long bus_param;
22 void (*power)(int); 23 void (*power)(int);
23 int (*set_capture)(struct soc_camera_platform_info *info, int enable); 24 int (*set_capture)(struct soc_camera_platform_info *info, int enable);
25 struct soc_camera_link link;
24}; 26};
25 27
26#endif /* __SOC_CAMERA_H__ */ 28#endif /* __SOC_CAMERA_H__ */