[core] mark the configuration table as const

This commit is contained in:
Geoffrey McRae
2020-11-15 15:12:01 +11:00
parent 8ea3ae46fc
commit d88aecfc00
7 changed files with 17 additions and 14 deletions

View File

@@ -28,7 +28,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#include "common.h"
#include "compat.h"
int amd_common_probe(struct vendor_reset_cfg *cfg, struct pci_dev *dev)
int amd_common_probe(const struct vendor_reset_cfg *cfg, struct pci_dev *dev)
{
/* disable bus reset for the card, seems to be an issue with all of them */
dev->dev_flags |= PCI_DEV_FLAGS_NO_BUS_RESET;

View File

@@ -123,7 +123,7 @@ static inline struct amd_vendor_private *amd_private(struct vendor_reset_dev *vd
return vdev->vendor_private;
}
int amd_common_probe(struct vendor_reset_cfg *cfg, struct pci_dev *dev);
int amd_common_probe(const struct vendor_reset_cfg *cfg, struct pci_dev *dev);
int amd_common_pre_reset(struct vendor_reset_dev *);
int amd_common_post_reset(struct vendor_reset_dev *);