}
/* value : module enum */
-static int csi_init(struct v4l2_subdev *subdev, void *value)
+static long csi_init(struct v4l2_subdev *subdev, unsigned int cmd, void *value)
{
int ret = 0;
struct fimc_is_device_csi *csi;
}
static const struct v4l2_subdev_core_ops core_ops = {
- .init = csi_init,
+ .ioctl = csi_init,
.s_power = csi_s_power
};
}
/* value : csi ch */
-static int flite_init(struct v4l2_subdev *subdev, void *value)
+static long flite_init(struct v4l2_subdev *subdev, unsigned int cmd,
+ void *value)
{
int ret = 0;
struct fimc_is_device_flite *flite;
}
static const struct v4l2_subdev_core_ops core_ops = {
- .init = flite_init,
+ .ioctl = flite_init,
.s_ctrl = flite_s_ctrl,
};
goto p_err;
}
- ret = v4l2_subdev_call(subdev_flite, core, init, (void *)(long)device->pdata->csi_ch);
+ ret = v4l2_subdev_call(subdev_flite, core, ioctl, 0,
+ (void *)(long)device->pdata->csi_ch);
if (ret) {
merr("v4l2_flite_call(init) is fail(%d)", device, ret);
goto p_err;
}
- ret = v4l2_subdev_call(subdev_csi, core, init, module);
+ ret = v4l2_subdev_call(subdev_csi, core, ioctl, 0, module);
if (ret) {
merr("v4l2_csi_call(init) is fail(%d)", device, ret);
goto p_err;
}
if (test_bit(FIMC_IS_SENSOR_DRIVING, &device->state)) {
- ret = v4l2_subdev_call(subdev_module, core, init, 0);
+ ret = v4l2_subdev_call(subdev_module, core, ioctl, 0, 0);
if (ret) {
merr("v4l2_module_call(init) is fail(%d)", device, ret);
goto p_err;
.unregistered = sensor_6d1_unregistered,
};
-static int sensor_6d1_init(struct v4l2_subdev *subdev, void *val)
+static long sensor_6d1_init(struct v4l2_subdev *subdev, unsigned int cmd,
+ void *val)
{
int i, ret = 0;
struct fimc_is_module_enum *module;
}
static const struct v4l2_subdev_core_ops core_ops = {
- .init = sensor_6d1_init
+ .ioctl = sensor_6d1_init
};
static int sensor_6d1_s_stream(struct v4l2_subdev *subdev, int enable)
//FIMC_IS_SENSOR_CFG(824, 496, 300, 13, 8),
};
-static int sensor_imx240_init(struct v4l2_subdev *subdev, void *val)
+static long sensor_imx240_init(struct v4l2_subdev *subdev, unsigned int cmd,
+ void *val)
{
int ret = 0;
struct fimc_is_module_enum *module;
}
static const struct v4l2_subdev_core_ops core_ops = {
- .init = sensor_imx240_init
+ .ioctl = sensor_imx240_init
};
static const struct v4l2_subdev_ops subdev_ops = {