-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
tests: build_all: sensor: enable iis328dq and wsen-pads #78655
Conversation
Separating declarations of variables not referenced with #ifdef when CONFIG_IIS328DQ_THRESHOLD is disabled. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
Add trigger support for iis328dq build all sensor tests. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
Fix to eliminate warnings caused by type mismatch. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
Add trigger support for wsen-pads build all sensor tests. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
@@ -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 |
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.
The variables should probably be marked as __maybe_unused
. See https://www.kernel.org/doc/html/latest/process/coding-style.html section 21.
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.
Thank you for your review.
I applied your suggestion.
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.
Zephyr convention is to use the ifdef
a02f579
to
a8672d8
Compare
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.
LGTM
__maybe_unused iis328dq_int1_src_t sources1; | ||
__maybe_unused iis328dq_int2_src_t sources2; |
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.
Zephyr convention is to use an ifdef
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.
Restored.
Thank you for your check.
a02f579
a8672d8
to
a02f579
Compare
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