Commit 48042199 authored by Fabio Utzig's avatar Fabio Utzig Committed by Fabio Utzig
Browse files

zephyr: struct device const-ification

Follows up the change added to Zephyr with:

https://github.com/zephyrproject-rtos/zephyr/pull/24873



Signed-off-by: default avatarFabio Utzig <fabio.utzig@nordicsemi.no>
parent f78d1d0f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -27,9 +27,9 @@ MCUBOOT_LOG_MODULE_DECLARE(mcuboot);
#error "FLASH_DEVICE_ID could not be determined"
#endif

static struct device *flash_dev;
static const struct device *flash_dev;

struct device *flash_device_get_binding(char *dev_name)
const struct device *flash_device_get_binding(char *dev_name)
{
    if (!flash_dev) {
        flash_dev = device_get_binding(dev_name);
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ extern "C" {
 *
 * Returns the flash device on success, or NULL on failure.
 */
struct device *flash_device_get_binding(char *dev_name);
const struct device *flash_device_get_binding(char *dev_name);

/*
 * Retrieve a memory-mapped flash device's base address.