aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/processor_idle.c
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2006-12-16 01:04:27 -0500
committerLen Brown <len.brown@intel.com>2006-12-16 01:04:27 -0500
commitcece901481bafbf14de8cbd3a89ae869ea881055 (patch)
treef9e240443643008c8feeaf55919105dc63ab8c72 /drivers/acpi/processor_idle.c
parentcfee47f99bc14a6d7c6b0be2284db2cef310a815 (diff)
parent50dd096973f1d95aa03c6a6d9e148d706b62b68e (diff)
Pull style into test branch
Conflicts: drivers/acpi/button.c drivers/acpi/ec.c drivers/acpi/osl.c drivers/acpi/sbs.c
Diffstat (limited to 'drivers/acpi/processor_idle.c')
-rw-r--r--drivers/acpi/processor_idle.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
index 65b3f056ad89..4f2982cc5478 100644
--- a/drivers/acpi/processor_idle.c
+++ b/drivers/acpi/processor_idle.c
@@ -673,7 +673,7 @@ static int acpi_processor_get_power_info_cst(struct acpi_processor *pr)
673 return -ENODEV; 673 return -ENODEV;
674 } 674 }
675 675
676 cst = (union acpi_object *)buffer.pointer; 676 cst = buffer.pointer;
677 677
678 /* There must be at least 2 elements */ 678 /* There must be at least 2 elements */
679 if (!cst || (cst->type != ACPI_TYPE_PACKAGE) || cst->package.count < 2) { 679 if (!cst || (cst->type != ACPI_TYPE_PACKAGE) || cst->package.count < 2) {
@@ -702,14 +702,14 @@ static int acpi_processor_get_power_info_cst(struct acpi_processor *pr)
702 702
703 memset(&cx, 0, sizeof(cx)); 703 memset(&cx, 0, sizeof(cx));
704 704
705 element = (union acpi_object *)&(cst->package.elements[i]); 705 element = &(cst->package.elements[i]);
706 if (element->type != ACPI_TYPE_PACKAGE) 706 if (element->type != ACPI_TYPE_PACKAGE)
707 continue; 707 continue;
708 708
709 if (element->package.count != 4) 709 if (element->package.count != 4)
710 continue; 710 continue;
711 711
712 obj = (union acpi_object *)&(element->package.elements[0]); 712 obj = &(element->package.elements[0]);
713 713
714 if (obj->type != ACPI_TYPE_BUFFER) 714 if (obj->type != ACPI_TYPE_BUFFER)
715 continue; 715 continue;
@@ -721,7 +721,7 @@ static int acpi_processor_get_power_info_cst(struct acpi_processor *pr)
721 continue; 721 continue;
722 722
723 /* There should be an easy way to extract an integer... */ 723 /* There should be an easy way to extract an integer... */
724 obj = (union acpi_object *)&(element->package.elements[1]); 724 obj = &(element->package.elements[1]);
725 if (obj->type != ACPI_TYPE_INTEGER) 725 if (obj->type != ACPI_TYPE_INTEGER)
726 continue; 726 continue;
727 727
@@ -754,13 +754,13 @@ static int acpi_processor_get_power_info_cst(struct acpi_processor *pr)
754 } 754 }
755 } 755 }
756 756
757 obj = (union acpi_object *)&(element->package.elements[2]); 757 obj = &(element->package.elements[2]);
758 if (obj->type != ACPI_TYPE_INTEGER) 758 if (obj->type != ACPI_TYPE_INTEGER)
759 continue; 759 continue;
760 760
761 cx.latency = obj->integer.value; 761 cx.latency = obj->integer.value;
762 762
763 obj = (union acpi_object *)&(element->package.elements[3]); 763 obj = &(element->package.elements[3]);
764 if (obj->type != ACPI_TYPE_INTEGER) 764 if (obj->type != ACPI_TYPE_INTEGER)
765 continue; 765 continue;
766 766
@@ -1029,7 +1029,7 @@ int acpi_processor_cst_has_changed(struct acpi_processor *pr)
1029 1029
1030static int acpi_processor_power_seq_show(struct seq_file *seq, void *offset) 1030static int acpi_processor_power_seq_show(struct seq_file *seq, void *offset)
1031{ 1031{
1032 struct acpi_processor *pr = (struct acpi_processor *)seq->private; 1032 struct acpi_processor *pr = seq->private;
1033 unsigned int i; 1033 unsigned int i;
1034 1034
1035 1035