mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 20:48:55 +00:00
73534c684f
Modifying FDTs and applying overlays will require additional APIs to read property values. Ideally, we want to avoid implementing a new getter method for each supported property value type, and instead have a single `get_prop` method, and the same for alreaddy existing setters. Therefore, before implementing property value getters, this change replaces the seven setter methods for each supported property value type with a single `set_prop` method taking a type which implements `ToFdtPropval` trait. Also, implement the trait for each supported type. Bug: b/296796644 Test: cd cros_fdt && cargo test Change-Id: Iac05b4b2064d98657e19058fa25ffc689789c8b3 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4916795 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Jakob Vukalović <jakobvukalovic@google.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |