projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d94d3df
)
ACPI: toshiba_acpi: Use ARRAY_SIZE macro when appropriate
author
Ahmed S. Darwish
<darwish.07@gmail.com>
Wed, 7 Feb 2007 00:14:43 +0000
(16:14 -0800)
committer
Len 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/acpi/toshiba_acpi.c
b/drivers/acpi/toshiba_acpi.c
index d9b651ffcdc0c21335f1c15e1e7ef7e3d86361cf..0208d3a3f5987e9ef4c6b8c0a2f06fa71eb4450c 100644
(file)
--- a/
drivers/acpi/toshiba_acpi.c
+++ b/
drivers/acpi/toshiba_acpi.c
@@
-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;