Cc: Jordan Justen <jordan.l.justen@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
};\r
\r
#define QEMU_VIDEO_CIRRUS_MODE_COUNT \\r
- (sizeof (QemuVideoCirrusModes) / sizeof (QemuVideoCirrusModes[0]))\r
+ (ARRAY_SIZE (QemuVideoCirrusModes))\r
\r
/**\r
Construct the valid video modes for QemuVideo.\r
};\r
\r
#define QEMU_VIDEO_BOCHS_MODE_COUNT \\r
- (sizeof (QemuVideoBochsModes) / sizeof (QemuVideoBochsModes[0]))\r
+ (ARRAY_SIZE (QemuVideoBochsModes))\r
\r
EFI_STATUS\r
QemuVideoBochsModeSetup (\r