From ea94f58cfaf97f0d6e6df992a60273d188fd40bf Mon Sep 17 00:00:00 2001 From: "Vanya A. Sergeev" Date: Thu, 11 May 2017 00:39:09 -0700 Subject: [PATCH] libbladeRF/driver: fix const correctness of fx3_fw_entry_point() --- host/libraries/libbladeRF/src/driver/fx3_fw.c | 2 +- host/libraries/libbladeRF/src/driver/fx3_fw.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/host/libraries/libbladeRF/src/driver/fx3_fw.c b/host/libraries/libbladeRF/src/driver/fx3_fw.c index e1b8efa3..423322ba 100644 --- a/host/libraries/libbladeRF/src/driver/fx3_fw.c +++ b/host/libraries/libbladeRF/src/driver/fx3_fw.c @@ -336,7 +336,7 @@ bool fx3_fw_next_section(struct fx3_firmware *fw, uint32_t *section_addr, return true; } -uint32_t fx3_fw_entry_point(struct fx3_firmware *fw) +uint32_t fx3_fw_entry_point(const struct fx3_firmware *fw) { assert(fw != NULL); return fw->entry_addr; diff --git a/host/libraries/libbladeRF/src/driver/fx3_fw.h b/host/libraries/libbladeRF/src/driver/fx3_fw.h index e4956c6c..ea112a53 100644 --- a/host/libraries/libbladeRF/src/driver/fx3_fw.h +++ b/host/libraries/libbladeRF/src/driver/fx3_fw.h @@ -72,6 +72,6 @@ bool fx3_fw_next_section(struct fx3_firmware *fw, uint32_t *section_addr, /** * @return The 32-bit little-endian address of the firmware entry point. */ -uint32_t fx3_fw_entry_point(struct fx3_firmware *fw); +uint32_t fx3_fw_entry_point(const struct fx3_firmware *fw); #endif