ACPI: toshiba_acpi: Use ARRAY_SIZE macro when appropriate
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>
This commit is contained in:
parent
d94d3dff0d
commit
b2b7910d5d
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ static int write_acpi_int(const char *methodName, int val)
|
||||||
union acpi_object in_objs[1];
|
union acpi_object in_objs[1];
|
||||||
acpi_status status;
|
acpi_status status;
|
||||||
|
|
||||||
params.count = sizeof(in_objs) / sizeof(in_objs[0]);
|
params.count = ARRAY_SIZE(in_objs);
|
||||||
params.pointer = in_objs;
|
params.pointer = in_objs;
|
||||||
in_objs[0].type = ACPI_TYPE_INTEGER;
|
in_objs[0].type = ACPI_TYPE_INTEGER;
|
||||||
in_objs[0].integer.value = val;
|
in_objs[0].integer.value = val;
|
||||||
|
|
Loading…
Add table
Reference in a new issue