From patchwork Fri Jul 22 14:16:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Suvorov X-Patchwork-Id: 1659596 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=foundries.io header.i=@foundries.io header.a=rsa-sha256 header.s=google header.b=LNHRir07; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LqBMZ6BJSz9sGq for ; Sat, 23 Jul 2022 00:16:58 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DCB04840B3; Fri, 22 Jul 2022 16:16:36 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=foundries.io 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=foundries.io header.i=@foundries.io header.b="LNHRir07"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AF71083FB2; Fri, 22 Jul 2022 16:16:26 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8F5DD802C2 for ; Fri, 22 Jul 2022 16:16:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=foundries.io Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=oleksandr.suvorov@foundries.io Received: by mail-wm1-x333.google.com with SMTP id n185so2875834wmn.4 for ; Fri, 22 Jul 2022 07:16:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundries.io; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=POcOZ8OKrASW3luQNlqpPMrGP4tQ3eQfP2BpmwpHe8E=; b=LNHRir078K2TDVMVSFNraqr4AlPoPP0nmlytpMSdlFnSkgYq3sCHTG2/raG09xYqG+ prtRY8IvDxDM/aBOez2BvV5zcIjtclREFl+EGVEB/uGuMW+SKt4YcJHua5Rg52X2JUcj eVjW0Wp7t4VH/Mq05tbC7a0t54K2e6H5v1zpLao7w8TsgDlrTRT8bKmnAdNTXwLAMHo9 OTC6OQyRo80mvrmvFLDelahV2bgS2Ezi33CQXFhcXey7hQi6++mzaffu9WAuUTk21to2 eWGS6ZrZ26rX9pnpvTHD4HJwr3uE63/WvR3Td3gQbflRlIroo06jE3aJLokmt9CYA9TE xnlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=POcOZ8OKrASW3luQNlqpPMrGP4tQ3eQfP2BpmwpHe8E=; b=c0BUV9Ma9jnIjgD6ZNYF7ogpGomM4UVyyscFGokuR6ZyXQvIP0IrLTDZQjFYX9hiXK za+fuAEMl1hKpl1/crQBo3XuGhmjM/LVwQwBh6lXswAsknrSf36ipgoFOJbL3ooR+t3F lrwo5PgWoNMCIKg9AgYsf2kuHI62m9UegtcyliqDoH3rhqpPiJTdkuJ+UIBwpSnXQPbh cb2zGN+iDE621lPuaQ8YivzY7TvwM9EZDe2MQqCLfs4lMtk5FAfCa9zePYyLsaoB88q+ AiJT77ogrZ15tbn/kmQXcf4LgLXVS6ZZXRxLr0nR8PmWqHDMHB/i969wD/0+YqvX2MiS 4mdw== X-Gm-Message-State: AJIora8dzIvBvUqAGcQiIeQazLORZiCfPGG+dPR2F/yJEJn82qhbxOkp xZB1kVzMc6Xt8G/Lb0mwMTI+jSy5VhqBXg== X-Google-Smtp-Source: AGRyM1sdrjrieHcsqJQdXbQ2CpmUe+yK1mGAJmok0u/Got+S93v/2VSVKXxC0BPWTHXZVA0jEu+G3w== X-Received: by 2002:a05:600c:1da8:b0:3a3:1969:b0d with SMTP id p40-20020a05600c1da800b003a319690b0dmr12397501wms.172.1658499381853; Fri, 22 Jul 2022 07:16:21 -0700 (PDT) Received: from cryobook.. ([89.105.248.137]) by smtp.gmail.com with ESMTPSA id d13-20020adf9c8d000000b0021e4c3b2967sm4855364wre.65.2022.07.22.07.16.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jul 2022 07:16:21 -0700 (PDT) From: Oleksandr Suvorov To: u-boot@lists.denx.de Cc: Michal Simek , Adrian Fiergolski , Ricardo Salveti , Jorge Ramirez-Ortiz , Igor Opaniuk , Oleksandr Suvorov , Michal Simek Subject: [PATCH v12 02/13] fpga: xilinx: add missed identifier names Date: Fri, 22 Jul 2022 17:16:03 +0300 Message-Id: <20220722141614.297383-3-oleksandr.suvorov@foundries.io> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220722141614.297383-2-oleksandr.suvorov@foundries.io> References: <20220722141614.297383-1-oleksandr.suvorov@foundries.io> <20220722141614.297383-2-oleksandr.suvorov@foundries.io> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.103.6 at phobos.denx.de X-Virus-Status: Clean Function definition arguments should also have identifier names. Add missed ones to struct xilinx_fpga_op callbacks, unifying code. Signed-off-by: Oleksandr Suvorov Tested-by: Ricardo Salveti Tested-by: Adrian Fiergolski --- (no changes since v1) include/xilinx.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/xilinx.h b/include/xilinx.h index ab4537becfa..362943bc717 100644 --- a/include/xilinx.h +++ b/include/xilinx.h @@ -48,12 +48,14 @@ typedef struct { /* typedef xilinx_desc */ } xilinx_desc; /* end, typedef xilinx_desc */ struct xilinx_fpga_op { - int (*load)(xilinx_desc *, const void *, size_t, bitstream_type); - int (*loadfs)(xilinx_desc *, const void *, size_t, fpga_fs_info *); + int (*load)(xilinx_desc *desc, const void *buf, size_t bsize, + bitstream_type bstype); + int (*loadfs)(xilinx_desc *desc, const void *buf, size_t bsize, + fpga_fs_info *fpga_fsinfo); int (*loads)(xilinx_desc *desc, const void *buf, size_t bsize, struct fpga_secure_info *fpga_sec_info); - int (*dump)(xilinx_desc *, const void *, size_t); - int (*info)(xilinx_desc *); + int (*dump)(xilinx_desc *desc, const void *buf, size_t bsize); + int (*info)(xilinx_desc *desc); }; /* Generic Xilinx Functions