From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 051DEC3527B for ; Mon, 28 Feb 2022 07:49:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233687AbiB1Htg (ORCPT ); Mon, 28 Feb 2022 02:49:36 -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 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