Skip to content

Commit 8cc6d67

Browse files
uefi-raw: Rename BlockIo to BlockIoProtocol
Forgot to add the suffix when implementing this protocol.
1 parent 03bfa12 commit 8cc6d67

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

uefi-raw/src/protocol/block.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub struct BlockIoMedia {
2727
}
2828

2929
#[repr(C)]
30-
pub struct BlockIo {
30+
pub struct BlockIoProtocol {
3131
pub revision: u64,
3232
pub media: *const BlockIoMedia,
3333
pub reset: unsafe extern "efiapi" fn(this: *mut Self, extended_verification: bool) -> Status,
@@ -48,6 +48,6 @@ pub struct BlockIo {
4848
pub flush_blocks: unsafe extern "efiapi" fn(this: *mut Self) -> Status,
4949
}
5050

51-
impl BlockIo {
51+
impl BlockIoProtocol {
5252
pub const GUID: Guid = guid!("964e5b21-6459-11d2-8e39-00a0c969723b");
5353
}

uefi/src/proto/media/block.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
use crate::proto::unsafe_protocol;
44
use crate::{Result, StatusExt};
55

6-
pub use uefi_raw::protocol::block::Lba;
6+
pub use uefi_raw::protocol::block::{BlockIoProtocol, Lba};
77

88
/// The Block I/O protocol.
99
#[repr(transparent)]
10-
#[unsafe_protocol(uefi_raw::protocol::block::BlockIo::GUID)]
11-
pub struct BlockIO(uefi_raw::protocol::block::BlockIo);
10+
#[unsafe_protocol(BlockIoProtocol::GUID)]
11+
pub struct BlockIO(BlockIoProtocol);
1212

1313
impl BlockIO {
1414
/// Pointer for block IO media.

0 commit comments

Comments
 (0)