diff options
author | Stoyan Gaydarov <sgayda2@uiuc.edu> | 2009-07-21 22:02:27 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 12:02:06 -0700 |
commit | b6ac161364eccce1bea4a23a9de395883e90d7ab (patch) | |
tree | 67c09dab1846a84fb0030ccfcd6f5b5a228a5eb0 /drivers/staging/meilhaus/me8200_device.h | |
parent | 2e9ab1e72c631041f8a1c1d1fc7e5359e7e4a476 (diff) |
Staging: ARRAY_SIZE changes
These changes were a direct result of using a semantic patch
More information can be found at http://www.emn.fr/x-info/coccinelle/
Signed-off-by: Stoyan Gaydarov <sgayda2@uiuc.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/meilhaus/me8200_device.h')
-rw-r--r-- | drivers/staging/meilhaus/me8200_device.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/meilhaus/me8200_device.h b/drivers/staging/meilhaus/me8200_device.h index cbd2a01ddb4..66f50842dac 100644 --- a/drivers/staging/meilhaus/me8200_device.h +++ b/drivers/staging/meilhaus/me8200_device.h @@ -53,7 +53,7 @@ static me8200_version_t me8200_versions[] = { {0}, }; -#define ME8200_DEVICE_VERSIONS (sizeof(me8200_versions) / sizeof(me8200_version_t) - 1) /**< Returns the number of entries in #me8200_versions. */ +#define ME8200_DEVICE_VERSIONS (ARRAY_SIZE(me8200_versions) - 1) /**< Returns the number of entries in #me8200_versions. */ /** * @brief Returns the index of the device entry in #me8200_versions. |