Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29160
b: refs/heads/master
c: 74ce146
h: refs/heads/master
v: v3
  • Loading branch information
Konstantin Karasyov authored and Len Brown committed May 15, 2006
1 parent 4362120 commit 6065cad
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0feabb01d93e5801d1127416a66cfc3963280bca
refs/heads/master: 74ce1468128e299fe6a85e7e78e528e45e72d6d9
16 changes: 16 additions & 0 deletions trunk/drivers/acpi/thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ MODULE_PARM_DESC(tzp, "Thermal zone polling frequency, in 1/10 seconds.\n");

static int acpi_thermal_add(struct acpi_device *device);
static int acpi_thermal_remove(struct acpi_device *device, int type);
static int acpi_thermal_resume(struct acpi_device *device, int state);
static int acpi_thermal_state_open_fs(struct inode *inode, struct file *file);
static int acpi_thermal_temp_open_fs(struct inode *inode, struct file *file);
static int acpi_thermal_trip_open_fs(struct inode *inode, struct file *file);
Expand All @@ -103,6 +104,7 @@ static struct acpi_driver acpi_thermal_driver = {
.ops = {
.add = acpi_thermal_add,
.remove = acpi_thermal_remove,
.resume = acpi_thermal_resume,
},
};

Expand Down Expand Up @@ -1416,6 +1418,20 @@ static int acpi_thermal_remove(struct acpi_device *device, int type)
return_VALUE(0);
}

static int acpi_thermal_resume(struct acpi_device *device, int state)
{
struct acpi_thermal *tz = NULL;

if (!device || !acpi_driver_data(device))
return_VALUE(-EINVAL);

tz = (struct acpi_thermal *)acpi_driver_data(device);

acpi_thermal_check(tz);

return AE_OK;
}

static int __init acpi_thermal_init(void)
{
int result = 0;
Expand Down

0 comments on commit 6065cad

Please sign in to comment.