mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 06:25:52 +02:00
media: i2c: ov02k10 fix compile error
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com> Change-Id: I5c463e531a8b97d874e3dc793095f4f481961ea5
This commit is contained in:
parent
9832de4c02
commit
07d6f292b6
|
|
@ -1071,6 +1071,15 @@ config VIDEO_OV02B10
|
|||
This is a Video4Linux2 sensor driver for the OmniVision
|
||||
OV02B10 camera.
|
||||
|
||||
config VIDEO_OV02K10
|
||||
tristate "OmniVision OV02K10 sensor support"
|
||||
depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
|
||||
depends on MEDIA_CAMERA_SUPPORT
|
||||
select V4L2_FWNODE
|
||||
help
|
||||
This is a Video4Linux2 sensor driver for the OmniVision
|
||||
OV02K10 camera.
|
||||
|
||||
config VIDEO_OV2640
|
||||
tristate "OmniVision OV2640 sensor support"
|
||||
depends on VIDEO_V4L2 && I2C
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ obj-$(CONFIG_VIDEO_OS02G10) += os02g10.o
|
|||
obj-$(CONFIG_VIDEO_OS04A10) += os04a10.o
|
||||
obj-$(CONFIG_VIDEO_OS05A20) += os05a20.o
|
||||
obj-$(CONFIG_VIDEO_OV02B10) += ov02b10.o
|
||||
obj-$(CONFIG_VIDEO_OV02K10) += ov02k10.o
|
||||
obj-$(CONFIG_VIDEO_OV2640) += ov2640.o
|
||||
obj-$(CONFIG_VIDEO_OV2680) += ov2680.o
|
||||
obj-$(CONFIG_VIDEO_OV2685) += ov2685.o
|
||||
|
|
|
|||
|
|
@ -844,7 +844,7 @@ static int ov02k10_g_frame_interval(struct v4l2_subdev *sd,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int ov02k10_g_mbus_config(struct v4l2_subdev *sd,
|
||||
static int ov02k10_g_mbus_config(struct v4l2_subdev *sd, unsigned int pad_id,
|
||||
struct v4l2_mbus_config *config)
|
||||
{
|
||||
struct ov02k10 *ov02k10 = to_ov02k10(sd);
|
||||
|
|
@ -861,7 +861,7 @@ static int ov02k10_g_mbus_config(struct v4l2_subdev *sd,
|
|||
V4L2_MBUS_CSI2_CONTINUOUS_CLOCK |
|
||||
V4L2_MBUS_CSI2_CHANNEL_1;
|
||||
|
||||
config->type = V4L2_MBUS_CSI2;
|
||||
config->type = V4L2_MBUS_CSI2_DPHY;
|
||||
config->flags = val;
|
||||
|
||||
return 0;
|
||||
|
|
@ -1573,7 +1573,6 @@ static const struct v4l2_subdev_core_ops ov02k10_core_ops = {
|
|||
static const struct v4l2_subdev_video_ops ov02k10_video_ops = {
|
||||
.s_stream = ov02k10_s_stream,
|
||||
.g_frame_interval = ov02k10_g_frame_interval,
|
||||
.g_mbus_config = ov02k10_g_mbus_config,
|
||||
};
|
||||
|
||||
static const struct v4l2_subdev_pad_ops ov02k10_pad_ops = {
|
||||
|
|
@ -1583,6 +1582,7 @@ static const struct v4l2_subdev_pad_ops ov02k10_pad_ops = {
|
|||
.get_fmt = ov02k10_get_fmt,
|
||||
.set_fmt = ov02k10_set_fmt,
|
||||
.get_selection = ov02k10_get_selection,
|
||||
.get_mbus_config = ov02k10_g_mbus_config,
|
||||
};
|
||||
|
||||
static const struct v4l2_subdev_ops ov02k10_subdev_ops = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user