-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drivers: netdev2: remove netdev2 event_callback isr_arg #4871
Conversation
As stated in #4864 (comment): I would prefer to change the name of the netdev2_t member then also. With this change the name doesn't make much sense. |
@authmillenon I got a commit somewhere, sec... |
*/ | ||
struct netdev2 { | ||
const struct netdev2_driver *driver; /**< ptr to that driver's interface. */ | ||
netdev2_event_cb_t event_callback; /**< callback for device events */ | ||
void* isr_arg; /**< argument to pass on isr event */ | ||
void* context; /**< ptr to network stack context */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If your at it: fix the spaces ;)
Seems like the right way to go to me. |
Needs rebase (but I would actually prefer to wait for it until #4646 was merged). |
Still needs rebase (#4646 was rebased a while back). |
9c2a95a
to
79258e7
Compare
|
Other than that it seems to work. |
79258e7
to
ad8492a
Compare
found another one in lwip. |
launching CI to check for build errors... |
Sorry somehow forgot about this one -.- |
There are still errors regarding the types of event callbacks. |
7f10187
to
15d9ce4
Compare
@miri64 murdock is happy. did you ack? |
Networking still works for at86rf2xx based boards and native so I say ACK and go. |
Ah wait, let me give emb6 and lwIP a quick test |
🗹 lwIP |
🗹 emb6 and go. |
See #4864.
This PR removes event_callback's extra argument, as it is currently completely unused.
PR marked WIP as I didn't test yet, let's discuss first if we need the argument.