diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-03-09 08:42:52 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-05-14 12:32:22 -0400 |
commit | 1c542ba85461f4f4f456eeee4fa7e90a3d138c6a (patch) | |
tree | 987d4a258766c779fe124b9d76268166e407f8ab /include/media | |
parent | d281c1f1443b36890c35de71d9fdaa5cd3899003 (diff) |
[media] mt9p031: Identify color/mono models using I2C device name
Instead of passing a color/monochrome flag through platform data, rely
on the I2C device name to identify the chip model.
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 | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/media/mt9p031.h b/include/media/mt9p031.h index 96448c7a318b..5b5090fb9c28 100644 --- a/include/media/mt9p031.h +++ b/include/media/mt9p031.h | |||
@@ -3,17 +3,11 @@ | |||
3 | 3 | ||
4 | struct v4l2_subdev; | 4 | struct v4l2_subdev; |
5 | 5 | ||
6 | enum { | ||
7 | MT9P031_COLOR_VERSION, | ||
8 | MT9P031_MONOCHROME_VERSION, | ||
9 | }; | ||
10 | |||
11 | struct mt9p031_platform_data { | 6 | struct mt9p031_platform_data { |
12 | int (*set_xclk)(struct v4l2_subdev *subdev, int hz); | 7 | int (*set_xclk)(struct v4l2_subdev *subdev, int hz); |
13 | int (*reset)(struct v4l2_subdev *subdev, int active); | 8 | int (*reset)(struct v4l2_subdev *subdev, int active); |
14 | int ext_freq; /* input frequency to the mt9p031 for PLL dividers */ | 9 | int ext_freq; /* input frequency to the mt9p031 for PLL dividers */ |
15 | int target_freq; /* frequency target for the PLL */ | 10 | int target_freq; /* frequency target for the PLL */ |
16 | int version; /* MT9P031_COLOR_VERSION or MT9P031_MONOCHROME_VERSION */ | ||
17 | }; | 11 | }; |
18 | 12 | ||
19 | #endif | 13 | #endif |