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

lib: nrf_modem: deprecate init ret function #8380

Merged
merged 1 commit into from
Sep 9, 2022
Merged

lib: nrf_modem: deprecate init ret function #8380

merged 1 commit into from
Sep 9, 2022

Conversation

MirkoCovizzi
Copy link
Contributor

This commit deprecates the nrf_modem_lib_get_init_ret function
in favor of init hooks.

Signed-off-by: Mirko Covizzi mirko.covizzi@nordicsemi.no

@MirkoCovizzi MirkoCovizzi self-assigned this Aug 11, 2022
@github-actions github-actions bot added the changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. label Aug 11, 2022
@NordicBuilder
Copy link
Contributor

You can find the documentation preview for this PR at this link. It will be updated about 10 minutes after the documentation build succeeds.

Note: This comment is automatically posted by the Documentation Publishing GitHub Action.

samples/nrf9160/nrf_cloud_rest_fota/src/main.c Outdated Show resolved Hide resolved
samples/nrf9160/nrf_cloud_rest_fota/src/main.c Outdated Show resolved Hide resolved
subsys/net/lib/nrf_cloud/src/nrf_cloud_fota_common.c Outdated Show resolved Hide resolved
subsys/net/lib/nrf_cloud/src/nrf_cloud_fota_common.c Outdated Show resolved Hide resolved
subsys/net/lib/nrf_cloud/src/nrf_cloud_fota_common.c Outdated Show resolved Hide resolved
samples/nrf9160/nrf_cloud_rest_fota/src/main.c Outdated Show resolved Hide resolved
samples/nrf9160/nrf_cloud_rest_device_message/src/main.c Outdated Show resolved Hide resolved
samples/nrf9160/nrf_cloud_rest_device_message/src/main.c Outdated Show resolved Hide resolved
samples/nrf9160/nrf_cloud_rest_device_message/src/main.c Outdated Show resolved Hide resolved
struct update_counter counter;

/* Handle return values relating to modem firmware update */
ret = modem_lib_init_result;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
ret = modem_lib_init_result;
int ret = modem_lib_init_result;

Copy link
Contributor

@glarsennordic glarsennordic left a comment

Choose a reason for hiding this comment

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

LGTM, just definitely include that change suggested by @jayteemo

Copy link
Contributor

@eivindj-nordic eivindj-nordic left a comment

Choose a reason for hiding this comment

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

Nice!
There is one occurrence in the azure_fota sample that is yet to be addressed in addition to the lwm2m library.

Copy link
Contributor

@trantanen trantanen left a comment

Choose a reason for hiding this comment

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

Modem shell looks fine

@NordicBuilder
Copy link
Contributor

NordicBuilder commented Sep 1, 2022

Integration test specification

Test Module File based changes Manually selected West overwrite
test-ci-nrfconnect-boot-fw-update X
test-fw-nrfconnect-chip X
test-fw-nrfconnect-nrf-iot_lwm2m X
test-fw-nrfconnect-nrf-iot_mosh X
test-fw-nrfconnect-nrf-iot_positioning X
test-fw-nrfconnect-nrf-iot_samples X
test-fw-nrfconnect-nrf-iot_thingy91 X
test-fw-nrfconnect-nrf-iot_zephyr_lwm2m X
test-sdk-homekit X

Detailed information of selected test modules

Note: This message is automatically posted and updated by the CI

@lemrey
Copy link
Contributor

lemrey commented Sep 1, 2022

Changes look fine, but we need a changelog entry for this.

Copy link
Contributor

@simensrostad simensrostad left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@tokangas tokangas left a comment

Choose a reason for hiding this comment

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

Looks fine from modem_shell point of view.

@MirkoCovizzi MirkoCovizzi added this to the 2.1.0 milestone Sep 2, 2022
@github-actions github-actions bot added doc-required PR must not be merged without tech writer approval. and removed changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. labels Sep 2, 2022
Comment on lines 682 to 686
* Deprecated:

* The following functions:

* ``nrf_modem_lib_get_init_ret``
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* Deprecated:
* The following functions:
* ``nrf_modem_lib_get_init_ret``
* Deprecated the ``nrf_modem_lib_get_init_ret`` function.

Copy link
Contributor

@junqingzou junqingzou left a comment

Choose a reason for hiding this comment

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

SLM update LGTM

Copy link
Contributor

@lemrey lemrey left a comment

Choose a reason for hiding this comment

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

Looks good

@greg-fer greg-fer mentioned this pull request Sep 6, 2022
14 tasks
This commit deprecates the `nrf_modem_lib_get_init_ret` function
in favor of init hooks.

Signed-off-by: Mirko Covizzi <mirko.covizzi@nordicsemi.no>
@rlubos
Copy link
Contributor

rlubos commented Sep 9, 2022

Thingy91 tests have finally passed, merging.

@rlubos rlubos merged commit f760076 into nrfconnect:main Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-required PR must not be merged without tech writer approval.
Projects
None yet
Development

Successfully merging this pull request may close these issues.