Rename struct gpio_t to struct gpio to distinguish from gpio_t#1668
Rename struct gpio_t to struct gpio to distinguish from gpio_t#1668mossmann merged 1 commit intogreatscottgadgets:mainfrom
struct gpio_t to struct gpio to distinguish from gpio_t#1668Conversation
|
@antoinevg This will conflict badly with your work in #1657, so if you'd rather include this change in that PR somehow, I can drop this one. |
dfaa6e3 to
31e27c8
Compare
Thank you @martinling, good call! Commit with the change is here for perusal and/or any feedback: fd6ab3b |
|
@antoinevg You have the same problem in that commit, just with both types being named |
|
Oh doh, it's worse than I thought… Tx! Updated commit: 10710f0 |
|
@antoinevg Yup that looks good. I'll close this one. |
9c479d2 to
31e27c8
Compare
|
Re-opened and rebased against |
mossmann
left a comment
There was a problem hiding this comment.
@antoinevg It looks like there are some stragglers in ui_portapack.c that I think should be included.
|
We originally had two types sharing the name
The struct has been renamed to The (See exchange between me and @martinling above for my shared initial confuzzlement) |
We've been using
gpio_tas both the name of astruct, and a typedef for a pointer to thatstruct.In C that's possible because
struct gpio_tnames a different type fromgpio_t, but it's confusing, and causes problems when trying to include the types elsewhere.