aboutsummaryrefslogtreecommitdiff
path: root/samples/gpio-pci-idio-16.c
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2020-12-02 11:38:52 +0000
committerGitHub <noreply@github.com>2020-12-02 11:38:52 +0000
commit3e647c0d3b3506b8160b37748108ba3fbd7cb632 (patch)
tree939e1afeef3d5cb05942a8400a5eff716a7979a9 /samples/gpio-pci-idio-16.c
parentddf444e8da02e0c8796944e2484cd0ca91a0105d (diff)
downloadlibvfio-user-3e647c0d3b3506b8160b37748108ba3fbd7cb632.zip
libvfio-user-3e647c0d3b3506b8160b37748108ba3fbd7cb632.tar.gz
libvfio-user-3e647c0d3b3506b8160b37748108ba3fbd7cb632.tar.bz2
rename VFU_REG_FLAG_* (#145)
We renamed other code to be "REGION" instead of "REG" so it's less ambiguous. Do the same for VFU_REG_FLAG_*. Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-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 149bb59..494fb1a 100644
--- a/samples/gpio-pci-idio-16.c
+++ b/samples/gpio-pci-idio-16.c
@@ -122,7 +122,7 @@ main(int argc, char *argv[])
}
ret = vfu_setup_region(vfu_ctx, VFU_PCI_DEV_BAR2_REGION_IDX, 0x100,
- &bar2_access, VFU_REG_FLAG_RW, NULL, 0, NULL);
+ &bar2_access, VFU_REGION_FLAG_RW, NULL, 0, NULL);
if (ret < 0) {
fprintf(stderr, "failed to setup region\n");
goto out;