Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2537173ybg; Fri, 31 Jul 2020 02:47:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+FG+K4jVHjEkk1maiB1aQsXHCmbquStritmZNny1haoQ4iwe6U42WeCNLtQ97V/l/gLbL X-Received: by 2002:a17:906:4cd2:: with SMTP id q18mr1218805ejt.399.1596188847013; Fri, 31 Jul 2020 02:47:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596188847; cv=none; d=google.com; s=arc-20160816; b=Rg6xWxRI6TJEvKaHVHHo91ef/B1qXTVL3uL/1EvisvhYu/OLtgedfV7VU82bL7sMyN Z8aIDsFODJSqXY7qqrTf2b6Je5MjoPEyvmimp0+x340YufPM+lDToANktfNgZrH/DA4I MAqAkwWfnxwE+Ys1Vcu7iH9BkKqSjxzFnXwLYx2+Rz8EyeHTv7GiqndcnlYNr58mnLTI jVcbU0WOqzAZsxW3uupntbOhw8E4m0TNTKzH/kxbtpbRUAg781T6OKn80LgeEkUVtkyH GOg4m82mEpErkukw+8pi2zNVe52+MtVvT2qjTKD3Go74EWtPQNBgUXXuHtMH4fWvYVU6 wkOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter; bh=+5Joqj7QrRDxPJyzHMJjnbyfdzDpF2c8FTY9byCVINU=; b=iTKXyF6+dvfsFM6Fyh3icd/2UqBnHMppNgAvjfYr9ShdTWvQ+A0RiQ8H7Fr0s8xES5 ci9ef7ye4CKrBpFfcHC56Ik3fZo+k6DCQ2QIldHUOznTtDQuv4gaqlXNssWxjNnyucDq BtECeDUJ+OrW4pZnPWWZjI41ADxAxeVR05pDHhPe+tEtCq0Cfsx2kNU3fR+DuNJfF/jC 9YZfe5HzXpq0D+5jXi+Vt0S/AGTF0VM4zIu55yh36IptURqMEmav0ZrYjolspYhMRASg uCMH6J0/+M4JADAMTzIWYy+vaU0qlpX2aj2mP6OgYHpYm94JVQSk8UMUMIA8+eDt9Kqt ppeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=kmtJXgYu; 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=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q26si4667621ejc.433.2020.07.31.02.47.04; Fri, 31 Jul 2020 02:47:27 -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=@samsung.com header.s=mail20170921 header.b=kmtJXgYu; 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=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732202AbgGaJoc (ORCPT + 99 others); Fri, 31 Jul 2020 05:44:32 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:35989 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732124AbgGaJob (ORCPT ); Fri, 31 Jul 2020 05:44:31 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200731094429euoutp0120163719651090fe5c5d8d59114b331a~mzSNgAF4U0643506435euoutp01C for ; Fri, 31 Jul 2020 09:44:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200731094429euoutp0120163719651090fe5c5d8d59114b331a~mzSNgAF4U0643506435euoutp01C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1596188669; bh=+5Joqj7QrRDxPJyzHMJjnbyfdzDpF2c8FTY9byCVINU=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=kmtJXgYuIyfqj7eGgUwPnyN8SDfv8k6Yr11TBXQFzX8k/4EztisyDIc8oIBTThPPU 91sW6wOsO1AuYm0W4Sis+8DV0KCOB+iapXHTPKr2MJ05pjXwngEZ6VbnQu6PNI/z2u ofhuP6A84GFE+Pn9aouEwb821mZskMAILdhCmhOc= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200731094429eucas1p1e3370b878522bffd703d4d72322c8941~mzSNKxRdc2573425734eucas1p1y; Fri, 31 Jul 2020 09:44:29 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 23.32.05997.DF7E32F5; Fri, 31 Jul 2020 10:44:29 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200731094428eucas1p1b4b54a983777de85c16bad3a1005ca65~mzSMwlScL2573425734eucas1p1x; Fri, 31 Jul 2020 09:44:28 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200731094428eusmtrp2085c2bd09665fd1e19c8e42dccd80db6~mzSMv4JzC0738707387eusmtrp2Y; Fri, 31 Jul 2020 09:44:28 +0000 (GMT) X-AuditID: cbfec7f4-65dff7000000176d-ca-5f23e7fd393f Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 4E.79.06017.CF7E32F5; Fri, 31 Jul 2020 10:44:28 +0100 (BST) Received: from [106.210.123.115] (unknown [106.210.123.115]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200731094427eusmtip2ba9a642a3bcad03c8669a6dda911a984~mzSLwEoRQ0239802398eusmtip2F; Fri, 31 Jul 2020 09:44:27 +0000 (GMT) Subject: Re: [PATCH v2 06/11] media: exynos4-is: Use global num_sensors rather than local index To: Jonathan Bakker , linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kyungmin.park@samsung.com, mchehab@kernel.org, kgene@kernel.org, krzk@kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org From: Sylwester Nawrocki Message-ID: <2ac8f74a-354e-aa28-fac3-71afa09594f8@samsung.com> Date: Fri, 31 Jul 2020 11:44:26 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrAKsWRmVeSWpSXmKPExsWy7djP87p/nyvHG/xrFLSYf+Qcq0X/49fM FufPb2C3ONv0ht1i0+NrrBaXd81hs+jZsJXVYsb5fUwWyzb9YbJo3XuE3eLixLssDtwem1Z1 snlsXlLvsejmDxaPvi2rGD0+b5ILYI3isklJzcksSy3St0vgypi9g7+gm6WioW82WwPjSuYu Rk4OCQETidt3XrN2MXJxCAmsYJS4dKIVyvnCKHHo4QVmCOczo8S+1sWMMC1zn/xhhEgsZ5S4 e+E3O4TzkVGi5f1qJpAqYYFEiQWHrzCBJEQE1jNKLJv8AcxhFmhjlJj3t4EdpIpNwFCi92gf 2FxeATuJf0vPs4DYLAKqEt/XXwCrERWIk9h6/CoTRI2gxMmZT8BqOAViJW5PP8wGYjMLiEvc ejKfCcKWl9j+dg7Y4RIC19glPvyezgZxuIvEuVUzmSBsYYlXx7ewQ9gyEv93zmeCaGhmlOjZ fZsdwpnAKHH/+AKot60l7pz7BTSJA2iFpsT6Xf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cUK8KYmVValF+fFFpTmpxYcYTYGem8gs JZqcD0waeSXxhqaG5haWhubG5sZmFkrivB0CB2OEBNITS1KzU1MLUotg+pg4OKUaGDfI3Dn2 59Ikztnv7i66LPfyilr1mY3Tp+62nuoetFFswtkGm1nHbr5I/f/8B6vPbsHN0purz+05ZxBf 9DtVMe99OZ/7uurVLaffXWa2OSh0sFF84sa2A4uKPApTlU8GV6X/nekT6PZAL8KqkHO9J1eP bEOErva5KpMbWtPeOP6oPHPXaOPu2MNKLMUZiYZazEXFiQDPXrZh4gIAAA== X-CMS-MailID: 20200731094428eucas1p1b4b54a983777de85c16bad3a1005ca65 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200730230239eucas1p2b12c39ca08601b52a54f28c228ae6441 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200730230239eucas1p2b12c39ca08601b52a54f28c228ae6441 References: <20200730230114.8572-1-xc-racer2@live.ca> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 31.07.2020 01:01, Jonathan Bakker wrote: > Instead of keeping a local copy of how many sensors we've probed > (which may not even properly represent the number of sensors > probed if we have a port without a sensor), use the global > num_sensors counter that has the actual number used. > > This will also make it easier to add support for multiple sensors > being connected to the same port. > > Signed-off-by: Jonathan Bakker Reviewed-by: Sylwester Nawrocki