From 4c960d4ebe2f5ef486cf31fdeb9b92033642d907 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Thu, 5 Jun 2014 22:12:06 +0200 Subject: google/link, lenovo/x60: i915io.c: Use define `ARRAY_SIZE` Change-Id: I8ddd46a573b61eba685efcc15456f288645d214d Signed-off-by: Paul Menzel Reviewed-on: http://review.coreboot.org/5936 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan Reviewed-by: Aaron Durbin --- src/mainboard/lenovo/x60/i915io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mainboard/lenovo/x60') diff --git a/src/mainboard/lenovo/x60/i915io.c b/src/mainboard/lenovo/x60/i915io.c index 355286786a..b3c47b7b1e 100644 --- a/src/mainboard/lenovo/x60/i915io.c +++ b/src/mainboard/lenovo/x60/i915io.c @@ -2270,4 +2270,4 @@ struct iodef iodefs[] = { {0,}, }; -int niodefs = sizeof(iodefs) / sizeof(iodefs[0]); +int niodefs = ARRAY_SIZE(iodefs); -- cgit v1.2.3