diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2014-01-22 12:15:55 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-07 12:01:09 -0500 |
commit | 18691f53bcaab1226f22b733189ec9da190bb7a2 (patch) | |
tree | 1a106cf2155d3693da497c312090f099fb92de4a | |
parent | 10f6f9c38a422451989eb4e36a14788b1799b491 (diff) |
ion: dummy driver: use ARRAY_SIZE for nr of heaps
use ARRAY_SIZE to count number of heaps in static array
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/android/ion/ion_dummy_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/android/ion/ion_dummy_driver.c b/drivers/staging/android/ion/ion_dummy_driver.c index 3854df7d6629..f8a7a3244371 100644 --- a/drivers/staging/android/ion/ion_dummy_driver.c +++ b/drivers/staging/android/ion/ion_dummy_driver.c | |||
@@ -58,7 +58,7 @@ struct ion_platform_heap dummy_heaps[] = { | |||
58 | }; | 58 | }; |
59 | 59 | ||
60 | struct ion_platform_data dummy_ion_pdata = { | 60 | struct ion_platform_data dummy_ion_pdata = { |
61 | .nr = 4, | 61 | .nr = ARRAY_SIZE(dummy_heaps), |
62 | .heaps = dummy_heaps, | 62 | .heaps = dummy_heaps, |
63 | }; | 63 | }; |
64 | 64 | ||