Changeset 06a36cd1 in rtems for c/src/libchip/i2c/spi-memdrv.c


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-memdrv.c

    r0d23caa r06a36cd1  
    137137  spi_memdrv_param_t  *mem_param_ptr;
    138138  rtems_libi2c_tfr_mode_t tfr_mode = {
    139   baudrate:      20000000, /* maximum bits per second                   */
    140   bits_per_char: 8,        /* how many bits per byte/word/longword?     */
    141   lsb_first:      FALSE,   /* FALSE: send MSB first                     */
    142   clock_inv:      FALSE,   /* FALSE: non-inverted clock (high active)   */
    143   clock_phs:      FALSE    /* FALSE: clock starts in middle of data tfr */
     139    .baudrate =      20000000, /* maximum bits per second                   */
     140    .bits_per_char = 8,        /* how many bits per byte/word/longword?     */
     141    .lsb_first =     FALSE,    /* FALSE: send MSB first                     */
     142    .clock_inv =     FALSE,    /* FALSE: non-inverted clock (high active)   */
     143    .clock_phs =     FALSE     /* FALSE: clock starts in middle of data tfr */
    144144  } ;
    145145
     
    321321  spi_memdrv_param_t  *mem_param_ptr;
    322322  rtems_libi2c_tfr_mode_t tfr_mode = {
    323   baudrate:      20000000, /* maximum bits per second                   */
    324   bits_per_char: 8,        /* how many bits per byte/word/longword?     */
    325   lsb_first:      FALSE,   /* FALSE: send MSB first                     */
    326   clock_inv:      FALSE,   /* FALSE: non-inverted clock (high active)   */
    327   clock_phs:      FALSE    /* FALSE: clock starts in middle of data tfr */
    328   } ;
     323    .baudrate =      20000000, /* maximum bits per second                   */
     324    .bits_per_char = 8,        /* how many bits per byte/word/longword?     */
     325    .lsb_first =     FALSE,    /* FALSE: send MSB first                     */
     326    .clock_inv =     FALSE,    /* FALSE: non-inverted clock (high active)   */
     327    .clock_phs =     FALSE     /* FALSE: clock starts in middle of data tfr */
     328  };
    329329
    330330  /*
     
    436436 */
    437437rtems_driver_address_table spi_memdrv_rw_ops = {
    438   read_entry:  spi_memdrv_read,
    439   write_entry: spi_memdrv_write
     438  .read_entry =  spi_memdrv_read,
     439  .write_entry = spi_memdrv_write
    440440};
    441441
    442442rtems_driver_address_table spi_memdrv_ro_ops = {
    443   read_entry:  spi_memdrv_read,
     443  .read_entry =  spi_memdrv_read,
    444444};
    445445
Note: See TracChangeset for help on using the changeset viewer.