Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18691f53 authored by Tomas Winkler's avatar Tomas Winkler Committed by Greg Kroah-Hartman
Browse files

ion: dummy driver: use ARRAY_SIZE for nr of heaps



use ARRAY_SIZE to count number of heaps in static array

Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 10f6f9c3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ struct ion_platform_heap dummy_heaps[] = {
};

struct ion_platform_data dummy_ion_pdata = {
	.nr = 4,
	.nr = ARRAY_SIZE(dummy_heaps),
	.heaps = dummy_heaps,
};