|
@@ -101,7 +101,7 @@ struct acpi_power_meter_resource {
|
|
|
unsigned long sensors_last_updated;
|
|
|
struct sensor_device_attribute sensors[NUM_SENSORS];
|
|
|
int num_sensors;
|
|
|
- int trip[2];
|
|
|
+ s64 trip[2];
|
|
|
int num_domain_devices;
|
|
|
struct acpi_device **domain_devices;
|
|
|
struct kobject *holders_dir;
|
|
@@ -308,8 +308,6 @@ static ssize_t set_trip(struct device *dev, struct device_attribute *devattr,
|
|
|
return res;
|
|
|
|
|
|
temp = DIV_ROUND_CLOSEST(temp, 1000);
|
|
|
- if (temp > INT_MAX)
|
|
|
- return -EINVAL;
|
|
|
|
|
|
mutex_lock(&resource->lock);
|
|
|
resource->trip[attr->index - 7] = temp;
|