aboutsummaryrefslogtreecommitdiff
path: root/samples/gpio-pci-idio-16.c
diff options
context:
space:
mode:
authorswapnili <swapnil.ingle@nutanix.com>2020-11-25 17:35:50 +0100
committerGitHub <noreply@github.com>2020-11-25 17:35:50 +0100
commit384c1c80d4ddc397684704c85441183bfecd5d13 (patch)
treedf6813560772779fe1cbb14aaaae3e507348e484 /samples/gpio-pci-idio-16.c
parentadc65938c8771172b80d6d523f7b1608ba3f8d46 (diff)
downloadlibvfio-user-384c1c80d4ddc397684704c85441183bfecd5d13.zip
libvfio-user-384c1c80d4ddc397684704c85441183bfecd5d13.tar.gz
libvfio-user-384c1c80d4ddc397684704c85441183bfecd5d13.tar.bz2
PCI regions idx enum renamed to start with LM_PCI (#125)
* PCI regions idx enum renamed to start with LM_PCI Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
Diffstat (limited to 'samples/gpio-pci-idio-16.c')
-rw-r--r--samples/gpio-pci-idio-16.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/gpio-pci-idio-16.c b/samples/gpio-pci-idio-16.c
index 6d1e6b8..7572ce2 100644
--- a/samples/gpio-pci-idio-16.c
+++ b/samples/gpio-pci-idio-16.c
@@ -119,7 +119,7 @@ main(int argc, char *argv[])
goto out;
}
- ret = lm_setup_region(lm_ctx, LM_DEV_BAR2_REG_IDX, 0x100, &bar2_access,
+ ret = lm_setup_region(lm_ctx, LM_PCI_DEV_BAR2_REGION_IDX, 0x100, &bar2_access,
LM_REG_FLAG_RW, NULL, NULL);
if (ret < 0) {
fprintf(stderr, "failed to setup region\n");