diff options
Diffstat (limited to 'drivers/staging/meilhaus/me4600_device.h')
-rw-r--r-- | drivers/staging/meilhaus/me4600_device.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/meilhaus/me4600_device.h b/drivers/staging/meilhaus/me4600_device.h index fa812d4cc6dc..c755c574cda2 100644 --- a/drivers/staging/meilhaus/me4600_device.h +++ b/drivers/staging/meilhaus/me4600_device.h @@ -80,7 +80,7 @@ static me4600_version_t me4600_versions[] = { {0}, }; -#define ME4600_DEVICE_VERSIONS (sizeof(me4600_versions) / sizeof(me4600_version_t) - 1) /**< Returns the number of entries in #me4600_versions. */ +#define ME4600_DEVICE_VERSIONS (ARRAY_SIZE(me4600_versions) - 1) /**< Returns the number of entries in #me4600_versions. */ /** * @brief Returns the index of the device entry in #me4600_versions. |