Commit | Line | Data |
---|---|---|
073afdd7 MD |
1 | /* |
2 | * Generic Platform Camera Driver Header | |
3 | * | |
4 | * Copyright (C) 2008 Magnus Damm | |
5 | * | |
6 | * This program is free software; you can redistribute it and/or modify | |
7 | * it under the terms of the GNU General Public License version 2 as | |
8 | * published by the Free Software Foundation. | |
9 | */ | |
10 | ||
326c9862 MD |
11 | #ifndef __SOC_CAMERA_H__ |
12 | #define __SOC_CAMERA_H__ | |
13 | ||
14 | #include <linux/videodev2.h> | |
c41debaf | 15 | #include <media/soc_camera.h> |
326c9862 | 16 | |
bc1937b4 GL |
17 | struct device; |
18 | ||
326c9862 | 19 | struct soc_camera_platform_info { |
40e2e092 | 20 | const char *format_name; |
326c9862 | 21 | unsigned long format_depth; |
760697be | 22 | struct v4l2_mbus_framefmt format; |
326c9862 | 23 | unsigned long bus_param; |
bc1937b4 | 24 | struct device *dev; |
326c9862 MD |
25 | int (*set_capture)(struct soc_camera_platform_info *info, int enable); |
26 | }; | |
27 | ||
28 | #endif /* __SOC_CAMERA_H__ */ |