From patchwork Thu Dec 29 13:31:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Ceresoli X-Patchwork-Id: 37390 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp2402755wrt; Thu, 29 Dec 2022 05:33:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXv07rCCfdzVMnn8tntSnyzKCAeRCqIQPRcOXhQiUl4HFdi67vCsd3muHUbEswrV2Ed3vueY X-Received: by 2002:a17:90b:812:b0:219:f993:7f30 with SMTP id bk18-20020a17090b081200b00219f9937f30mr46030203pjb.32.1672320817087; Thu, 29 Dec 2022 05:33:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672320817; cv=none; d=google.com; s=arc-20160816; b=x0O9WtJGSI3UDqYWySDilhgs6f+0jrEVEHsZjCo28eggQvigfrRjc5S8mR7EBTV/lK m4EqGY9MHQ/mzQC9++5DCrwfPk6F1hu/LlvfFtKOwDzoKJg0MYP+xaRveSN5ydVA2tFd HSHHvxoAzSTlNSCKaMspCcS1fosnts0DaDWlrA+2i+Z9u4iM0b2OGvp3OP3SuoqQkf4v fJxm5ZVzt8cOM2apr9t9ju89AHL21v34qHAEQUzUn4+SNTByyx9i9b/wVxaiTdLpm/7U 5T085g2ZqQzZnYpzG3bNbNgEZfeGgbdz0CTSMULTk5HGwSmT6y6JKKCRN2axy/AwWOfA LjRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3nz5wNe+Z1nzIXUX/JoabalYq7SA6k1PNej8sIBUtyg=; b=u9ES37au1PDmSf5KHkovKeQB88MuW12myOQDTQcWjv51S4doaEunpgdV1adlMwkBe/ KGyVZDhmfvZeH07dOxUELCwBnlI+hU/6mUc25Z3k2GnR1msxmtEmr3HF8jWVZykezKgd 5NFZut9ZFHJjtKz37yABWuHzks/O+HnMhXMho6c3gce419gJTjbyKzhIt2c/TDxjBZJz IivuJwPfhoMbhWwNACj/J9x23RUSjJa1NDylpHXh0rrPD8J0a0OzBMVz91NCeMH5klFi +E7TeZmVT0M8arCfk3fAfuWxHrl/qZI3OP9THuoMLUpcyWbwr8F8pTN1a+nq6FwwRaCZ cqZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=ataXZHP1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id my4-20020a17090b4c8400b002191a044fadsi24925644pjb.122.2022.12.29.05.33.25; Thu, 29 Dec 2022 05:33:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=ataXZHP1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233478AbiL2NdE (ORCPT + 99 others); Thu, 29 Dec 2022 08:33:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233351AbiL2Nca (ORCPT ); Thu, 29 Dec 2022 08:32:30 -0500 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B397E10B7C; Thu, 29 Dec 2022 05:32:28 -0800 (PST) Received: from booty.fritz.box (unknown [77.244.183.192]) (Authenticated sender: luca.ceresoli@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id B4B8EFF80D; Thu, 29 Dec 2022 13:32:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1672320747; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3nz5wNe+Z1nzIXUX/JoabalYq7SA6k1PNej8sIBUtyg=; b=ataXZHP1ot1/L18b70FdiUNXNSN61iY8tQ871oCluO9n9CmpAW2lxnU9pxee/2+gugDcQO 4ZPuj9bE5yx/6/8Ynk3WIJwa7BRnEtH4ONGtoRCg+MfdgJ7UgfrZ9ONjwRAP+k+peLvM1x LKlGLQ8TE5ZJwDXL/MGpjROc+5ZvVeomKWk40F78p4zR7ci27RO/YW0n+sT9kdOV+4Huji Rm/sZSwF8AGvQaxwt6DExIaUm9FfrTC7UCUu7+QsMse1ZzvNJs3I7b3CoeKywI6dKfboq8 juamKewugOlvP/rGU3VVEmMIpyUV1/njUGp8LFSDoY6FRFhKBpTdOxwrBfpoyw== From: Luca Ceresoli To: Thierry Reding , Jonathan Hunter , Sowjanya Komatineni , Luca Ceresoli , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Mauro Carvalho Chehab , Greg Kroah-Hartman , Dmitry Osipenko , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-tegra@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, Thomas Petazzoni , Paul Kocialkowski , Richard Leitner Subject: [PATCH v3 05/21] staging: media: tegra-video: document tegra_channel_get_remote_source_subdev Date: Thu, 29 Dec 2022 14:31:49 +0100 Message-Id: <20221229133205.981397-6-luca.ceresoli@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221229133205.981397-1-luca.ceresoli@bootlin.com> References: <20221229133205.981397-1-luca.ceresoli@bootlin.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753555473018766865?= X-GMAIL-MSGID: =?utf-8?q?1753555473018766865?= Clarify what this function does. Signed-off-by: Luca Ceresoli --- No changes in v3 No changes in v2 --- drivers/staging/media/tegra-video/vi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/staging/media/tegra-video/vi.c b/drivers/staging/media/tegra-video/vi.c index 9dba6e97ebdd..6aecdd28bd82 100644 --- a/drivers/staging/media/tegra-video/vi.c +++ b/drivers/staging/media/tegra-video/vi.c @@ -154,6 +154,9 @@ tegra_channel_get_remote_csi_subdev(struct tegra_vi_channel *chan) return media_entity_to_v4l2_subdev(pad->entity); } +/* + * Walk up the chain until the initial source (e.g. image sensor) + */ struct v4l2_subdev * tegra_channel_get_remote_source_subdev(struct tegra_vi_channel *chan) {