vfio-mdev/samples: make mdev_fops const and static
authorBhumika Goyal <bhumirks@gmail.com>
Sat, 30 Sep 2017 16:17:24 +0000 (21:47 +0530)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 2 Oct 2017 18:40:05 +0000 (12:40 -0600)
commit79d40370e8d31886a9413e2ee115fc426b4ae97e
treefb312d986f7cac861a524e5bdb1edd2ee2c929e2
parent5c2fefd882d3666f11447e3e0fe663a8a7f64cc9
vfio-mdev/samples: make mdev_fops const and static

Make this const as it is only passed to a const argument of the function
mdev_register_device. Make it static as it is not referenced in any
other file.

Structure found using Coccinelle and changes done by hand.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
samples/vfio-mdev/mtty.c