mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
media: i2c: gc8034 fix compile error
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com> Change-Id: I637495f900c31dd8cd46d27ded30f34017e02395
This commit is contained in:
@@ -725,6 +725,17 @@ config VIDEO_APTINA_PLL
|
||||
config VIDEO_SMIAPP_PLL
|
||||
tristate
|
||||
|
||||
config VIDEO_GC8034
|
||||
tristate "GalaxyCore GC8034 sensor support"
|
||||
depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
|
||||
depends on MEDIA_CAMERA_SUPPORT
|
||||
select V4L2_FWNODE
|
||||
help
|
||||
Support for the GalaxyCore GC8034 sensor.
|
||||
|
||||
To compile this driver as a module, choose M here: the
|
||||
module will be called gc8034.
|
||||
|
||||
config VIDEO_HI556
|
||||
tristate "Hynix Hi-556 sensor support"
|
||||
depends on I2C && VIDEO_V4L2
|
||||
|
||||
@@ -111,6 +111,7 @@ obj-$(CONFIG_VIDEO_I2C) += video-i2c.o
|
||||
obj-$(CONFIG_VIDEO_ML86V7667) += ml86v7667.o
|
||||
obj-$(CONFIG_VIDEO_OV2659) += ov2659.o
|
||||
obj-$(CONFIG_VIDEO_TC358743) += tc358743.o
|
||||
obj-$(CONFIG_VIDEO_GC8034) += gc8034.o
|
||||
obj-$(CONFIG_VIDEO_HI556) += hi556.o
|
||||
obj-$(CONFIG_VIDEO_IMX214) += imx214.o
|
||||
obj-$(CONFIG_VIDEO_IMX219) += imx219.o
|
||||
|
||||
@@ -2183,7 +2183,7 @@ static int gc8034_enum_frame_interval(struct v4l2_subdev *sd,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int gc8034_g_mbus_config(struct v4l2_subdev *sd,
|
||||
static int gc8034_g_mbus_config(struct v4l2_subdev *sd, unsigned int pad_id,
|
||||
struct v4l2_mbus_config *config)
|
||||
{
|
||||
struct gc8034 *sensor = to_gc8034(sd);
|
||||
@@ -2192,12 +2192,12 @@ static int gc8034_g_mbus_config(struct v4l2_subdev *sd,
|
||||
dev_info(dev, "%s(%d) enter!\n", __func__, __LINE__);
|
||||
|
||||
if (2 == sensor->lane_num) {
|
||||
config->type = V4L2_MBUS_CSI2;
|
||||
config->type = V4L2_MBUS_CSI2_DPHY;
|
||||
config->flags = V4L2_MBUS_CSI2_2_LANE |
|
||||
V4L2_MBUS_CSI2_CHANNEL_0 |
|
||||
V4L2_MBUS_CSI2_CONTINUOUS_CLOCK;
|
||||
} else if (4 == sensor->lane_num) {
|
||||
config->type = V4L2_MBUS_CSI2;
|
||||
config->type = V4L2_MBUS_CSI2_DPHY;
|
||||
config->flags = V4L2_MBUS_CSI2_4_LANE |
|
||||
V4L2_MBUS_CSI2_CHANNEL_0 |
|
||||
V4L2_MBUS_CSI2_CONTINUOUS_CLOCK;
|
||||
@@ -2230,7 +2230,6 @@ static const struct v4l2_subdev_core_ops gc8034_core_ops = {
|
||||
static const struct v4l2_subdev_video_ops gc8034_video_ops = {
|
||||
.s_stream = gc8034_s_stream,
|
||||
.g_frame_interval = gc8034_g_frame_interval,
|
||||
.g_mbus_config = gc8034_g_mbus_config,
|
||||
};
|
||||
|
||||
static const struct v4l2_subdev_pad_ops gc8034_pad_ops = {
|
||||
@@ -2239,6 +2238,7 @@ static const struct v4l2_subdev_pad_ops gc8034_pad_ops = {
|
||||
.enum_frame_interval = gc8034_enum_frame_interval,
|
||||
.get_fmt = gc8034_get_fmt,
|
||||
.set_fmt = gc8034_set_fmt,
|
||||
.get_mbus_config = gc8034_g_mbus_config,
|
||||
};
|
||||
|
||||
static const struct v4l2_subdev_ops gc8034_subdev_ops = {
|
||||
|
||||
Reference in New Issue
Block a user