Skip to content

Commit 9b8322d

Browse files
uefi: Sort OpenProtocolAttributes variants numerically
1 parent d318a25 commit 9b8322d

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

uefi/src/boot.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1736,17 +1736,17 @@ pub enum OpenProtocolAttributes {
17361736
/// the `ByDriver` attribute.
17371737
ByDriver = 0x10,
17381738

1739-
/// Used by a driver to gain exclusive access to a protocol
1740-
/// interface. If any other drivers have the protocol interface
1741-
/// opened with an attribute of `ByDriver`, then an attempt will be
1742-
/// made to remove them with `DisconnectController`.
1743-
ByDriverExclusive = 0x30,
1744-
17451739
/// Used by applications to gain exclusive access to a protocol
17461740
/// interface. If any drivers have the protocol opened with an
17471741
/// attribute of `ByDriver`, then an attempt will be made to remove
17481742
/// them by calling the driver's `Stop` function.
17491743
Exclusive = 0x20,
1744+
1745+
/// Used by a driver to gain exclusive access to a protocol
1746+
/// interface. If any other drivers have the protocol interface
1747+
/// opened with an attribute of `ByDriver`, then an attempt will be
1748+
/// made to remove them with `DisconnectController`.
1749+
ByDriverExclusive = 0x30,
17501750
}
17511751

17521752
/// Parameters passed to [`open_protocol`].

0 commit comments

Comments
 (0)