diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-03-09 10:59:41 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-05-14 13:33:44 -0300 |
commit | 15693b57931b19f3bb4664cb4fa3f6f966058749 (patch) | |
tree | b6ce52ec72ff1d0aa90653b630c3b106b939d833 /include/media | |
parent | 1c542ba85461f4f4f456eeee4fa7e90a3d138c6a (diff) | |
download | blackbird-op-linux-15693b57931b19f3bb4664cb4fa3f6f966058749.tar.gz blackbird-op-linux-15693b57931b19f3bb4664cb4fa3f6f966058749.zip |
[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')
-rw-r--r-- | include/media/mt9p031.h | 13 |
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 @@ struct v4l2_subdev; +/* + * struct mt9p031_platform_data - MT9P031 platform data + * @set_xclk: Clock frequency set callback + * @reset: Chip reset GPIO (set to -1 if not used) + * @ext_freq: Input clock frequency + * @target_freq: Pixel clock frequency + */ struct mt9p031_platform_data { int (*set_xclk)(struct v4l2_subdev *subdev, int hz); - int (*reset)(struct v4l2_subdev *subdev, int active); - int ext_freq; /* input frequency to the mt9p031 for PLL dividers */ - int target_freq; /* frequency target for the PLL */ + int reset; + int ext_freq; + int target_freq; }; #endif |