aboutsummaryrefslogtreecommitdiffstats
path: root/include/media/mt9p031.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-03-09 08:59:41 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-05-14 12:33:44 -0400
commit15693b57931b19f3bb4664cb4fa3f6f966058749 (patch)
treeb6ce52ec72ff1d0aa90653b630c3b106b939d833 /include/media/mt9p031.h
parent1c542ba85461f4f4f456eeee4fa7e90a3d138c6a (diff)
[media] mt9p031: Replace the reset board callback by a GPIO number
Use the GPIO from the sensor driver instead of calling back to board code. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media/mt9p031.h')
-rw-r--r--include/media/mt9p031.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/include/media/mt9p031.h b/include/media/mt9p031.h
index 5b5090fb9c28..0c97b19af293 100644
--- a/include/media/mt9p031.h
+++ b/include/media/mt9p031.h
@@ -3,11 +3,18 @@
3 3
4struct v4l2_subdev; 4struct v4l2_subdev;
5 5
6/*
7 * struct mt9p031_platform_data - MT9P031 platform data
8 * @set_xclk: Clock frequency set callback
9 * @reset: Chip reset GPIO (set to -1 if not used)
10 * @ext_freq: Input clock frequency
11 * @target_freq: Pixel clock frequency
12 */
6struct mt9p031_platform_data { 13struct mt9p031_platform_data {
7 int (*set_xclk)(struct v4l2_subdev *subdev, int hz); 14 int (*set_xclk)(struct v4l2_subdev *subdev, int hz);
8 int (*reset)(struct v4l2_subdev *subdev, int active); 15 int reset;
9 int ext_freq; /* input frequency to the mt9p031 for PLL dividers */ 16 int ext_freq;
10 int target_freq; /* frequency target for the PLL */ 17 int target_freq;
11}; 18};
12 19
13#endif 20#endif