mirror of
https://github.com/gnif/vendor-reset.git
synced 2026-03-29 06:32:44 +02:00
[core] mark the configuration table as const
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 *);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user