From patchwork Sat Jun 11 22:06:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Suvorov X-Patchwork-Id: 1642476 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=Ft0PiM6L; 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) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LLBlj2J00z9s07 for ; Sun, 12 Jun 2022 08:07:45 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5FDF984424; Sun, 12 Jun 2022 00:07:13 +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="Ft0PiM6L"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 35BF684417; Sun, 12 Jun 2022 00:07:07 +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-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) (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 C85788440D for ; Sun, 12 Jun 2022 00:07:03 +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-lf1-x135.google.com with SMTP id a15so3527559lfb.9 for ; Sat, 11 Jun 2022 15:07:03 -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=Ft0PiM6LAJUI/ST8JPkqBQJ/5OO1xU2fYyPjhoO2gaalhtYqrFlWgSW3hNF1Xxkp8t gCtlYy6Iv9te4GDreL9N1/eNx9DPVqMREAfFb8yy5sctlC7UsovKxfXKgVbvQM65My+E Li23rwplpCIuWM4tIJ+0gZw5sEjz8x9RWS/hV9hwJRB46ECQ9poJmu/iVbr+2a6wP7EV pfUWGuLGzeZUqo0IpM9EZ2W4EdcQdplL/Y9zArDtEm5NTGZl7ekBKD0jKCdThiOrOutV MBwlXr6RW+s1jrJDkoJUwzUM2xR5F8tLuUR0BugDKSX/KRkOQHad1CpHijHFR2C493iB 19Xg== 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=N2t+9X8/8eSUbtIOEVJILH5BqXEpgKRXJKzOiXo3d6XtCyjF6gt/JEeZRrf68UV6Qb g9b5Ofs4m4aL3rkt8USOFXW/5MMkBvjv2JqNBK76NB4wpUZlnQ6J7Sn8Hl8ELbUQok7+ Jw2wiKgRSPfVfTgYA3NAZsSuXbpVm5zBHzjCC4Nc8ch5ggGC7Or/GiSEjMbxIMNHwg8q 9L+LDSQRQ8wkzsWKMTAhd8EwcVp5rxdHYJ2nzH6Okrk5n2ufDhyuvwkaEGdAdacyzfAY 5CQCNNf4SRNDhw5lE4WoZ6tSi9+fCQMFlcuSx9NKAU486Z4FrBNjq+JVwEHC4xN7UfOg dvmQ== X-Gm-Message-State: AOAM533KveeezFsuuVmBA3/4odLSAMxhFlNuC1gMr38/B4R6hqCSL0M9 3ecypUK/fgemtcnNXwqGz27kN3YEF00psQ== X-Google-Smtp-Source: ABdhPJzlk6CcBpimyw43IYmWaukAGDaylqj6KamAEI0OQFFx/qNfx7+bSy/csz1tmRHzHoYvUXqayg== X-Received: by 2002:a05:6512:1682:b0:479:97f:ebb with SMTP id bu2-20020a056512168200b00479097f0ebbmr31370292lfb.52.1654985221977; Sat, 11 Jun 2022 15:07:01 -0700 (PDT) Received: from cryobook.. ([93.188.34.55]) by smtp.gmail.com with ESMTPSA id c30-20020a2ebf1e000000b0025583eb9becsm433623ljr.69.2022.06.11.15.07.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jun 2022 15:07:01 -0700 (PDT) From: Oleksandr Suvorov To: u-boot@lists.denx.de Cc: Adrian Fiergolski , Ricardo Salveti , Jorge Ramirez-Ortiz , Michal Simek , Igor Opaniuk , Oleksandr Suvorov , Michal Simek Subject: [PATCH v10 02/13] fpga: xilinx: add missed identifier names Date: Sun, 12 Jun 2022 01:06:43 +0300 Message-Id: <20220611220654.103236-3-oleksandr.suvorov@foundries.io> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220611220654.103236-2-oleksandr.suvorov@foundries.io> References: <20220611220654.103236-1-oleksandr.suvorov@foundries.io> <20220611220654.103236-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.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