nvscic2c-pcie: Use proper enum for drv_mode

Use the proper enum name for returning the value from
pci_client_get_drv_mode().

Instead of returning NVCPU_MAXIMU, return DRV_MODE_MAXIMUM
which is more appropriate return value.

Bug 4374520

Change-Id: I172fe7bdc926fcacbde6428db59c17bec57f7443
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3014987
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Laxman Dewangan
2023-11-12 18:30:53 +00:00
committed by mobile promotions
parent b91f49ff74
commit 091c57a1d8

View File

@@ -761,7 +761,7 @@ pci_client_get_drv_mode(void *pci_client_h)
return DRV_MODE_INVALID; return DRV_MODE_INVALID;
drv_ctx = pci_client_ctx->drv_ctx; drv_ctx = pci_client_ctx->drv_ctx;
if (WARN_ON(!drv_ctx)) if (WARN_ON(!drv_ctx))
return NVCPU_MAXIMUM; return DRV_MODE_MAXIMUM;
return drv_ctx->drv_mode; return drv_ctx->drv_mode;
} }