removed last useless comments

This commit is contained in:
Phil-Engljaehringer
2025-10-30 16:28:42 +01:00
committed by Alexander Lerach
parent 57afb5817d
commit eebacc4f7b
3 changed files with 19 additions and 16 deletions
@@ -133,11 +133,13 @@ static mcp23017_gpio_dev_s _gpio[NUM_GPIOS];
// ----------------------------------------------------------------------------
int mcp23017_register_gpios(uint8_t i2c_bus, uint8_t i2c_addr, int first_minor, uint16_t dir_mask)
{
for(int i=0; i<NUM_GPIOS; i++){
for (int i = 0; i < NUM_GPIOS; i++) {
uint16_t mask = 1u << i;
if(dir_mask & mask){
if (dir_mask & mask) {
_gpio[i] = { {GPIO_INPUT_PIN, {}, &mcp23017_gpio_ops}, mask };
}else{
} else {
_gpio[i] = { {GPIO_OUTPUT_PIN, {}, &mcp23017_gpio_ops}, mask };
}
}