Skip to content

Commit

Permalink
pw_spi_mcuxpresso: Rename DoConfigure() to DoConfigureLocked()
Browse files Browse the repository at this point in the history
This is to avoid confusion in a subsequent change.

Change-Id: I9f503a458cdabb3d01fb4e50cd384e4ed04da0e9
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/236232
Commit-Queue: Jonathon Reinhart <[email protected]>
Lint: Lint 🤖 <[email protected]>
Docs-Not-Needed: Jonathon Reinhart <[email protected]>
Reviewed-by: Austin Foxley <[email protected]>
  • Loading branch information
JonathonReinhart authored and CQ Bot Account committed Sep 17, 2024
1 parent a14882b commit 9d17506
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pw_spi_mcuxpresso/public/pw_spi_mcuxpresso/spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ class McuxpressoInitiator : public Initiator {
status_t status,
void* context);

Status DoConfigure(const Config& config,
const std::lock_guard<sync::Mutex>& lock);
Status DoConfigureLocked(const Config& config,
const std::lock_guard<sync::Mutex>& lock);

bool is_initialized() { return !!current_config_; }

Expand Down
8 changes: 4 additions & 4 deletions pw_spi_mcuxpresso/spi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ Status McuxpressoInitiator::Configure(const Config& config) {
if (current_config_ && config == *current_config_) {
return OkStatus();
}
return DoConfigure(config, lock);
return DoConfigureLocked(config, lock);
}

Status McuxpressoInitiator::DoConfigure(const Config& config,
const std::lock_guard<sync::Mutex>&) {
Status McuxpressoInitiator::DoConfigureLocked(
const Config& config, const std::lock_guard<sync::Mutex>&) {
spi_master_config_t master_config = {};
SPI_MasterGetDefaultConfig(&master_config);

Expand Down Expand Up @@ -177,7 +177,7 @@ Status McuxpressoInitiator::SetChipSelect(uint32_t pin) {
if (!current_config_) {
return OkStatus();
}
return DoConfigure(*current_config_, lock);
return DoConfigureLocked(*current_config_, lock);
}

} // namespace pw::spi

0 comments on commit 9d17506

Please sign in to comment.