Skip to content
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/tsl2561: apply unified params definition scheme + cleanup #8673

Merged
merged 6 commits into from
Jul 3, 2018

Conversation

aabadie
Copy link
Contributor

@aabadie aabadie commented Feb 28, 2018

Contribution description

This PR update the params definitions scheme for the tsl2561 device driver.

Issues/PRs references

Initially done in #7937 and related to #7519

#6577

@aabadie aabadie added Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation Process: API change Integration Process: PR contains or issue proposes an API change. Should be handled with care. Area: drivers Area: Device drivers CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Feb 28, 2018
@aabadie aabadie changed the title drivers/tsl2561: apply unified params definition scheme drivers/tsl2561: apply unified params definition scheme + cleanup Feb 28, 2018
@aabadie aabadie changed the base branch from master to new_i2c_if May 27, 2018 21:16
@aabadie aabadie added TF: I2C Marks issues and PRs related to the work of the I²C rework task force and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels May 27, 2018
@aabadie aabadie force-pushed the pr/drivers/params/tsl2561 branch from ead0c01 to b4e24c4 Compare May 27, 2018 21:20
@aabadie aabadie force-pushed the pr/drivers/params/tsl2561 branch from b4e24c4 to 33d4182 Compare June 8, 2018 07:54
@aabadie aabadie force-pushed the pr/drivers/params/tsl2561 branch from 33d4182 to 12460d4 Compare June 18, 2018 11:34
@@ -28,42 +28,44 @@
/**
* @brief Define the number of configured sensors
*/
#define TSL2561_NUMOF (sizeof(tsl2561_params) / sizeof(tsl2561_params[0]))
#define TSL2561_NUM (sizeof(tsl2561_params) / sizeof(tsl2561_params[0]))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this renaming? Its I2C_NUMOF, too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@aabadie aabadie force-pushed the pr/drivers/params/tsl2561 branch from 12460d4 to a751807 Compare June 29, 2018 13:46
@MichelRottleuthner
Copy link
Contributor

tested on pba-d-01-kw2x, works!

@smlng
Copy link
Member

smlng commented Jul 3, 2018

@MichelRottleuthner care to approve and merge then?

Copy link
Contributor

@MichelRottleuthner MichelRottleuthner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@MichelRottleuthner
Copy link
Contributor

@aabadie do you want to squash the param/i2c changes into separate commits?

@aabadie
Copy link
Contributor Author

aabadie commented Jul 3, 2018

@MichelRottleuthner, for me the history of commits is ok in this PR. It can be merged as is.

@aabadie aabadie merged commit 9b4705f into RIOT-OS:new_i2c_if Jul 3, 2018
basilfx pushed a commit to basilfx/RIOT that referenced this pull request Jul 10, 2018
drivers/tsl2561: apply unified params definition scheme + cleanup
dylad pushed a commit to dylad/RIOT that referenced this pull request Jul 10, 2018
drivers/tsl2561: apply unified params definition scheme + cleanup
dylad pushed a commit that referenced this pull request Jul 11, 2018
drivers/tsl2561: apply unified params definition scheme + cleanup
@aabadie aabadie deleted the pr/drivers/params/tsl2561 branch September 23, 2018 08:47
@aabadie aabadie added this to the Release 2018.10 milestone Nov 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: drivers Area: Device drivers Process: API change Integration Process: PR contains or issue proposes an API change. Should be handled with care. TF: I2C Marks issues and PRs related to the work of the I²C rework task force Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants