summaryrefslogtreecommitdiff
path: root/OvmfPkg
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2018-03-10 21:58:44 +0100
committerLaszlo Ersek <lersek@redhat.com>2018-03-13 14:31:05 +0100
commit4120bb498fcc08344fa54bf299c64ff0450871d1 (patch)
tree91741883e641da89c26e95c69038a80526de0145 /OvmfPkg
parenta3d7ae2ed87ee8cb7d6c516520556ceb634dfba9 (diff)
downloadedk2-4120bb498fcc08344fa54bf299c64ff0450871d1.zip
edk2-4120bb498fcc08344fa54bf299c64ff0450871d1.tar.gz
edk2-4120bb498fcc08344fa54bf299c64ff0450871d1.tar.bz2
OvmfPkg/VirtioMmioDeviceLib: improve style of mMmioDeviceProtocolTemplate
In edk2, we spell "static" "STATIC", plus objects with static storage duration (esp. protocol templates) should be const-qualified (spelled "CONST") whenever possible. Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Jordan Justen <jordan.l.justen@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'OvmfPkg')
-rw-r--r--OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDevice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDevice.c b/OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDevice.c
index fce934e..03aa7bc 100644
--- a/OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDevice.c
+++ b/OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDevice.c
@@ -20,7 +20,7 @@
#include "VirtioMmioDevice.h"
-static VIRTIO_DEVICE_PROTOCOL mMmioDeviceProtocolTemplate = {
+STATIC CONST VIRTIO_DEVICE_PROTOCOL mMmioDeviceProtocolTemplate = {
0, // Revision
0, // SubSystemDeviceId
VirtioMmioGetDeviceFeatures, // GetDeviceFeatures