diff options
author | Rui Miguel Silva <rui.silva@linaro.org> | 2019-02-27 18:40:44 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-03-01 17:21:01 +0300 |
commit | 2d1748a41ef39fe85ee19028ab17f0461d6eb05e (patch) | |
tree | 6335feeceba0d65029eef6d8014cf2b6285b3016 /drivers | |
parent | 05f0edadcc5fccdfc0676825b3e70e75dc0a8a84 (diff) | |
download | linux-2d1748a41ef39fe85ee19028ab17f0461d6eb05e.tar.xz |
media: imx7_mipi_csis: remove internal ops
Remove code that is not called anywhere, just
remove the internal ops.
Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/media/imx/imx7-mipi-csis.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/drivers/staging/media/imx/imx7-mipi-csis.c b/drivers/staging/media/imx/imx7-mipi-csis.c index f4674de09e83..75b904d36621 100644 --- a/drivers/staging/media/imx/imx7-mipi-csis.c +++ b/drivers/staging/media/imx/imx7-mipi-csis.c @@ -783,29 +783,6 @@ static irqreturn_t mipi_csis_irq_handler(int irq, void *dev_id) return IRQ_HANDLED; } -static int mipi_csi_registered(struct v4l2_subdev *mipi_sd) -{ - struct csi_state *state = mipi_sd_to_csis_state(mipi_sd); - unsigned int i; - int ret; - - for (i = 0; i < CSIS_PADS_NUM; i++) { - state->pads[i].flags = (i == CSIS_PAD_SINK) ? - MEDIA_PAD_FL_SINK : MEDIA_PAD_FL_SOURCE; - } - - /* set a default mbus format */ - ret = imx_media_init_mbus_fmt(&state->format_mbus, - MIPI_CSIS_DEF_PIX_HEIGHT, - MIPI_CSIS_DEF_PIX_WIDTH, 0, - V4L2_FIELD_NONE, NULL); - if (ret) - return ret; - - return media_entity_pads_init(&mipi_sd->entity, CSIS_PADS_NUM, - state->pads); -} - static const struct v4l2_subdev_core_ops mipi_csis_core_ops = { .log_status = mipi_csis_log_status, }; @@ -831,10 +808,6 @@ static const struct v4l2_subdev_ops mipi_csis_subdev_ops = { .pad = &mipi_csis_pad_ops, }; -static const struct v4l2_subdev_internal_ops mipi_csis_internal_ops = { - .registered = mipi_csi_registered, -}; - static int mipi_csis_parse_dt(struct platform_device *pdev, struct csi_state *state) { |