]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fpga: xilinx: add missed identifier names
authorOleksandr Suvorov <oleksandr.suvorov@foundries.io>
Fri, 22 Jul 2022 14:16:03 +0000 (17:16 +0300)
committerMichal Simek <michal.simek@amd.com>
Tue, 26 Jul 2022 07:34:21 +0000 (09:34 +0200)
Function definition arguments should also have identifier names.
Add missed ones to struct xilinx_fpga_op callbacks, unifying code.

Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
Tested-by: Ricardo Salveti <ricardo@foundries.io>
Tested-by: Adrian Fiergolski <adrian.fiergolski@fastree3d.com>
Link: https://lore.kernel.org/r/20220722141614.297383-3-oleksandr.suvorov@foundries.io
Signed-off-by: Michal Simek <michal.simek@amd.com>
include/xilinx.h

index ab4537becfad10fb5ecaf038619a0c17525f9d58..362943bc717db35d8ae696d0b9ac56f0c4df64db 100644 (file)
@@ -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