Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1903837ybz; Thu, 30 Apr 2020 07:30:31 -0700 (PDT) X-Google-Smtp-Source: APiQypIj2T4VgufcsKktiwwgoNM7UOISdmzAJiAZ4Z9H4nA1ATcpbOrCDXayuOmvW9RIWdESraWF X-Received: by 2002:a17:906:7750:: with SMTP id o16mr3011605ejn.12.1588257031596; Thu, 30 Apr 2020 07:30:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588257031; cv=none; d=google.com; s=arc-20160816; b=OVxX5asCVTY/LFsx2pfsQyVDkM55fbJbitWbaZNO33rPuMeMnQ8hBwHiSu/lhdB90/ ROaoZtJ2fWlDk2e8CvV32oP6eUFgqp8X/HDGNCNE/+Fr5XTXJp7vLdQfbFnyokCkkJCH 6OXze6vk3iWEkocLnRTzbkTpm6hGq+NUjL5f2ZmGmXk0DbGZjSIdONwXamA50TzEKJ4U lW2dRpCHbtRuOGYmi3Xv4QHD6spyxTdAKW0FL+7WXJh9pHF19Ynji0tNdj1fc80o6sdZ hR9qUy29O+iBFwv/s5B/3dn1gCl9tdWtA9ek3F5CbseNUgMjO0oJsCQ39fZoFUi5npLI KSTQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=tCY9CYxU1gOzRgXfCj/hSl5kyF2mN2AlCiXAxXLnSuM=; b=Qez+V95pjZSeeAv9jm7IqOscywB2FgEGo66c1Yl6kDBv5Pnf4SzV1mx8c97cdgdMEA 95I05x1qv9+dORJwowx87vnpLU3RlNNoAA/PHqNrFqb/IGJ9pzgk00X57t5WQS5iBBp/ CaPLsCV1D0+CY1ED8nSF4Otinc2GMNUyKxaWCZZPrHTPLWPLyuFYjhgN7TDZe8cSo7Yj rmDvuXuFm9zgTZlgh+V99tEO0MFlfK9nPa2XsIIcQXP4+y//clSTMSTPF0i42EeOLs3e Dxuh5xLNVqpnp1mGUKWZfOm5YYTJb9zxddL6rSflRhZfuvKO89rUQjPUbRWwwtU6utFe yLmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Yls6c42g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p1si5875972ejw.313.2020.04.30.07.30.05; Thu, 30 Apr 2020 07:30:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Yls6c42g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728395AbgD3OZP (ORCPT + 99 others); Thu, 30 Apr 2020 10:25:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726853AbgD3OZO (ORCPT ); Thu, 30 Apr 2020 10:25:14 -0400 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0BDAC035494; Thu, 30 Apr 2020 07:25:13 -0700 (PDT) Received: by mail-lf1-x141.google.com with SMTP id j14so1371441lfg.9; Thu, 30 Apr 2020 07:25:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=tCY9CYxU1gOzRgXfCj/hSl5kyF2mN2AlCiXAxXLnSuM=; b=Yls6c42gjD6zTZpJzYY5ocdHYSZeyoSnujMd9pi8JSCHJ3DnixNK8u1NSrrQghA6w8 9tkHj0U6/xNjU7hJhx8h64wdiry/1JMSUI1rS4Mm7eqZh7AXgVBecNthGqNzwOb4DOaE lIlIiTvDtAl+OPGwD17vAL7ZWINU10TUkLgRdmS3s1IACHN7iF6cKMPYGnz+EVz+fsAS Y3NDUEKc5nmiGii7c4qhPvDTYfG+Bu2MVsm0Qw8qJnBq9C46ngDOfo/okVRzh1+OtHl+ x60FWuExZgACWju7/R55m1NGf8Ig87+ClD2hP8N6zTo29DsWU3piOGyPfZ6qSbIkpxRf 6QJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=tCY9CYxU1gOzRgXfCj/hSl5kyF2mN2AlCiXAxXLnSuM=; b=AmNOpei6ToD9ZUslZq0usvosFVEDuYZPrfMyzAfGmIxuxSnRnxIAiK15nKJEH7Pxqf emgmSUX/dsSN8zSjimgBtkNP8mqTSYAhHKUrzU94xm0A6NpeK34N2U6vLer2tDxZ9GLF tS5zLFGAbGq7o0gYtk6VGkciyRod/ajo2Za4STy6gEO3yu6ZW54GEs8kfT7LLJKD7d7M ovQvNb6cNI+51gWjxwJbx5RFMFjFUT6BG5yVlSTvjGm9uSTpEegtzBrqerp7XK1W2dvS 5V9u3b72gvM1Uhu0V2Y0OSwNUnfNVDnuFjRgcgXfk/V3zCSiqO8CGBAgZVgdeXOBsaFU l80w== X-Gm-Message-State: AGi0PuY7rL9dyRxLBqW0bZNJisuuC9E0XsSiXa+c0hU2BS6CwAHRnOdJ sMSCxLvDGSHSuylzYWSUJZWuwZBP X-Received: by 2002:a05:6512:108a:: with SMTP id j10mr2368340lfg.38.1588256712061; Thu, 30 Apr 2020 07:25:12 -0700 (PDT) Received: from [192.168.2.145] (ppp91-78-208-152.pppoe.mtu-net.ru. [91.78.208.152]) by smtp.googlemail.com with ESMTPSA id a28sm4893311lfr.4.2020.04.30.07.25.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 Apr 2020 07:25:11 -0700 (PDT) Subject: Re: [RFC PATCH v11 6/9] media: tegra: Add Tegra210 Video input driver To: Sowjanya Komatineni , thierry.reding@gmail.com, jonathanh@nvidia.com, frankc@nvidia.com, hverkuil@xs4all.nl, sakari.ailus@iki.fi, helen.koike@collabora.com Cc: sboyd@kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org References: <1588197606-32124-1-git-send-email-skomatineni@nvidia.com> <1588197606-32124-7-git-send-email-skomatineni@nvidia.com> From: Dmitry Osipenko Message-ID: <05271cd8-010d-6e09-2bb0-97519d3db3c6@gmail.com> Date: Thu, 30 Apr 2020 17:25:10 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <1588197606-32124-7-git-send-email-skomatineni@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 30.04.2020 01:00, Sowjanya Komatineni пишет: > +int tegra_v4l2_nodes_setup_tpg(struct tegra_video_device *vid) > +{ > + struct tegra_vi *vi = vid->vi; > + struct tegra_csi *csi = vid->csi; > + struct tegra_vi_channel *vi_chan; > + struct tegra_csi_channel *csi_chan; > + u32 link_flags = MEDIA_LNK_FL_ENABLED; > + int ret = 0; No need to unnecessarily initialize variables. Same for all other similar occurrences in the code.