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

tests: build_all: sensor: enable iis328dq and wsen-pads #78655

Merged

Conversation

soburi
Copy link
Member

@soburi soburi commented Sep 18, 2024

wsen-pads:

Fix to eliminate warnings caused by type mismatch.

iis328dq:
Separating declarations of variables not referenced with #ifdef
when CONFIG_IIS328DQ_THRESHOLD is disabled

Separating declarations of variables not referenced with #ifdef
when CONFIG_IIS328DQ_THRESHOLD is disabled.

Signed-off-by: TOKITA Hiroshi <[email protected]>
Add trigger support for iis328dq build all sensor tests.

Signed-off-by: TOKITA Hiroshi <[email protected]>
Fix to eliminate warnings caused by type mismatch.

Signed-off-by: TOKITA Hiroshi <[email protected]>
Add trigger support for wsen-pads build all sensor tests.

Signed-off-by: TOKITA Hiroshi <[email protected]>
@@ -175,8 +175,10 @@ static void iis328dq_handle_interrupt(const struct device *dev)
struct iis328dq_data *data = dev->data;
stmdev_ctx_t *ctx = (stmdev_ctx_t *)&cfg->ctx;
iis328dq_status_reg_t status;
#ifdef CONFIG_IIS328DQ_THRESHOLD
Copy link
Collaborator

Choose a reason for hiding this comment

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

The variables should probably be marked as __maybe_unused. See https://www.kernel.org/doc/html/latest/process/coding-style.html section 21.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you for your review.
I applied your suggestion.

Copy link
Member

Choose a reason for hiding this comment

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

Zephyr convention is to use the ifdef

@soburi soburi force-pushed the build_all_sensor_iis328dq_wsen_pads branch from a02f579 to a8672d8 Compare September 18, 2024 20:43
jeppenodgaard
jeppenodgaard previously approved these changes Sep 19, 2024
@avisconti avisconti self-assigned this Sep 19, 2024
avisconti
avisconti previously approved these changes Sep 19, 2024
Copy link
Collaborator

@avisconti avisconti left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines 178 to 179
__maybe_unused iis328dq_int1_src_t sources1;
__maybe_unused iis328dq_int2_src_t sources2;
Copy link
Member

Choose a reason for hiding this comment

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

Zephyr convention is to use an ifdef

Copy link
Member Author

Choose a reason for hiding this comment

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

Restored.
Thank you for your check.

@soburi soburi dismissed stale reviews from avisconti and jeppenodgaard via a02f579 September 20, 2024 20:40
@soburi soburi force-pushed the build_all_sensor_iis328dq_wsen_pads branch from a8672d8 to a02f579 Compare September 20, 2024 20:40
@nashif nashif merged commit efc7c7d into zephyrproject-rtos:main Sep 23, 2024
49 checks passed
@soburi soburi deleted the build_all_sensor_iis328dq_wsen_pads branch September 23, 2024 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants