From patchwork Tue May 31 23:08:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Suvorov X-Patchwork-Id: 1637655 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=XQiYvPeM; dkim-atps=neutral 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=) 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 (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LCSfD1cPYz9sG6 for ; Wed, 1 Jun 2022 09:09:40 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 091CB840D8; Wed, 1 Jun 2022 01:08:59 +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="XQiYvPeM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D4D0883EF9; Wed, 1 Jun 2022 01:08:50 +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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) (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 47D8083E43 for ; Wed, 1 Jun 2022 01:08:48 +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-wr1-x42e.google.com with SMTP id t6so17727wra.4 for ; Tue, 31 May 2022 16:08:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundries.io; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZKVIK6Kt3lZhkWkFAYr8+zqaQxCqL1GvhDDBYC1zmvg=; b=XQiYvPeMphaJHT14TRm+U0cQXFohyICr6Do4gcp59/P7GxfVyi5TiM6+D56RyXzgKu HxpD6MkyvDTotRRNFeB1WmrZun4UdCihSNErFtb/UwzmESUihSc80VQn8UGjkR+L6jAz IDC5LVfzbLVOfsgzAeaJt6bdCLD23RQ8rzGBTNdTZQx5jKssxfEBF95HWDS+zhBAk1EE pcOq40WeHeZhK+4rmUJPIbNSVsPMUzKR/bsntpPFMxv0D7GRFmrzJsKtWhjWP8hcchro CiSTkhBWK5jouVyn02+e4y6ohDBU9YEms4FqZsPWWdby5HqEC/PhAGVs0565BtRMfh8h GG3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZKVIK6Kt3lZhkWkFAYr8+zqaQxCqL1GvhDDBYC1zmvg=; b=6Ar3zfBujJUTQQ7vnJ0mhTjqhhnIYfY244oXDwQCXTwnsE53grHWprc92hCFobd5Fn aNtY42AuBwij/9+jDc/asPDDkxCP3lApR1VQHVhDhfsyVAnbiO318NLCPsw22qcHmwaz xRnZNYF9ygUXULL+uR6c+ufciPFUAQQjgugGxn7/YmGU9Ac1mibDKJ4FHEoDmxQCBWAf Hdi6HxFGzeJQVAKHRv4xjMq3O84xNDvhCtAo9/ZtKaX9Y7URWpIRgKi11+IBypFbR8dN aEiXqwrYP9cY6gwhYFzrjx5scYXSAGq3EcHi4UIbDzMPRYo9rYaafVdrCemWiBHBad5k wwfg== X-Gm-Message-State: AOAM530Yrq9bcgsaFtlhkH5TpIhaOrNLjFp4m4eZ8My1OyFzDjsxg3rS 7HdQ8pzSf6G8pf7IjECwUPJtBeDw+F8EiA== X-Google-Smtp-Source: ABdhPJwXkAKV7Rir9OrPzGu1VRE9MXbWJIqJ+8bt0gtWRPnfsmsS/ipsE1Q6biVFLS067/CvN5H8PQ== X-Received: by 2002:adf:d1c9:0:b0:20f:c3dc:e980 with SMTP id b9-20020adfd1c9000000b0020fc3dce980mr44784038wrd.552.1654038527596; Tue, 31 May 2022 16:08:47 -0700 (PDT) Received: from cryobook.. ([93.188.34.55]) by smtp.gmail.com with ESMTPSA id j12-20020a5d618c000000b002102f4ebf73sm7673539wru.31.2022.05.31.16.08.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 May 2022 16:08:47 -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 v8 03/14] fpga: xilinx: add missed identifier names Date: Wed, 1 Jun 2022 02:08:28 +0300 Message-Id: <20220531230839.183690-4-oleksandr.suvorov@foundries.io> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220531230839.183690-3-oleksandr.suvorov@foundries.io> References: <20220531230839.183690-1-oleksandr.suvorov@foundries.io> <20220531230839.183690-2-oleksandr.suvorov@foundries.io> <20220531230839.183690-3-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.5 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 --- (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