[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>
This commit is contained in:

committed by
Mauro Carvalho Chehab

父節點
d281c1f144
當前提交
1c542ba854
@@ -3,17 +3,11 @@
|
||||
|
||||
struct v4l2_subdev;
|
||||
|
||||
enum {
|
||||
MT9P031_COLOR_VERSION,
|
||||
MT9P031_MONOCHROME_VERSION,
|
||||
};
|
||||
|
||||
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 version; /* MT9P031_COLOR_VERSION or MT9P031_MONOCHROME_VERSION */
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user