forked from Minki/linux
50c616fd0b
Switching sensors on and off is now done by sensor drivers themselves, typically using platform-provided hooks. Update soc_camera_platform.c to do the same. Also remove a refundant struct soc_camera_platform_info definition from soc_camera_platform.c. Tested-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 lines
361 B
C
17 lines
361 B
C
#ifndef __SOC_CAMERA_H__
|
|
#define __SOC_CAMERA_H__
|
|
|
|
#include <linux/videodev2.h>
|
|
|
|
struct soc_camera_platform_info {
|
|
int iface;
|
|
char *format_name;
|
|
unsigned long format_depth;
|
|
struct v4l2_pix_format format;
|
|
unsigned long bus_param;
|
|
void (*power)(int);
|
|
int (*set_capture)(struct soc_camera_platform_info *info, int enable);
|
|
};
|
|
|
|
#endif /* __SOC_CAMERA_H__ */
|