]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ACPI: toshiba_acpi: Use ARRAY_SIZE macro when appropriate
authorAhmed S. Darwish <darwish.07@gmail.com>
Wed, 7 Feb 2007 00:14:43 +0000 (16:14 -0800)
committerLen Brown <len.brown@intel.com>
Fri, 9 Feb 2007 06:22:09 +0000 (01:22 -0500)
Use ARRAY_SIZE macro already defined in kernel.h

Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/toshiba_acpi.c

index d9b651ffcdc0c21335f1c15e1e7ef7e3d86361cf..0208d3a3f5987e9ef4c6b8c0a2f06fa71eb4450c 100644 (file)
@@ -125,7 +125,7 @@ static int write_acpi_int(const char *methodName, int val)
        union acpi_object in_objs[1];
        acpi_status status;
 
-       params.count = sizeof(in_objs) / sizeof(in_objs[0]);
+       params.count = ARRAY_SIZE(in_objs);
        params.pointer = in_objs;
        in_objs[0].type = ACPI_TYPE_INTEGER;
        in_objs[0].integer.value = val;