Ignore:
Timestamp:
Jul 7, 2011, 10:15:25 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
d90fef2
Parents:
0d23caa
Message:

2011-07-07 Joel Sherrill <joel.sherrill@…>

  • libchip/display/disp_hcms29xx.c, libchip/flash/am29lv160.c, libchip/i2c/i2c-2b-eeprom.c, libchip/i2c/i2c-ds1621.c, libchip/i2c/spi-flash-m25p40.c, libchip/i2c/spi-fram-fm25l256.c, libchip/i2c/spi-memdrv.c, libchip/rtc/ds1375.c: Eliminate use of GNU old-style field designator extension as recommended by clang.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/libchip/i2c/spi-flash-m25p40.c

    r0d23caa r06a36cd1  
    2626static spi_memdrv_t spi_flash_m25p40_rw_drv_t = {
    2727  {/* public fields */
    28   ops:         &spi_memdrv_rw_ops, /* operations of general memdrv */
    29   size:        sizeof (spi_flash_m25p40_rw_drv_t),
     28    .ops =         &spi_memdrv_rw_ops, /* operations of general memdrv */
     29    .size =        sizeof (spi_flash_m25p40_rw_drv_t),
    3030  },
    3131  { /* our private fields */
    32   baudrate:             2000000,
    33   erase_before_program: true,
    34   empty_state:          0xff,
    35   page_size:            256, /* programming page size in byte */
    36   sector_size:          0x10000 /* 64*1024 */, /* erase sector size in byte */
    37   mem_size:             0x80000 /* 512*1024 */ /* total capacity in byte    */
     32    .baudrate =             2000000,
     33    .erase_before_program = true,
     34    .empty_state =          0xff,
     35    .page_size =            256,     /* programming page size in bytes */
     36    .sector_size =          0x10000, /* 64K - erase sector size in bytes */
     37    .mem_size =             0x80000, /* 512K - total capacity in bytes */
    3838  }
    3939};
     
    4444static spi_memdrv_t spi_flash_m25p40_ro_drv_t = {
    4545  {/* public fields */
    46   ops:         &spi_memdrv_ro_ops, /* operations of general memdrv */
    47   size:        sizeof (spi_flash_m25p40_ro_drv_t),
     46    .ops =         &spi_memdrv_ro_ops, /* operations of general memdrv */
     47    .size =        sizeof (spi_flash_m25p40_ro_drv_t),
    4848  },
    4949  { /* our private fields */
    50   baudrate:             2000000,
    51   erase_before_program: true,
    52   empty_state:          0xff,
    53   page_size:            256, /* programming page size in byte */
    54   sector_size:          0x10000 /* 64*1024 */, /* erase sector size in byte */
    55   mem_size:             0x80000 /* 512*1024 */ /* total capacity in byte    */
     50    .baudrate =             2000000,
     51    .erase_before_program = true,
     52    .empty_state =          0xff,
     53    .page_size =            256,    /* programming page size in bytes */
     54    .sector_size =          0x10000, /* 64K erase sector size in bytes */
     55    .mem_size =             0x80000, /* 512K total capacity in bytes */
    5656  }
    5757};
Note: See TracChangeset for help on using the changeset viewer.