40e2e09270
Convert soc-camera core and all drivers to platform device API. We already converted platforms to register a platform device for each soc-camera client, now we remove the compatibility code and switch completely to the new scheme. This is a preparatory step for the v4l2-subdev conversion. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
31 lines
719 B
C
31 lines
719 B
C
/*
|
|
* 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;
|
|
const char *format_name;
|
|
unsigned long format_depth;
|
|
struct v4l2_pix_format format;
|
|
unsigned long bus_param;
|
|
struct device *dev;
|
|
int (*set_capture)(struct soc_camera_platform_info *info, int enable);
|
|
struct soc_camera_link link;
|
|
};
|
|
|
|
#endif /* __SOC_CAMERA_H__ */
|