]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/include/rte_pci.h
pci: make device id tables const
[dpdk.git] / lib / librte_eal / common / include / rte_pci.h
index 785852d1a1e5636c89ea0c4d3cf76bc12c2637d5..62449d709f3a84f1a178b6b91ba082132bd98c18 100644 (file)
@@ -204,7 +204,7 @@ struct rte_pci_driver {
        const char *name;                       /**< Driver name. */
        pci_devinit_t *devinit;                 /**< Device init. function. */
        pci_devuninit_t *devuninit;             /**< Device uninit function. */
-       struct rte_pci_id *id_table;            /**< ID table, NULL terminated. */
+       const struct rte_pci_id *id_table;      /**< ID table, NULL terminated. */
        uint32_t drv_flags;                     /**< Flags contolling handling of device. */
 };