mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
media: i2c: imx327 fix compile error
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com> Change-Id: Ibb8e83153afb93b03a843e6736a67aa6403b4641
This commit is contained in:
@@ -956,6 +956,17 @@ config VIDEO_IMX323
|
||||
To compile this driver as a module, choose M here: the
|
||||
module will be called imx323.
|
||||
|
||||
config VIDEO_IMX327
|
||||
tristate "Sony IMX327 sensor support"
|
||||
depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
|
||||
depends on MEDIA_CAMERA_SUPPORT
|
||||
help
|
||||
This is a Video4Linux2 sensor driver for the Sony
|
||||
IMX327 camera.
|
||||
|
||||
To compile this driver as a module, choose M here: the
|
||||
module will be called imx327.
|
||||
|
||||
config VIDEO_IMX355
|
||||
tristate "Sony IMX355 sensor support"
|
||||
depends on I2C && VIDEO_V4L2
|
||||
|
||||
@@ -131,6 +131,7 @@ obj-$(CONFIG_VIDEO_IMX307) += imx307.o
|
||||
obj-$(CONFIG_VIDEO_IMX317) += imx317.o
|
||||
obj-$(CONFIG_VIDEO_IMX319) += imx319.o
|
||||
obj-$(CONFIG_VIDEO_IMX323) += imx323.o
|
||||
obj-$(CONFIG_VIDEO_IMX327) += imx327.o
|
||||
obj-$(CONFIG_VIDEO_IMX355) += imx355.o
|
||||
obj-$(CONFIG_VIDEO_MAX9286) += max9286.o
|
||||
rdacm20-camera_module-objs := rdacm20.o max9271.o
|
||||
|
||||
@@ -872,7 +872,7 @@ static int imx327_g_frame_interval(struct v4l2_subdev *sd,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int imx327_g_mbus_config(struct v4l2_subdev *sd,
|
||||
static int imx327_g_mbus_config(struct v4l2_subdev *sd, unsigned int pad_id,
|
||||
struct v4l2_mbus_config *config)
|
||||
{
|
||||
struct imx327 *imx327 = to_imx327(sd);
|
||||
@@ -884,7 +884,7 @@ static int imx327_g_mbus_config(struct v4l2_subdev *sd,
|
||||
if (imx327->bus_cfg.bus_type == 3)
|
||||
config->type = V4L2_MBUS_CCP2;
|
||||
else
|
||||
config->type = V4L2_MBUS_CSI2;
|
||||
config->type = V4L2_MBUS_CSI2_DPHY;
|
||||
config->flags = val;
|
||||
|
||||
return 0;
|
||||
@@ -1594,7 +1594,6 @@ static const struct v4l2_subdev_core_ops imx327_core_ops = {
|
||||
static const struct v4l2_subdev_video_ops imx327_video_ops = {
|
||||
.s_stream = imx327_s_stream,
|
||||
.g_frame_interval = imx327_g_frame_interval,
|
||||
.g_mbus_config = imx327_g_mbus_config,
|
||||
};
|
||||
|
||||
static const struct v4l2_subdev_pad_ops imx327_pad_ops = {
|
||||
@@ -1604,6 +1603,7 @@ static const struct v4l2_subdev_pad_ops imx327_pad_ops = {
|
||||
.get_fmt = imx327_get_fmt,
|
||||
.set_fmt = imx327_set_fmt,
|
||||
.get_selection = imx327_get_selection,
|
||||
.get_mbus_config = imx327_g_mbus_config,
|
||||
};
|
||||
|
||||
static const struct v4l2_subdev_ops imx327_subdev_ops = {
|
||||
|
||||
Reference in New Issue
Block a user