bsps/mvme3100: Use standard C99 designated initializers

This commit is contained in:
Jeremy Lorelli
2025-06-29 16:47:38 -07:00
committed by Joel Sherrill
parent 2483cf035b
commit 4b05acde6f
4 changed files with 18 additions and 18 deletions

View File

@@ -41,7 +41,7 @@ typedef struct {
} VpdBufRec, *VpdBuf;
#define VPD_END { key:End, }
#define VPD_END { .key = End, }
/* Scan the VPD EEPROM for a number of fields

View File

@@ -110,7 +110,7 @@ uint32_t mhz = BSP_bus_frequency/BSP_time_base_divisor/1000;
/* BSP ops (detect banks, handle write-protection on board) */
struct flash_bsp_ops BSP_flashBspOps = {
bankcheck: bankcheck,
flash_wp: flash_wp,
read_us_timer: read_us_timer,
.bankcheck = bankcheck,
.flash_wp = flash_wp,
.read_us_timer = read_us_timer,
};

View File

@@ -435,17 +435,17 @@ i2c_write_bytes(rtems_libi2c_bus_t *bh, unsigned char *buf, int len)
/********* Driver Glue Vars **********/
static rtems_libi2c_bus_ops_t myops = {
init: i2c_init,
send_start: i2c_start,
send_stop: i2c_stop,
send_addr: i2c_send_addr,
read_bytes: i2c_read_bytes,
write_bytes: i2c_write_bytes,
.init = i2c_init,
.send_start = i2c_start,
.send_stop = i2c_stop,
.send_addr = i2c_send_addr,
.read_bytes = i2c_read_bytes,
.write_bytes = i2c_write_bytes,
};
static rtems_libi2c_bus_t my_bus_tbl = {
ops: &myops,
size: sizeof(my_bus_tbl),
.ops = &myops,
.size = sizeof(my_bus_tbl),
};
/********* Global Driver Handle ******/

View File

@@ -211,12 +211,12 @@ static void bsp_early( void )
E500_tlb_va_cache_t *tlb;
VpdBufRec vpdData [] = {
{ key: ProductIdent, instance: 0, buf: BSP_productIdent, buflen: sizeof(BSP_productIdent) - 1 },
{ key: SerialNumber, instance: 0, buf: BSP_serialNumber, buflen: sizeof(BSP_serialNumber) - 1 },
{ key: BusClockHz, instance: 0, buf: &BSP_pci_bus_frequency, buflen: sizeof(BSP_pci_bus_frequency) },
{ key: EthernetAddr, instance: 0, buf: BSP_enetAddr0, buflen: sizeof(BSP_enetAddr0) },
{ key: EthernetAddr, instance: 1, buf: BSP_enetAddr1, buflen: sizeof(BSP_enetAddr1) },
{ key: EthernetAddr, instance: 2, buf: BSP_enetAddr2, buflen: sizeof(BSP_enetAddr2) },
{ .key = ProductIdent, .instance = 0, .buf = BSP_productIdent, .buflen = sizeof(BSP_productIdent) - 1 },
{ .key = SerialNumber, .instance = 0, .buf = BSP_serialNumber, .buflen = sizeof(BSP_serialNumber) - 1 },
{ .key = BusClockHz, .instance = 0, .buf = &BSP_pci_bus_frequency, .buflen = sizeof(BSP_pci_bus_frequency) },
{ .key = EthernetAddr, .instance = 0, .buf = BSP_enetAddr0, .buflen = sizeof(BSP_enetAddr0) },
{ .key = EthernetAddr, .instance = 1, .buf = BSP_enetAddr1, .buflen = sizeof(BSP_enetAddr1) },
{ .key = EthernetAddr, .instance = 2, .buf = BSP_enetAddr2, .buflen = sizeof(BSP_enetAddr2) },
VPD_END
};