From patchwork Mon Nov 28 15:23:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Ceresoli X-Patchwork-Id: 26820 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp5749705wrr; Mon, 28 Nov 2022 07:27:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf5aUkpQ4YbMA3NMayKmHUriR9OCAJHdBkVVZnKySnr8IXFGDdpb0D9dvuT3YXHiGxKpiAOA X-Received: by 2002:a17:907:76e6:b0:7c0:543a:5229 with SMTP id kg6-20020a17090776e600b007c0543a5229mr3451324ejc.58.1669649252100; Mon, 28 Nov 2022 07:27:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669649252; cv=none; d=google.com; s=arc-20160816; b=YcWVcvmMtRHD+oXr2tsUC5nENA5qTTMZIMziMlLpU05luD48qwmRfl5RZF194E3KdG pRvmnV/R1qseLIjuMvzH7t65TiNexHBjh5V9Em/TZ6tSOppwKYfQjmUDVzSdzi9lMkMG vHas19f0dP+zXXHuhncaAX0+FzoEzn7QdS2aumpPBGZ39j8wpx4cy3dXaacKRL5k0xhJ dlWxTAdICUbiVDIzr2un/tY4S+byiMQPWwM9Xe9q0oy3OPB9IyTHL/+bWxSbBkDnZH4d TWspOZ6EL5DC8N9zEb/DWWBZcXaA1d8lhW/4m0Ov4J1+7KDw0RDHKZggAQT+W+3BNwlK giVg== 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=RoMDwf3xqKYueuSpR2HfCTCREn/qoJjq+QmVjrebPsE=; b=O0gebn8TH2U9goTlVmqamQfM5SheOk0nno3zQIs97xh6XOx/DXJEmGf7OEPOa5xWAS ncPsx6kZDzyllf3T9cOtZOe3tkfrub5et0Badfrs8ys/Wd6/SC+iqAf4Jme2frduYNB9 CBbwu1Gg0X8IGYChy+5gXpa4hKXuWDgoQfwNU8Oc6I8A69II/0a4FPKm0nnM3rPuAANo /0K87yGqwH8Wh6JhJZmvp678Ht/QWFZXvm/lbkkrPsmbmLaIYfHowtopt3BpC/Z/4Ups t1/murS0U+85lI9L9fpMm3DVBvLwsabzYrUy+rLITD1T5YXIcIU1QVzAX9vuoBz1Xqt7 RGrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=mmGQEmMV; 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 ht14-20020a170907608e00b007ad7e81a30csi10067777ejc.167.2022.11.28.07.27.05; Mon, 28 Nov 2022 07:27:32 -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=mmGQEmMV; 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 S232091AbiK1PZw (ORCPT + 99 others); Mon, 28 Nov 2022 10:25:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232003AbiK1PZM (ORCPT ); Mon, 28 Nov 2022 10:25:12 -0500 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8121324BD3; Mon, 28 Nov 2022 07:24:20 -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 B75B8100006; Mon, 28 Nov 2022 15:24:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1669649059; 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=RoMDwf3xqKYueuSpR2HfCTCREn/qoJjq+QmVjrebPsE=; b=mmGQEmMV8d3XHqD1H8VmQoYs68HeMrY7q/TucHaOrkeVwbWWr/khMJDOoSi+pD5sJDbBT5 hg4De2APQO1tZN+xoYlh8NfOiTLG9oC2MmhWErTzfsX4olF9nF9mq8xDaOAxCsjJ811LeM 5HCr/+tVzMRbppr4b6GaD+R9lZzv2wX/pliD/wevIASIoICmbzV8U0Jj9uISuwgbITKDST 1OpS25XYCScDlSlU4D8rRGmey0+WUdnYPO2FXKLV6nZgMd28gR96bz1+5MhZMcZ1Gf60rZ 65K7EqsJDsGnn0K3oErzgxy79eG54sAwGiOEkG/3shbrzTAZbVGoaElaXBg/pg== From: Luca Ceresoli To: David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Thierry Reding , Jonathan Hunter , Sowjanya Komatineni , Mauro Carvalho Chehab , Greg Kroah-Hartman , Dmitry Osipenko , Hans Verkuil 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 , Paul Kocialkowski , Richard Leitner Subject: [PATCH v2 05/21] staging: media: tegra-video: document tegra_channel_get_remote_source_subdev Date: Mon, 28 Nov 2022 16:23:20 +0100 Message-Id: <20221128152336.133953-6-luca.ceresoli@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221128152336.133953-1-luca.ceresoli@bootlin.com> References: <20221128152336.133953-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?1750754134385670091?= X-GMAIL-MSGID: =?utf-8?q?1750754134385670091?= Clarify what this function does. Signed-off-by: Luca Ceresoli --- 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 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) {