Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2621712pxm; Mon, 28 Feb 2022 02:54:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJzP4ZCD1PgZy4NOxhvLWwVDInKk98ECSguGB3xaWTskdQt19NFO+BAQyWwjIQC8776phQs8 X-Received: by 2002:a17:90a:9f48:b0:1bc:3064:7567 with SMTP id q8-20020a17090a9f4800b001bc30647567mr16033940pjv.53.1646045664499; Mon, 28 Feb 2022 02:54:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646045664; cv=none; d=google.com; s=arc-20160816; b=qj3YyQ8/lQIi0fPVm4UfFXKYZ5bo1NTQl1y7DHAgReKSxK4C1TlTTdkJxhHSSDJ2md +ID3hXCX1m9YtXtIpY1waWexhD03N2YT6PCfQralREyKp2MFE+rTB2LTsNs8RzzyKMoz ToD/DB4PdG6UssupKPWxeyXirY5uA2KHCYl6Qua1zu5cnf4KAEpq/EA9GpYFowp9dHJq VAF7ErTpVo7oUbakfhJbcG6R0izMUk1E0PCWP95wvRRR1Ty21ZMfH+Dsy4v+7pvMD/f+ qlnTUH0e24HOh8Io3YW3u5z2Clf0v1MKIwSHVQgUqAUEhy4UwGsNL27sbvVJsopZgf1D XPoQ== 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 :message-id:in-reply-to:date:sender:references:subject:cc:to:from :dkim-signature:dkim-filter; bh=KWt1aJphAP4xMpPdLN9k3CBn6uEAPCiswJSyjzSZ9+o=; b=UpmyscwZRdrPQL6GzRRvu8YnSRFv+TyrkpbAbNnVa9TWXU77tdsSRIbmHIdeIvBYiT h9waqhk9xvDFwiGpiNQ7Kx5IIqnSLkGygIktAz1xfWobhv2El3aekOvhSuC5YeByw+rW bLhn25Q/Bqf0nPZUJc24hIKYnF97wjBvxTkh6+rG+Kj/FaS4nkN5pM1U0zMifKER4W3u vp7S6r2sgX6Y2li3Ca733Cf9/AgrR75j1agVJwqD1xAJ91Ahq0t2T+stAAsn8zr5ZJdv iLcajsiJxGhP2sBAH5FIKLL2W1uiRb8hLJ2bEVJ/KmWfThx+gU6HbHJf4M3sNxOahMen 8scQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@piap.pl header.s=mail header.b=AImQVRQN; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=piap.pl Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q2-20020a170902c9c200b0014cb20e184fsi8051761pld.30.2022.02.28.02.54.10; Mon, 28 Feb 2022 02:54:24 -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=@piap.pl header.s=mail header.b=AImQVRQN; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=piap.pl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233708AbiB1Htf (ORCPT + 99 others); Mon, 28 Feb 2022 02:49:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231867AbiB1Htd (ORCPT ); Mon, 28 Feb 2022 02:49:33 -0500 Received: from ni.piap.pl (ni.piap.pl [195.187.100.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8576F3D1CE; Sun, 27 Feb 2022 23:48:52 -0800 (PST) Received: from t19.piap.pl (OSB1819.piap.pl [10.0.9.19]) by ni.piap.pl (Postfix) with ESMTPSA id 4A7C4C3F2A54; Mon, 28 Feb 2022 08:48:48 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 ni.piap.pl 4A7C4C3F2A54 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=piap.pl; s=mail; t=1646034528; bh=KWt1aJphAP4xMpPdLN9k3CBn6uEAPCiswJSyjzSZ9+o=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=AImQVRQN7yUvuGLtiShcFQTbgXXTwezMYl6SygPRxytbaeq81d37XjrOpepRcYXrQ tFhNVjx2uVhCo9Y/JFB2vz5NqizfB8bsffWuxWnRsbRzTIBKWoExuX0G+eKL0oOYBl tk85IDF/FB+WvBUglsObjzdSRBFcwLV7NI7DgkZU= From: =?utf-8?Q?Krzysztof_Ha=C5=82asa?= To: Sakari Ailus Cc: Jacopo Mondi , Mauro Carvalho Chehab , Rob Herring , devicetree@vger.kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Laurent Pinchart , Joe Perches Subject: Re: [PATCH v7 2/2] Driver for ON Semi AR0521 camera sensor References: <20220109153439.bfnfigocaeeeghmp@uno.localdomain> Sender: khalasa@piap.pl Date: Mon, 28 Feb 2022 08:48:48 +0100 In-Reply-To: (Sakari Ailus's message of "Fri, 25 Feb 2022 15:18:10 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-KLMS-Rule-ID: 3 X-KLMS-Message-Action: skipped X-KLMS-AntiSpam-Status: not scanned, whitelist X-KLMS-AntiPhishing: not scanned, whitelist X-KLMS-AntiVirus: Kaspersky Security for Linux Mail Server, version 8.0.3.30, not scanned, whitelist X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Hi Sakari, Sakari Ailus writes: >> >> + // access the sensor only if it's powered up > > /* This is the preferred comment style */ I keep forgetting about this. Maybe because most other code I work with (not drivers/media) has already switched to // (single-line) comments. > The OF folks have shunned to the use of the iterative varants as that can > often lead to complicated parsing of the endpoints. As obtaining the > endpoint based on port and endpoint IDs works well in all cases I've > suggested people to use that. But as the backend, at least currently, uses > iterative functions, they're unlikely to disappear in the future. I understand I should continue using fwnode_graph_get_endpoint_by_id(), right? Thanks. --=20 Krzysztof "Chris" Ha=C5=82asa Sie=C4=87 Badawcza =C5=81ukasiewicz Przemys=C5=82owy Instytut Automatyki i Pomiar=C3=B3w PIAP Al. Jerozolimskie 202, 02-486 Warszawa