On Fri, Apr 19, 2024 at 4:43 PM Aapo Vienamo <aapo.vienamo@xxxxxxxxxxxxxxx> wrote: > > Can you rename this: > > gnr_gpio_configure_direction()? > > I do agree that the pad part of the name maybe isn't the best, though > this function isn't just for direction control, since it's used for > setting the pin output state as well in gnr_gpio_set(). The idea is that > locking and masking of the register accesses is factored out of the gpio > callbacks and implemented in this function. > > Maybe gnr_gpio_configure_pin()? gnr_gpio_configure_line() in that case, it clearly isn't a pin since it is virtual and for that reason called *v*GPIO, right? Pins are a very physical thing. It's that kind of confusion I want to avoid in naming. Yours, Linus Walleij