Skip to content

Commit a02420e

Browse files
committed
uefi-raw: Revising ShellDeviceNameFlags
1 parent 7afa6ce commit a02420e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

uefi-raw/src/protocol/shell.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,15 @@ pub struct ShellFileInfo {
3232
pub info: FileInfo,
3333
}
3434

35-
/// Used to specify where component names should be taken from
36-
pub type ShellDeviceNameFlags = u32;
37-
3835
bitflags! {
3936
/// Specifies the source of the component name
4037
#[repr(transparent)]
4138
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, PartialOrd, Ord)]
42-
pub struct DeviceName: u32 {
39+
pub struct ShellDeviceNameFlags: u32 {
4340
/// Use Component Name
44-
const DEVICE_NAME_USE_COMPONENT_NAME = 0x0000001;
41+
const USE_COMPONENT_NAME = 0x0000001;
4542
/// Use Device Path
46-
const DEVICE_NAME_USE_DEVICE_PATH = 0x0000002;
43+
const USE_DEVICE_PATH = 0x0000002;
4744
}
4845
}
4946

0 commit comments

Comments
 (0)