Fix clang-tidy: rename setup_interrupt_pin_ to setup_interrupt_pin

This commit is contained in:
J. Nick Koston
2026-04-04 09:17:29 -10:00
parent 41e09c1e6c
commit 3773ff9a98
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ void MCP23008::setup() {
this->write_reg(mcp23x08_base::MCP23X08_IOCON, iocon | IOCON_ODR);
}
this->setup_interrupt_pin_();
this->setup_interrupt_pin();
}
void MCP23008::dump_config() { ESP_LOGCONFIG(TAG, "MCP23008:"); }
+1 -1
View File
@@ -25,7 +25,7 @@ void MCP23017::setup() {
this->write_reg(mcp23x17_base::MCP23X17_IOCONB, iocon | IOCON_ODR);
}
this->setup_interrupt_pin_();
this->setup_interrupt_pin();
}
void MCP23017::dump_config() { ESP_LOGCONFIG(TAG, "MCP23017:"); }
+1 -1
View File
@@ -35,7 +35,7 @@ void MCP23S08::setup() {
this->write_reg(mcp23x08_base::MCP23X08_IOCON, IOCON_SEQOP | IOCON_HAEN | IOCON_ODR);
}
this->setup_interrupt_pin_();
this->setup_interrupt_pin();
}
void MCP23S08::dump_config() {
+1 -1
View File
@@ -43,7 +43,7 @@ void MCP23S17::setup() {
this->write_reg(mcp23x17_base::MCP23X17_IOCONB, IOCON_SEQOP | IOCON_HAEN | IOCON_ODR);
}
this->setup_interrupt_pin_();
this->setup_interrupt_pin();
}
void MCP23S17::dump_config() {
@@ -18,7 +18,7 @@ template<uint8_t N> class MCP23XXXBase : public Component, public gpio_expander:
void set_interrupt_pin(InternalGPIOPin *pin) { this->interrupt_pin_ = pin; }
float get_setup_priority() const override { return setup_priority::IO; }
void setup_interrupt_pin_() {
void setup_interrupt_pin() {
if (this->interrupt_pin_ != nullptr) {
this->interrupt_pin_->setup();
this->interrupt_pin_->attach_interrupt(&MCP23XXXBase::gpio_intr, this, gpio::INTERRUPT_FALLING_EDGE);