aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/processor_perflib.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_perflib.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_perflib.c')
-rw-r--r--drivers/acpi/processor_perflib.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/acpi/processor_perflib.c b/drivers/acpi/processor_perflib.c
index 6fd174a37149..0e60382714bb 100644
--- a/drivers/acpi/processor_perflib.c
+++ b/drivers/acpi/processor_perflib.c
@@ -236,7 +236,7 @@ static int acpi_processor_get_performance_states(struct acpi_processor *pr)
236 return -ENODEV; 236 return -ENODEV;
237 } 237 }
238 238
239 pss = (union acpi_object *)buffer.pointer; 239 pss = buffer.pointer;
240 if (!pss || (pss->type != ACPI_TYPE_PACKAGE)) { 240 if (!pss || (pss->type != ACPI_TYPE_PACKAGE)) {
241 printk(KERN_ERR PREFIX "Invalid _PSS data\n"); 241 printk(KERN_ERR PREFIX "Invalid _PSS data\n");
242 result = -EFAULT; 242 result = -EFAULT;
@@ -410,7 +410,7 @@ static struct file_operations acpi_processor_perf_fops = {
410 410
411static int acpi_processor_perf_seq_show(struct seq_file *seq, void *offset) 411static int acpi_processor_perf_seq_show(struct seq_file *seq, void *offset)
412{ 412{
413 struct acpi_processor *pr = (struct acpi_processor *)seq->private; 413 struct acpi_processor *pr = seq->private;
414 int i; 414 int i;
415 415
416 416
@@ -451,8 +451,8 @@ acpi_processor_write_performance(struct file *file,
451 size_t count, loff_t * data) 451 size_t count, loff_t * data)
452{ 452{
453 int result = 0; 453 int result = 0;
454 struct seq_file *m = (struct seq_file *)file->private_data; 454 struct seq_file *m = file->private_data;
455 struct acpi_processor *pr = (struct acpi_processor *)m->private; 455 struct acpi_processor *pr = m->private;
456 struct acpi_processor_performance *perf; 456 struct acpi_processor_performance *perf;
457 char state_string[12] = { '\0' }; 457 char state_string[12] = { '\0' };
458 unsigned int new_state = 0; 458 unsigned int new_state = 0;
@@ -551,7 +551,7 @@ static int acpi_processor_get_psd(struct acpi_processor *pr)
551 return -ENODEV; 551 return -ENODEV;
552 } 552 }
553 553
554 psd = (union acpi_object *) buffer.pointer; 554 psd = buffer.pointer;
555 if (!psd || (psd->type != ACPI_TYPE_PACKAGE)) { 555 if (!psd || (psd->type != ACPI_TYPE_PACKAGE)) {
556 ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Invalid _PSD data\n")); 556 ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Invalid _PSD data\n"));
557 result = -EFAULT; 557 result = -EFAULT;