diff options
author | Lin Ming <ming.m.lin@intel.com> | 2010-01-27 21:53:19 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2010-01-28 01:47:33 -0500 |
commit | 439913fffd39374c3737186b22d2d56c3a0ae526 (patch) | |
tree | f6d5c809c1b77950a2cf7174fdee8667d527c87b /drivers/acpi/power_meter.c | |
parent | aea9c04bcc257caad9841c283b90ec1b28267fae (diff) |
ACPI: replace acpi_integer by u64
acpi_integer is now obsolete and removed from the ACPICA code base,
replaced by u64.
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/power_meter.c')
-rw-r--r-- | drivers/acpi/power_meter.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/acpi/power_meter.c b/drivers/acpi/power_meter.c index dc4ffadf8122..834c5af0de4b 100644 --- a/drivers/acpi/power_meter.c +++ b/drivers/acpi/power_meter.c | |||
@@ -71,17 +71,17 @@ static const struct acpi_device_id power_meter_ids[] = { | |||
71 | MODULE_DEVICE_TABLE(acpi, power_meter_ids); | 71 | MODULE_DEVICE_TABLE(acpi, power_meter_ids); |
72 | 72 | ||
73 | struct acpi_power_meter_capabilities { | 73 | struct acpi_power_meter_capabilities { |
74 | acpi_integer flags; | 74 | u64 flags; |
75 | acpi_integer units; | 75 | u64 units; |
76 | acpi_integer type; | 76 | u64 type; |
77 | acpi_integer accuracy; | 77 | u64 accuracy; |
78 | acpi_integer sampling_time; | 78 | u64 sampling_time; |
79 | acpi_integer min_avg_interval; | 79 | u64 min_avg_interval; |
80 | acpi_integer max_avg_interval; | 80 | u64 max_avg_interval; |
81 | acpi_integer hysteresis; | 81 | u64 hysteresis; |
82 | acpi_integer configurable_cap; | 82 | u64 configurable_cap; |
83 | acpi_integer min_cap; | 83 | u64 min_cap; |
84 | acpi_integer max_cap; | 84 | u64 max_cap; |
85 | }; | 85 | }; |
86 | 86 | ||
87 | struct acpi_power_meter_resource { | 87 | struct acpi_power_meter_resource { |
@@ -93,9 +93,9 @@ struct acpi_power_meter_resource { | |||
93 | acpi_string model_number; | 93 | acpi_string model_number; |
94 | acpi_string serial_number; | 94 | acpi_string serial_number; |
95 | acpi_string oem_info; | 95 | acpi_string oem_info; |
96 | acpi_integer power; | 96 | u64 power; |
97 | acpi_integer cap; | 97 | u64 cap; |
98 | acpi_integer avg_interval; | 98 | u64 avg_interval; |
99 | int sensors_valid; | 99 | int sensors_valid; |
100 | unsigned long sensors_last_updated; | 100 | unsigned long sensors_last_updated; |
101 | struct sensor_device_attribute sensors[NUM_SENSORS]; | 101 | struct sensor_device_attribute sensors[NUM_SENSORS]; |
@@ -402,7 +402,7 @@ static ssize_t show_val(struct device *dev, | |||
402 | struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); | 402 | struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); |
403 | struct acpi_device *acpi_dev = to_acpi_device(dev); | 403 | struct acpi_device *acpi_dev = to_acpi_device(dev); |
404 | struct acpi_power_meter_resource *resource = acpi_dev->driver_data; | 404 | struct acpi_power_meter_resource *resource = acpi_dev->driver_data; |
405 | acpi_integer val = 0; | 405 | u64 val = 0; |
406 | 406 | ||
407 | switch (attr->index) { | 407 | switch (attr->index) { |
408 | case 0: | 408 | case 0: |