From patchwork Wed Feb 27 15:40:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Miguel Silva X-Patchwork-Id: 159281 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp4568963jad; Wed, 27 Feb 2019 07:41:03 -0800 (PST) X-Google-Smtp-Source: AHgI3IaU/HrG70RVZhGCDI0b+w++6pPhG536cRvSHW39C+KVP6Rl3U2j9FVPoWctSNHvhf7jm2Nj X-Received: by 2002:a17:902:8697:: with SMTP id g23mr2857648plo.30.1551282063462; Wed, 27 Feb 2019 07:41:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551282063; cv=none; d=google.com; s=arc-20160816; b=Gb0xbBoYQy29KlEIrJZiXDsEDPuL8OAJ972sZ1jebGiyLJ6IDgwKulqDMaDXjTjk8K 36uURve6XEoPWY5CD3YngJTzAH+3cS5xlSzAw2xdIfVYbWT++XR6j5l2lurRjlev/JgZ gX74qiyVbEZgJQbX+SrcTroioRBvk0fHWh1SiNE//QK9ahATCRmFwTA1n6B7GHwGst3j EDWX4pLAYSifHDB7dgGiXxztziSFgsaf3fmr9xVQF0di3TDrU+/noADlHoIwjKapZAOi Bl0L5kQXnjkg7DEdZfrlvyPPAvD3jBwPhSHuokPInyPGaJMywLt1HxOmNdBiPtNNfAP5 iGGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=2TeGbVhYNwXOTscc2WhGOxMaTE/B/Q/Nr7rh+1T2nEw=; b=DicUUKS8UHQdLy39YIv0cuLJDlQHI7rlmwnJ0MY7ZDDO3OVl3XTdP3F7RZXIqNeMif 8pahvWjPFg436rhdgPxd7U/VTVshCGAQ5KwherXWvbg5A+4mDm1WWCgcHYi9hTRAXJK1 HK+sRXil4jb5tEd5kvJCZm/k3i9duSCjDoHuAZWDw+BTiDN4DiWY2wiAHGjOh4pr/YKC sA3k7jzoKjDs4Lh7s7V/i0eJPLaSmxs08Zp4KZbEfE+m4KIua4qwoQkv0vts6pl7o6rB lVeO1dZp0pf9gTNe8nE3SQy/odPvg/SHUCm3pnXbomRpxB6sx2nN/QNzk/BTBrckkjnO w3FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=co2XAFyq; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l63si5058776pfi.131.2019.02.27.07.41.03; Wed, 27 Feb 2019 07:41:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=co2XAFyq; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730028AbfB0PlC (ORCPT + 3 others); Wed, 27 Feb 2019 10:41:02 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:52042 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726122AbfB0PlC (ORCPT ); Wed, 27 Feb 2019 10:41:02 -0500 Received: by mail-wm1-f65.google.com with SMTP id n19so6271672wmi.1 for ; Wed, 27 Feb 2019 07:41:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2TeGbVhYNwXOTscc2WhGOxMaTE/B/Q/Nr7rh+1T2nEw=; b=co2XAFyqUR8ia7JupodlNPpH4P3DpgRKqubwXclnHLrh5IPA7PDdixwvU8ZJFce3uN voQghKLTDu6F82szco6SqyUn+tftZnE3yb/zjG+B3xbWrw67OBXJi3YELTom9PfvGANW 7WhhF2Y/EZxny70Dnfim+CoRdLLlp9TvnkHP1wm3DU7nvSenp6gOOIIawZqA73OHX07l Wm3xVFfzBdzdfIZnF71/BYczSZB1favGEIzNg+Y2FGqYlzY2ATvTUn7928TJejDe+HhQ ZhSKhQDUb2cl+MDEiaM651w0b5BZ28rfbaxPH0xJXV0fdevvSD/qFaiz64OVCax+JdBX 6D1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2TeGbVhYNwXOTscc2WhGOxMaTE/B/Q/Nr7rh+1T2nEw=; b=Nc7mihD5QwFyXrhv/mywYb3S+eosthkaVOXrab0ZcOlHJvMwYV9AoXbTBlIVKkp7uC HYu/mqyQggoDN+xgLTz2w/a4SwqzUliG4PFxDEnPsOUtSPz6DX3drA2lVfDYLRecOzMb dG/YD7nja7vP9N77ThajSRq1CUfYSE0dY2zfwHC3ktQh9p+MsUX3aeJgXwLDH3SFshm7 HLjj0xJ1jk46YZ31A6Ho2LAONyDIOJrjXWRjCO/5WSCEY7/lZ4LLGjHVVKpH7wrL0qH8 uMclk9L5S1PStP6WLROq8jX/7ZGy6NRS2zzYgXw1EucOwZU0IIeCd6mq/sbsfQNrN6Mc FRyw== X-Gm-Message-State: AHQUAuaXT9v5Y6r8TQziLIL7Ult/wDk+bhnzrKvgZYUyVTAD7enOYslv HWz/BftW0hJzotNK8pz+ct6zVQ== X-Received: by 2002:a1c:3842:: with SMTP id f63mr2730953wma.25.1551282060177; Wed, 27 Feb 2019 07:41:00 -0800 (PST) Received: from arch-late.local (a109-49-46-234.cpe.netcabo.pt. [109.49.46.234]) by smtp.gmail.com with ESMTPSA id u4sm3180717wmb.25.2019.02.27.07.40.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Feb 2019 07:40:59 -0800 (PST) From: Rui Miguel Silva To: Hans Verkuil Cc: devel@driverdev.osuosl.org, linux-media@vger.kernel.org, Rui Miguel Silva Subject: [PATCH] media: imx7_mipi_csis: remove internal ops Date: Wed, 27 Feb 2019 15:40:44 +0000 Message-Id: <20190227154044.28860-1-rui.silva@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Remove code that is not called anywhere, just remove the internal ops. Signed-off-by: Rui Miguel Silva --- drivers/staging/media/imx/imx7-mipi-csis.c | 27 ---------------------- 1 file changed, 27 deletions(-) -- 2.20.1 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) {