Messages in this thread | | | From | Linus Walleij <> | Date | Sun, 18 Sep 2022 16:37:11 +0200 | Subject | Re: [PATCH 2/2] PCI: mvebu: switch to using gpiod API |
| |
On Fri, Sep 16, 2022 at 9:23 AM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
> > Enums work for me - especially if the goal is to differentiate > > logical from physical - there should be a distinct enum for each. > > > > We won't even have to change the function signatures if we go with > enums - they already take an int and I'm in general against putting > enum types into function signatures in C as they give you a false > sense of a strong type.
We are adding Rust to the kernel soon ;) then it's good for documentation of what it is actually expected to be.
But I get your point.
Yours, Linus Walleij
| |