Alexander Dahl 135d2926d2 fpga: Avoid ignored-qualifiers warning
Fixes annoying warnings of the following type when built with W=1 (for
each file including fpga.h):

      CC      drivers/fpga/fpga.o
    In file included from /mnt/data/adahl/src/u-boot/include/xilinx.h:7,
                     from /mnt/data/adahl/src/u-boot/drivers/fpga/fpga.c:10:
    /mnt/data/adahl/src/u-boot/include/fpga.h:61:1: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
       61 | const fpga_desc *const fpga_get_desc(int devnum);
          | ^~~~~
    /mnt/data/adahl/src/u-boot/include/fpga.h:81:1: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
       81 | const fpga_desc *const fpga_validate(int devnum, const void *buf,
          | ^~~~~
    /mnt/data/adahl/src/u-boot/drivers/fpga/fpga.c:36:1: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
       36 | const fpga_desc *const fpga_get_desc(int devnum)
          | ^~~~~
    /mnt/data/adahl/src/u-boot/drivers/fpga/fpga.c:53:1: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
       53 | const fpga_desc *const fpga_validate(int devnum, const void *buf,
          | ^~~~~

Do some type and cast cleanup on that fpga_desc type while at it.

Link: https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wignored-qualifiers
Signed-off-by: Alexander Dahl <ada@thorsis.com>
Link: https://lore.kernel.org/r/20250121162213.1477506-1-ada@thorsis.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
2025-02-05 16:22:55 +01:00
..
2025-01-31 08:32:11 -06:00
2024-10-17 03:12:47 +02:00
2025-01-22 15:58:03 -06:00
2024-10-24 11:20:58 -06:00
2024-11-20 17:57:58 +01:00
2025-01-05 02:30:49 +01:00
2024-09-24 13:41:20 -06:00
2025-02-05 16:22:55 +01:00
2024-10-10 16:02:20 -06:00
2024-12-31 10:58:30 -06:00
2025-01-26 11:06:56 +01:00
2024-11-04 16:41:38 -06:00
2025-01-29 22:52:24 +01:00
2024-10-24 11:21:48 -06:00
2024-11-25 23:07:37 -03:00
2024-09-30 17:48:12 -06:00
2024-11-20 17:57:58 +01:00
2024-09-12 17:35:37 +02:00
2025-01-14 14:29:29 -06:00
2025-01-07 15:45:51 +02:00
2025-01-01 10:40:33 -06:00
2025-02-03 16:01:36 -06:00
2024-11-13 08:14:23 -06:00