nctgpio: change default pin names to those used by the datasheet(s)
That is, instead of the current GPIO00 - GPIO15 the names will be GPIO00 - GPIO07, GPIO10 - GPIO17. The first digit is a GPIO "bank" / group number and the second one is a pin number within the bank. Alternative view is that the pin names are changed from decimal numbering scheme to octal one (as there are 8 pins per bank). Discussed with: cem, gonzo MFC after: 2 weeks
This commit is contained in:
parent
9aba06377d
commit
0222625608
@ -529,7 +529,7 @@ nct_attach(device_t dev)
|
||||
pin->gp_caps = NCT_GPIO_CAPS;
|
||||
pin->gp_flags = 0;
|
||||
|
||||
snprintf(pin->gp_name, GPIOMAXNAME, "GPIO%02u", i);
|
||||
snprintf(pin->gp_name, GPIOMAXNAME, "GPIO%02o", i);
|
||||
pin->gp_name[GPIOMAXNAME - 1] = '\0';
|
||||
|
||||
if (nct_pin_is_input(sc, i))
|
||||
|
Loading…
Reference in New Issue
Block a user