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/me1400_device.h | |
parent | 2e9ab1e72c631041f8a1c1d1fc7e5359e7e4a476 (diff) | |
download | kernel_samsung_smdk4412-b6ac161364eccce1bea4a23a9de395883e90d7ab.zip kernel_samsung_smdk4412-b6ac161364eccce1bea4a23a9de395883e90d7ab.tar.gz kernel_samsung_smdk4412-b6ac161364eccce1bea4a23a9de395883e90d7ab.tar.bz2 |
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/me1400_device.h')
-rw-r--r-- | drivers/staging/meilhaus/me1400_device.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/meilhaus/me1400_device.h b/drivers/staging/meilhaus/me1400_device.h index 6215b25..d20112d 100644 --- a/drivers/staging/meilhaus/me1400_device.h +++ b/drivers/staging/meilhaus/me1400_device.h @@ -60,7 +60,7 @@ static me1400_version_t me1400_versions[] = { {0} }; -#define ME1400_DEVICE_VERSIONS (sizeof(me1400_versions) / sizeof(me1400_version_t) - 1) /**< Returns the number of entries in #me1400_versions. */ +#define ME1400_DEVICE_VERSIONS (ARRAY_SIZE(me1400_versions) - 1) /**< Returns the number of entries in #me1400_versions. */ /** * @brief Returns the index of the device entry in #me1400_versions. |