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/me0600_device.h | |
parent | 2e9ab1e72c631041f8a1c1d1fc7e5359e7e4a476 (diff) | |
download | op-kernel-dev-b6ac161364eccce1bea4a23a9de395883e90d7ab.zip op-kernel-dev-b6ac161364eccce1bea4a23a9de395883e90d7ab.tar.gz |
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/me0600_device.h')
-rw-r--r-- | drivers/staging/meilhaus/me0600_device.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/meilhaus/me0600_device.h b/drivers/staging/meilhaus/me0600_device.h index d93a8ae..75bd3b7 100644 --- a/drivers/staging/meilhaus/me0600_device.h +++ b/drivers/staging/meilhaus/me0600_device.h @@ -54,7 +54,7 @@ static me0600_version_t me0600_versions[] = { {0}, }; -#define ME0600_DEVICE_VERSIONS (sizeof(me0600_versions) / sizeof(me0600_version_t) - 1) /**< Returns the number of entries in #me0600_versions. */ +#define ME0600_DEVICE_VERSIONS (ARRAY_SIZE(me0600_versions) - 1) /**< Returns the number of entries in #me0600_versions. */ /** * @brief Returns the index of the device entry in #me0600_versions. |