media: i2c: ov4686 fix compile error

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I809a81e719587a0e81ae87e752dfab59300fb7ce
This commit is contained in:
Zefa Chen
2021-09-08 18:23:46 +08:00
parent 67a0f5ecfa
commit 68724d4d7b
3 changed files with 16 additions and 3 deletions

View File

@@ -1151,6 +1151,18 @@ config VIDEO_OV2740
To compile this driver as a module, choose M here: the
module will be called ov2740.
config VIDEO_OV4686
tristate "OmniVision OV4686 sensor support"
depends on VIDEO_V4L2 && I2C && MEDIA_CONTROLLER
depends on MEDIA_CAMERA_SUPPORT
select V4L2_FWNODE
help
This is a Video4Linux2 sensor driver for the OmniVision
OV4686 camera.
To compile this driver as a module, choose M here: the
module will be called ov4686.
config VIDEO_OV5640
tristate "OmniVision OV5640 sensor support"
depends on OF

View File

@@ -74,6 +74,7 @@ obj-$(CONFIG_VIDEO_OV2680) += ov2680.o
obj-$(CONFIG_VIDEO_OV2685) += ov2685.o
obj-$(CONFIG_VIDEO_OV2718) += ov2718.o
obj-$(CONFIG_VIDEO_OV2740) += ov2740.o
obj-$(CONFIG_VIDEO_OV4686) += ov4686.o
obj-$(CONFIG_VIDEO_OV5640) += ov5640.o
obj-$(CONFIG_VIDEO_OV5645) += ov5645.o
obj-$(CONFIG_VIDEO_OV5647) += ov5647.o

View File

@@ -733,7 +733,7 @@ static int OV4686_g_frame_interval(struct v4l2_subdev *sd,
return 0;
}
static int OV4686_g_mbus_config(struct v4l2_subdev *sd,
static int OV4686_g_mbus_config(struct v4l2_subdev *sd, unsigned int pad_id,
struct v4l2_mbus_config *config)
{
struct OV4686 *OV4686 = to_OV4686(sd);
@@ -747,7 +747,7 @@ static int OV4686_g_mbus_config(struct v4l2_subdev *sd,
if (mode->hdr_mode == HDR_X3)
val |= V4L2_MBUS_CSI2_CHANNEL_2;
config->type = V4L2_MBUS_CSI2;
config->type = V4L2_MBUS_CSI2_DPHY;
config->flags = val;
return 0;
@@ -1237,7 +1237,6 @@ static const struct v4l2_subdev_core_ops OV4686_core_ops = {
static const struct v4l2_subdev_video_ops OV4686_video_ops = {
.s_stream = OV4686_s_stream,
.g_frame_interval = OV4686_g_frame_interval,
.g_mbus_config = OV4686_g_mbus_config,
};
static const struct v4l2_subdev_pad_ops OV4686_pad_ops = {
@@ -1246,6 +1245,7 @@ static const struct v4l2_subdev_pad_ops OV4686_pad_ops = {
.enum_frame_interval = OV4686_enum_frame_interval,
.get_fmt = OV4686_get_fmt,
.set_fmt = OV4686_set_fmt,
.get_mbus_config = OV4686_g_mbus_config,
};
static const struct v4l2_subdev_ops OV4686_subdev_ops = {