mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-08 12:19:06 +00:00
HV: add const qualifier for the deinit vdev op functions
This is to fix the following misra c violation: Pointer param should be declared pointer to const. : vdev Tracked-On: #2534 Signed-off-by: dongshen <dongsheng.x.zhang@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -36,7 +36,7 @@ struct pci_vdev;
|
||||
struct pci_vdev_ops {
|
||||
int32_t (*init)(struct pci_vdev *vdev);
|
||||
|
||||
int32_t (*deinit)(struct pci_vdev *vdev);
|
||||
int32_t (*deinit)(const struct pci_vdev *vdev);
|
||||
|
||||
int32_t (*cfgwrite)(struct pci_vdev *vdev, uint32_t offset,
|
||||
uint32_t bytes, uint32_t val);
|
||||
|
Reference in New Issue
Block a user