mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-02-23 12:45:07 -07:00
hw/block/nvme: enum style fix
Align with existing style and use a typedef for header-file enums. Signed-off-by: Klaus Jensen <k.jensen@samsung.com> Tested-by: Dmitry Fomichev <dmitry.fomichev@wdc.com> Reviewed-by: Dmitry Fomichev <dmitry.fomichev@wdc.com>
This commit is contained in:
parent
5720669605
commit
b05fde2881
3 changed files with 13 additions and 14 deletions
|
|
@ -1212,7 +1212,7 @@ typedef struct QEMU_PACKED NvmeZoneDescr {
|
|||
uint8_t rsvd32[32];
|
||||
} NvmeZoneDescr;
|
||||
|
||||
enum NvmeZoneState {
|
||||
typedef enum NvmeZoneState {
|
||||
NVME_ZONE_STATE_RESERVED = 0x00,
|
||||
NVME_ZONE_STATE_EMPTY = 0x01,
|
||||
NVME_ZONE_STATE_IMPLICITLY_OPEN = 0x02,
|
||||
|
|
@ -1221,7 +1221,7 @@ enum NvmeZoneState {
|
|||
NVME_ZONE_STATE_READ_ONLY = 0x0D,
|
||||
NVME_ZONE_STATE_FULL = 0x0E,
|
||||
NVME_ZONE_STATE_OFFLINE = 0x0F,
|
||||
};
|
||||
} NvmeZoneState;
|
||||
|
||||
static inline void _nvme_check_size(void)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue