summaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-06-04 14:19:43 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-06-16 20:16:25 +0200
commitf75fbe28e8b50517402f17a4fa00aaa8a1314a28 (patch)
tree23c6e5b501ee132f541297bbd4e9c232110e5dd7 /drivers/acpi
parent7266c88cbaa3deb0764c6c667d72f393ea98061a (diff)
downloadlinux-stable-f75fbe28e8b50517402f17a4fa00aaa8a1314a28.tar.gz
linux-stable-f75fbe28e8b50517402f17a4fa00aaa8a1314a28.tar.bz2
linux-stable-f75fbe28e8b50517402f17a4fa00aaa8a1314a28.zip
ACPI: thermal: Drop struct acpi_thermal_state
Drop struct acpi_thermal_state which is not really used. No functional impact. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/thermal.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c
index e6691040620c..491d0a5b12d6 100644
--- a/drivers/acpi/thermal.c
+++ b/drivers/acpi/thermal.c
@@ -96,15 +96,6 @@ MODULE_PARM_DESC(psv, "Disable or override all passive trip points.");
static struct workqueue_struct *acpi_thermal_pm_queue;
-struct acpi_thermal_state {
- u8 critical:1;
- u8 hot:1;
- u8 passive:1;
- u8 active:1;
- u8 reserved:4;
- int active_index;
-};
-
struct acpi_thermal_critical {
unsigned long temperature;
bool valid;
@@ -152,7 +143,6 @@ struct acpi_thermal {
unsigned long polling_frequency;
volatile u8 zombie;
struct acpi_thermal_flags flags;
- struct acpi_thermal_state state;
struct acpi_thermal_trips trips;
struct acpi_handle_list devices;
struct thermal_zone_device *thermal_zone;
@@ -1083,7 +1073,6 @@ static int acpi_thermal_resume(struct device *dev)
break;
}
}
- tz->state.active |= tz->trips.active[i].enabled;
}
acpi_queue_thermal_check(tz);