Skip to content

Commit 02253b7

Browse files
authored
fix: use the same name as the specification (#109)
* fix: rename `max{,imum}_primary_stream_array_size` * chore: add a changelog
1 parent 874547f commit 02253b7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
### Changed
88
- `set_xxx(true_or_false)` methods of the Registers and the Extended Capabilities are split into `set_xxx()` and `clear_xxx()`.
9+
- `CapabilityParameters1::max_primary_stream_array_size` is renamed to `CapabilityParameters1::maximum_primary_stream_array_size`.
910

1011
## 0.6.0 - 2021-04-27
1112
### Added

src/registers/capability.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ impl CapabilityParameters1 {
240240

241241
/// Returns the value of the Maximum Primary Stream Array Size field.
242242
#[must_use]
243-
pub fn max_primary_stream_array_size(self) -> u8 {
243+
pub fn maximum_primary_stream_array_size(self) -> u8 {
244244
self.0.get_bits(12..=15).try_into().unwrap()
245245
}
246246

@@ -266,7 +266,7 @@ impl_debug_from_methods! {
266266
stopped_short_packet_capability,
267267
stopped_edtla_capability,
268268
contiguous_frame_id_capability,
269-
max_primary_stream_array_size,
269+
maximum_primary_stream_array_size,
270270
xhci_extended_capabilities_pointer
271271
}
272272
}

0 commit comments

Comments
 (0)