From patchwork Wed Nov 9 14:18:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Ceresoli X-Patchwork-Id: 17580 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp360260wru; Wed, 9 Nov 2022 06:20:55 -0800 (PST) X-Google-Smtp-Source: AMsMyM5lbxUKHtYsWOfdcBbKcYRCuo3+vbySkpcVZiUTy2ISrkH3agwHBc/yVDoXhvQNH5PRSnbE X-Received: by 2002:a17:902:bb98:b0:186:988d:a0f0 with SMTP id m24-20020a170902bb9800b00186988da0f0mr60753558pls.10.1668003654800; Wed, 09 Nov 2022 06:20:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668003654; cv=none; d=google.com; s=arc-20160816; b=Q33L8uniVLV4fywZKnXmu6TyOnYnf8Vosbi//yvZ0/t4Ra6ultYhjrPZB+71czGze9 +azHjseTjyf2DGyPfHIG4LPLNgWbWQGO528b8foYhEW9VbPi/VAewKaD0sarZSe+3AEP gTLFmWe8mGiAs6teR1YopxYYZv3m4PRLWKLqRXotKyHiKMOtbXF606/NcrTJJQM4tkqC x+nzrM6ASVRGHAHFvbOg33actsUc7HguTMq6Ch2PIYEq0H15tYNDktfFsjdAsfjjwgoD VsIMTsZW24ihO0LLAt8hYb+clBMq6HKw/q2hQw8bM13RcP3yRb9MjJU5eWTKhnS6E+L4 oNTg== 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=f3PNKMdE0RdXN+WZAH+jyICgofcfEBOVB1XLcjAJPYg=; b=s9TBAbGHubSIUZ5pFRwa9eMwqCWNskUsschM+lo/FTmK0yY2tB2igsqsvsyGaDXFCE eiIdVGzuTNhV4V7C2xsoQzpLKvYP7+PNvxlAHGk81AApgKk8L+fRyjKPWdw4N0b0e+YD cBfDvFOnDamgIwQAHeDNwbOF98xeE1B/9PQJ7VsbtZsTKU+a+P+KG1m+me+9HXdbE/Sj UyjtylnR98640c7Zg23vtmtv1/pkHlvb3nAQ50g+rbqgvSJrk74QBn7+ckhBwkCUewLj e+WtxaLvdMvoyO7UFv+6v+KgkdqYyzViB8btn1YPhIp3JXU+Yfl+ZbvoA0Xmqqp34MEU jP/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=kUCW3Dmg; 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 s6-20020a170902b18600b0017ef8bf8a91si15855470plr.439.2022.11.09.06.20.36; Wed, 09 Nov 2022 06:20:54 -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=kUCW3Dmg; 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 S231277AbiKIOUH (ORCPT + 99 others); Wed, 9 Nov 2022 09:20:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231271AbiKIOTq (ORCPT ); Wed, 9 Nov 2022 09:19:46 -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 A3BC71CFCF; Wed, 9 Nov 2022 06:19:36 -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 C8C17FF816; Wed, 9 Nov 2022 14:19:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1668003575; 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=f3PNKMdE0RdXN+WZAH+jyICgofcfEBOVB1XLcjAJPYg=; b=kUCW3DmgNBxhDT17iQQtq7wcue3w6JrwUt/g0ar9zWGvH3hoFA6gLKC6DTVI0ifxYfHAV3 My6pfQeMHKG+M/dmj8M1wSd26Tuio6ftjajAUxTcgOaNVWp01LYEuU6da/ja/5WWAS2QvQ qETmB0VfhJljXyuvFcptHxZTmsN0zFDpWfl2X9FINLSuvXz4h9LlK13XX8gGvTfb27zUPv ThI1DYj+g3dd3ZnMTyiCpC5SZoOOeRTdCcEiG+S2vW7bz2jp5AhjzzwhARFjVWai7NvVOx 63D2j5DDnna7fKYrJwc4OVVpIu3gbJUPFJXkUUHmZYHFYEdFA3xvGkcGc1PhaA== From: luca.ceresoli@bootlin.com To: David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Thierry Reding , Jonathan Hunter , Sowjanya Komatineni , Mauro Carvalho Chehab , Greg Kroah-Hartman , Hans Verkuil , Dmitry Osipenko Cc: Luca Ceresoli , 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 , Richard Leitner Subject: [PATCH 07/23] staging: media: tegra-video: document tegra_channel_get_remote_source_subdev Date: Wed, 9 Nov 2022 15:18:36 +0100 Message-Id: <20221109141852.729246-8-luca.ceresoli@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221109141852.729246-1-luca.ceresoli@bootlin.com> References: <20221109141852.729246-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?1749028600331003928?= X-GMAIL-MSGID: =?utf-8?q?1749028600331003928?= From: Luca Ceresoli Clarify what this function does. Signed-off-by: Luca Ceresoli --- 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 0fe3c7f6d234..8a7512ce2273 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) {