-
Notifications
You must be signed in to change notification settings - Fork 2.1k
drivers/tcs37727: apply unified params definition scheme #8683
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
Conversation
/** | ||
* @brief Export the sensor's SAUL interface | ||
*/ | ||
extern const saul_driver_t tcs37727_saul_driver; |
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.
To be honest, now that I see this option, I think I prefer the extern
definition to be in the drivers header. This way one just needs to include the header to get access to the driver, which seems to be for me the more natural way for a C-programmer to get access to global definitions. Also, a user not using auto_init
would have to know what to get from extern
. The (public) documentation for that is also removed here. Or is there anything speaking against this?
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.
but SAUL is a higher layer API, and should not be dependency of the lower layer driver. That said, one should also remove the #include "saul.h"
above.
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.
That said, one should also remove the #include "saul.h" above.
Indeed, will do
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.
but SAUL is a higher layer API, and should not be dependency of the lower layer driver. That said, one should also remove the #include "saul.h" above.
You are right.
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.
Maybe have some <driver_name>_saul.h
or <driver_name>/saul.h
instead than?
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.
inclusion of saul.h removed.
/** | ||
* @brief Export the sensor's SAUL interface | ||
*/ | ||
extern const saul_driver_t tcs37727_saul_driver; |
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.
but SAUL is a higher layer API, and should not be dependency of the lower layer driver. That said, one should also remove the #include "saul.h"
above.
tested with pba-d-01-kw2x -> works |
26c0e4f
to
469dc53
Compare
@miri64, your comments are addressed here. |
469dc53
to
28dac25
Compare
28dac25
to
ba7c40a
Compare
ba7c40a
to
739aeac
Compare
@miri64 can you've another look (or dismiss your review), thx! we should get I2C rework through to avoid blocking I2C changes/addition in master for too long. |
ping @miri64 we want to get the I2C rework done -- if possible for the upcoming release, please check your review, THX! |
Sorry, lost track on this one. Dismissed my review.
On a separate note: does it make sense to push this effort for the upcoming release? Wouldn't it be safer to merge the I²C rework after the release so it can mature until the next release? |
re-tested ACK |
I'm not sure that's the best moment for this kind of question but ok. For various reasons, the sooner, the better I think: a lot of effort, from a lot of people has already been put in this work, the I2C embargo is annoying because it blocks other contributions, there's a good momentum around this topic in the community and this I2C rework initiative was launched even before the previous release (the initial work started more than one year ago). |
let's see how much we can achieve within the next few days, we are on a good track - but in the end its up to the release manager @cladmi to decide what's in and out. However, keep pushing to drop the embargo sooner than later. |
I think it's the perfect moment to ask this question. Lot's of people under pressure and wanting to finish there work ASAP (which is for very the reasons @aabadie gave very understandable). But exactly because of that it is sometimes helpful to step back (or a third party to step in) and ask: is this still the right thing to do now. I'm just worried that we push it too quickly just because we want to get done on the risk of potentially breaking the a huge chunk of the next release. Don't get me wrong, I'd like to have the embargo dropped also sooner rather than later, but not on the condition of having a broken release. |
Do you really think the perfect moment exists ? I don't.
Any valuable active help is always welcome to avoid this, volunteer ? |
Apart from testing on the little bit of hardware I have, I think there isn't much I can contribute with regarding that kind of help. But if you have questions regarding process or Git I am happy to help :-) |
drivers/tcs37727: apply unified params definition scheme
drivers/tcs37727: apply unified params definition scheme
drivers/tcs37727: apply unified params definition scheme
Contribution description
This PR update the params definitions scheme for the tcs37727 device driver.
Issues/PRs references
Initially done in #7937 and related to #7519
#6577