mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Signed-off-by: Guennadi Liakhovetski <[email protected]> Acked-by: Paul Mundt <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
2639ead140
commit
c41debafc6
4 changed files with 86 additions and 26 deletions
|
|
@ -102,6 +102,12 @@ struct soc_camera_link {
|
|||
int i2c_adapter_id;
|
||||
struct i2c_board_info *board_info;
|
||||
const char *module_name;
|
||||
/*
|
||||
* For non-I2C devices platform platform has to provide methods to
|
||||
* add a device to the system and to remove
|
||||
*/
|
||||
int (*add_device)(struct soc_camera_link *, struct device *);
|
||||
void (*del_device)(struct soc_camera_link *);
|
||||
/* Optional callbacks to power on or off and reset the sensor */
|
||||
int (*power)(struct device *, int);
|
||||
int (*reset)(struct device *);
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
#define __SOC_CAMERA_H__
|
||||
|
||||
#include <linux/videodev2.h>
|
||||
#include <media/soc_camera.h>
|
||||
|
||||
struct soc_camera_platform_info {
|
||||
int iface;
|
||||
|
|
@ -21,6 +22,7 @@ struct soc_camera_platform_info {
|
|||
unsigned long bus_param;
|
||||
void (*power)(int);
|
||||
int (*set_capture)(struct soc_camera_platform_info *info, int enable);
|
||||
struct soc_camera_link link;
|
||||
};
|
||||
|
||||
#endif /* __SOC_CAMERA_H__ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue