From patchwork Sun Oct 11 12:25:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 1380349 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=libero.it Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=libero.it header.i=@libero.it header.a=rsa-sha256 header.s=s2014 header.b=Ru9XUD1A; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4C8LdM4Yd9z9sS8 for ; Sun, 11 Oct 2020 23:26:15 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E69D782413; Sun, 11 Oct 2020 14:25:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=libero.it Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=libero.it header.i=@libero.it header.b="Ru9XUD1A"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0C202823AC; Sun, 11 Oct 2020 14:25:58 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,FREEMAIL_FROM,SPF_HELO_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from libero.it (smtp-34.italiaonline.it [213.209.10.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 327058237F for ; Sun, 11 Oct 2020 14:25:55 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=libero.it Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=dariobin@libero.it Received: from passgat-Modern-14-A10M.homenet.telecomitalia.it ([79.31.32.113]) by smtp-34.iol.local with ESMTPA id RaQBkmVBlmMFTRaQEkXWgg; Sun, 11 Oct 2020 14:25:55 +0200 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2014; t=1602419155; bh=mKx9Biv6kXAQl9EuOSKjA+LcN0BypKn/4DzO8rI7RFc=; h=From; b=Ru9XUD1AD+9PKTCCgVSLg5XUZ+0kKm4BAJHiK13JupUI01relaj1JG7OBok9uMQTM 5fadM2CiYWs0TO6loCZk343p2bQtOaYG2zEcBCNH5qp3XBMXrhLeHjcMdzAN66D0fD mIw/RY1IIwF6ZCViyzQhmYf1VrOGXrc+smGVxg8y7AZtjUCKSxjzRp+G9crJIkFYYi MVwLzHvCAWGz2vgWsEeOOeXJk5/5dHvQx0lNJtyVDq2b8BNnjb22zdwjtPUfk7CDsU tKTM5ch573V/dcqkeiPU0cM1WaV6HuURCydgPihi/06TcKmRKsP5x+4Hyp6sl4Qnxh VzK9/TG09l/yQ== X-CNFS-Analysis: v=2.4 cv=KetsDSUD c=1 sm=1 tr=0 ts=5f82f9d3 a=9myQFBeCGQ66/mXSe6vdPA==:117 a=9myQFBeCGQ66/mXSe6vdPA==:17 a=cm27Pg_UAAAA:8 a=l87upCk2Norp0HzcDuIA:9 a=xmb-EsYY8bH0VWELuYED:22 a=pHzHmUro8NiASowvMSCR:22 a=nt3jZW36AmriUCFCBwmW:22 From: Dario Binacchi To: u-boot@lists.denx.de Cc: Grygorii Strashko , Dario Binacchi , Simon Glass Subject: [PATCH 1/2] dm: core: improve uclass_get_device_by_phandle_id() description Date: Sun, 11 Oct 2020 14:25:46 +0200 Message-Id: <20201011122547.24825-2-dariobin@libero.it> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201011122547.24825-1-dariobin@libero.it> References: <20201011122547.24825-1-dariobin@libero.it> X-CMAE-Envelope: MS4xfGXbyjVOkycpzc/QtndnI9eFnFseMPg6iuFGCcN1CcTo+xIupPAdjuXmdMtfOOqtXx4zesv1U5EUvhgY13qlLii0qPUiblLl3Lo+3CrS/rgHnpso2aXv Qq2ODnKxt09Mk6V+E903u6phW6sJdJmnx2qA0wMAd9jTMYo5iscaVClFdjGX1aVvCs1w8wHChk2U6iMzBlYII3P1vNxrgEdfoCL0lCiYyIBHzLg3ymVHvo6f CMYCIgNXptzjrotkP6o2kiF48GcdZtz3K/jHl4CRIYuf25e71pl5vH3atyM/Mf67/mlXc55PyM8fPXxkdsiXhu04rjLrhVpziRw5K2QuxLU= X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean Complete the devp parameter description. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- include/dm/uclass.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/dm/uclass.h b/include/dm/uclass.h index 67ff7466c8..7188304304 100644 --- a/include/dm/uclass.h +++ b/include/dm/uclass.h @@ -224,7 +224,8 @@ int uclass_get_device_by_ofnode(enum uclass_id id, ofnode node, * * @id: uclass ID to look up * @phandle_id: the phandle id to look up - * @devp: Returns pointer to device (there is only one for each node) + * @devp: Returns pointer to device (there is only one for each node). NULL if + * there is no such device. * @return 0 if OK, -ENODEV if there is no device match the phandle, other * -ve on error */ From patchwork Sun Oct 11 12:25:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 1380350 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=libero.it Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=libero.it header.i=@libero.it header.a=rsa-sha256 header.s=s2014 header.b=gU0dnNEY; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4C8LdZ3SRpz9sTD for ; Sun, 11 Oct 2020 23:26:26 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 04D8F82457; Sun, 11 Oct 2020 14:26:02 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=libero.it Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=libero.it header.i=@libero.it header.b="gU0dnNEY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B86A782453; Sun, 11 Oct 2020 14:26:00 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,FREEMAIL_FROM,SPF_HELO_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from libero.it (smtp-34.italiaonline.it [213.209.10.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B8BCD82396 for ; Sun, 11 Oct 2020 14:25:55 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=libero.it Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=dariobin@libero.it Received: from passgat-Modern-14-A10M.homenet.telecomitalia.it ([79.31.32.113]) by smtp-34.iol.local with ESMTPA id RaQBkmVBlmMFTRaQFkXWgn; Sun, 11 Oct 2020 14:25:55 +0200 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2014; t=1602419155; bh=53nS6U4VUdRHCgzWrdQQuytkW7//yFIi1einczcpQ64=; h=From; b=gU0dnNEYPPuLzehhiI4I+Vb2gqB396Pi45LaMIsgk3iKytbo9o1hB2UfmINUyeoLB eld3TjrEpDjrIYB3wTp3dzghIed7dyxjBj5R5ibkW9aZFSfJ2aw3QbfOIX+FpMr5RB eqIDg+/c3alG5vROYd1884cFjKi4K0ahPfcHQ1U8vZ/oVNNjEPkgNqpRq3F78/kYs3 hRdlOsm4SBOHpU3iP7HsHC3VuldY4ZLh8EPgnsndRCoVKXISijtbAzeqqYyBxcQ2Wq GoLqC7YTqJMGJcNMHToOG2DZaOQenTOZK7hTZSoTV8etBt+EdylFrEUbXIc5DFxMQa UYO/OEWvlc4ug== X-CNFS-Analysis: v=2.4 cv=KetsDSUD c=1 sm=1 tr=0 ts=5f82f9d3 a=9myQFBeCGQ66/mXSe6vdPA==:117 a=9myQFBeCGQ66/mXSe6vdPA==:17 a=cm27Pg_UAAAA:8 a=9pOiC8I7Pntk1QD_Hl0A:9 a=8zLAYJ7Fn67ZwLo4:21 a=d82sKb8D0H6kpwe7:21 a=xmb-EsYY8bH0VWELuYED:22 From: Dario Binacchi To: u-boot@lists.denx.de Cc: Grygorii Strashko , Dario Binacchi , Bin Meng , Jean-Jacques Hiblot , Patrick Delaunay , Pratyush Yadav , Simon Glass Subject: [PATCH 2/2] gpio: fix gpio_request_by_name() description Date: Sun, 11 Oct 2020 14:25:47 +0200 Message-Id: <20201011122547.24825-3-dariobin@libero.it> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201011122547.24825-1-dariobin@libero.it> References: <20201011122547.24825-1-dariobin@libero.it> X-CMAE-Envelope: MS4xfGXbyjVOkycpzc/QtndnI9eFnFseMPg6iuFGCcN1CcTo+xIupPAdjuXmdMtfOOqtXx4zesv1U5EUvhgY13qlLii0qPUiblLl3Lo+3CrS/rgHnpso2aXv Qq2ODnKxt09Mk6V+E903u6phW6sJdJmnx2qA0wMAd9jTMYo5iscaVClFvpFVlIrx6yCadLxZINQtCD8oVUSQcnDEo+du6risHAXfk36TE+DeY3TuT/tDxTpE TrHsj4Mtil4w6F+8PeCETSZPgFCBNr5Pb+Xt2ar/Ih5slf2tScOf7Hse3NGlNqPB1Ud3ueAHDup0XX55HMxs0wFF40oQ8o4GTRlQW3ZCH6Pj0c0owkg/uQiZ QhnULvmikVo0GehUcoMzrOh48v6W1czrneSQ0ZKTBevQujRYSgLGCF+ceBN23pEcxAEkL4yp5nCgERNX1hZIDUSRUWtQ3w== X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean Replace 'dev->dev' with '@desc->dev' in the gpio_request_by_name function desc parameter description. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- include/asm-generic/gpio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h index 3ae1894a98..82294cbdc5 100644 --- a/include/asm-generic/gpio.h +++ b/include/asm-generic/gpio.h @@ -496,7 +496,7 @@ int gpio_claim_vector(const int *gpio_num_array, const char *fmt); * @list_name: Name of GPIO list (e.g. "board-id-gpios") * @index: Index number of the GPIO in that list use request (0=first) * @desc: Returns GPIO description information. If there is no such - * GPIO, dev->dev will be NULL. + * GPIO, @desc->dev will be NULL. * @flags: Indicates the GPIO input/output settings (GPIOD_...) * @return 0 if OK, -ENOENT if the GPIO does not exist, -EINVAL if there is * something wrong with the list, or other -ve for another error (e.g.