This is an automated email from the ASF dual-hosted git repository. utzig pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-mcumgr.git
The following commit(s) were added to refs/heads/master by this push: new 8d087a7 zephyr: constify struct device 8d087a7 is described below commit 8d087a7e0e5485394419d10051606c92d68d2111 Author: Fabio Utzig <fabio.ut...@nordicsemi.no> AuthorDate: Wed Sep 2 12:58:49 2020 -0300 zephyr: constify struct device Follow update done with: https://github.com/zephyrproject-rtos/zephyr/pull/24873 That makes struct device const. Signed-off-by: Fabio Utzig <fabio.ut...@nordicsemi.no> --- cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt.c b/cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt.c index 484f75d..5e178d3 100644 --- a/cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt.c +++ b/cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt.c @@ -331,7 +331,7 @@ img_mgmt_impl_erase_image_data(unsigned int off, unsigned int num_bytes) } /* align requested erase size to the erase-block-size */ - struct device *dev = flash_area_get_device(fa); + const struct device *dev = flash_area_get_device(fa); struct flash_pages_info page; off_t page_offset = fa->fa_off + num_bytes - 1; @@ -343,7 +343,7 @@ img_mgmt_impl_erase_image_data(unsigned int off, unsigned int num_bytes) } size_t erase_size = page.start_offset + page.size - fa->fa_off; - + rc = flash_area_erase(fa, 0, erase_size); if (rc != 0) {