Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 9031228 in mainline


Ignore:
Timestamp:
2013-12-31T03:15:07Z (8 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
f9d9184
Parents:
21ae7ee
Message:

libdrv, pci: Use index initialized arrays.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/remote_pci.c

    r21ae7ee r9031228  
    5151/** Remote USB interface operations. */
    5252static const remote_iface_func_ptr_t remote_pci_iface_ops [] = {
    53         remote_config_space_read_8,
    54         remote_config_space_read_16,
    55         remote_config_space_read_32,
     53        [IPC_M_CONFIG_SPACE_READ_8] = remote_config_space_read_8,
     54        [IPC_M_CONFIG_SPACE_READ_16] = remote_config_space_read_16,
     55        [IPC_M_CONFIG_SPACE_READ_32] = remote_config_space_read_32,
    5656
    57         remote_config_space_write_8,
    58         remote_config_space_write_16,
    59         remote_config_space_write_32
     57        [IPC_M_CONFIG_SPACE_WRITE_8] = remote_config_space_write_8,
     58        [IPC_M_CONFIG_SPACE_WRITE_16] = remote_config_space_write_16,
     59        [IPC_M_CONFIG_SPACE_WRITE_32] = remote_config_space_write_32
    6060};
    6161
Note: See TracChangeset for help on using the changeset viewer.