From patchwork Thu Nov 11 09:58:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Suvorov X-Patchwork-Id: 1553848 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=SIw5v1Zp; 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 (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HqcdB4C3Kz9s1l for ; Thu, 11 Nov 2021 20:59:26 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CB81083A2D; Thu, 11 Nov 2021 10:59:15 +0100 (CET) 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="SIw5v1Zp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3C9AE83A2C; Thu, 11 Nov 2021 10:59:11 +0100 (CET) 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-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) (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 2B9C5839DB for ; Thu, 11 Nov 2021 10:59:06 +0100 (CET) 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-lj1-x236.google.com with SMTP id u25so8175433ljo.12 for ; Thu, 11 Nov 2021 01:59:06 -0800 (PST) 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=QQK5kwNMnk1rBPXAt0dMqZd0bv6ITNYRkVuACzsaPe4=; b=SIw5v1ZpH6hGA/hFw82T3MTCQRPfnFmebHQlE01zw+KCPnFgTZKnL925FafetBahkA /NzwRMoffjPXZmWbbk3MEv+CRFeYRJApJt5ZxqAQCQvuyolug1Bp4GA/2FeGkSHkUIzR OoCFW0B2p6HuUVIzwvXmc3vaPg0UOYYpf6U5aLxvoH6FdU4kfY2gq9ovKBoRMPLpZVQM k6Lz8HFG49yAlZvReeANpTNPRYFcYb0Cxx1kC00WEhPd9QfXKJxTGHwC4dTEkrJ5S0Qd 25/ZN/mRrldrh/VvWnYGZJkuvvxoFsGlUiHiJ9+UCbTPujanRohKFfpc7Uc8PoSqCvSh n1DQ== 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=QQK5kwNMnk1rBPXAt0dMqZd0bv6ITNYRkVuACzsaPe4=; b=0yRTLg97GMd6atICeFVT6278fHXDXDgNE4waZre/ABHdFgf1UZd/eAMAh/hfBykwQz Y9nEYoaDyFmYEKBldK1S4KUoLGLQRQ9yQtjWt7gpvyh7JSb+fPrQDdqd752b/VHXLDCY GA3svNBIgPx/r3FYMeFF2FNUWCs5UGGAVBdznonZGWytAn8cI1zEqVM0NS2q1S5mVbS3 Ep/DM16vb+5hr+Wh5ntw5bdEObk7/Upkoo7Dzw9Q2Yu26RptxK1cukAfojYwHXqcm9qi 3dp9zBN+8w5J4TlleTC7Gq6QZfdPCIo94C1V7UnzEY6s9lZ6wtmcyKGFytEdgOEXNn5I mELQ== X-Gm-Message-State: AOAM531l5Doh0U52iR+7Eb6qcOcARVTEPXpCH2jCBhWav9HYHuJxjMBh 6TsWZdPeDv8WDvCgx56mUXP5pmRkxCy1DA== X-Google-Smtp-Source: ABdhPJxRJ0MlYJAVkQ/kgf/zC7Z6vbQa93ei9xYm+Qha2/wWd5ptFtlAZK96FZ2yU8wBcR0ZIXORzQ== X-Received: by 2002:a2e:834b:: with SMTP id l11mr5788125ljh.339.1636624745287; Thu, 11 Nov 2021 01:59:05 -0800 (PST) Received: from localhost.localdomain ([83.218.251.13]) by smtp.gmail.com with ESMTPSA id i1sm240582lfu.307.2021.11.11.01.59.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Nov 2021 01:59:04 -0800 (PST) From: Oleksandr Suvorov To: u-boot@lists.denx.de Cc: Michal Simek , Igor Opaniuk , Ricardo Salveti , Jorge Ramirez-Ortiz , Oleksandr Suvorov , Michal Simek Subject: [RFC PATCH v4 4/6] fpga: xilinx: add missed identifier names Date: Thu, 11 Nov 2021 11:58:40 +0200 Message-Id: <20211111095842.47443-5-oleksandr.suvorov@foundries.io> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211111095842.47443-4-oleksandr.suvorov@foundries.io> References: <20211111095842.47443-1-oleksandr.suvorov@foundries.io> <20211111095842.47443-2-oleksandr.suvorov@foundries.io> <20211111095842.47443-3-oleksandr.suvorov@foundries.io> <20211111095842.47443-4-oleksandr.suvorov@foundries.io> MIME-Version: 1.0 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.103.2 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 57b0e7be113..06ecc9a842c 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