removed last useless comments

This commit is contained in:
Phil-Engljaehringer
2025-11-10 16:28:19 +01:00
committed by Alexander Lerach
parent 57afb5817d
commit eebacc4f7b
3 changed files with 19 additions and 16 deletions
@@ -135,8 +135,10 @@ int mcp23017_register_gpios(uint8_t i2c_bus, uint8_t i2c_addr, int first_minor,
{ {
for (int i = 0; i < NUM_GPIOS; i++) { for (int i = 0; i < NUM_GPIOS; i++) {
uint16_t mask = 1u << i; uint16_t mask = 1u << i;
if (dir_mask & mask) { if (dir_mask & mask) {
_gpio[i] = { {GPIO_INPUT_PIN, {}, &mcp23017_gpio_ops}, mask }; _gpio[i] = { {GPIO_INPUT_PIN, {}, &mcp23017_gpio_ops}, mask };
} else { } else {
_gpio[i] = { {GPIO_OUTPUT_PIN, {}, &mcp23017_gpio_ops}, mask }; _gpio[i] = { {GPIO_OUTPUT_PIN, {}, &mcp23017_gpio_ops}, mask };
} }
@@ -193,6 +193,7 @@ extern "C" int mcp23017_main(int argc, char *argv[])
case 'U': case 'U':
config_data.interval = atoi(cli.optArg()); config_data.interval = atoi(cli.optArg());
break; break;
case 'R': case 'R':
config_data.int_en = (int)strtol(cli.optArg(), nullptr, 0); config_data.int_en = (int)strtol(cli.optArg(), nullptr, 0);
break; break;