summaryrefslogtreecommitdiff
path: root/drivers/staging/meilhaus/me0900_device.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/meilhaus/me0900_device.h')
-rw-r--r--drivers/staging/meilhaus/me0900_device.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/meilhaus/me0900_device.h b/drivers/staging/meilhaus/me0900_device.h
index bd17f2521511..53c05e83675d 100644
--- a/drivers/staging/meilhaus/me0900_device.h
+++ b/drivers/staging/meilhaus/me0900_device.h
@@ -53,7 +53,7 @@ static me0900_version_t me0900_versions[] = {
{0},
};
-#define ME0900_DEVICE_VERSIONS (sizeof(me0900_versions) / sizeof(me0900_version_t) - 1) /**< Returns the number of entries in #me0900_versions. */
+#define ME0900_DEVICE_VERSIONS (ARRAY_SIZE(me0900_versions) - 1) /**< Returns the number of entries in #me0900_versions. */
/**
* @brief Returns the index of the device entry in #me0900_versions.