Skip to content

Commit

Permalink
ACPI: thermal: Drop struct acpi_thermal_state
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rafael J. Wysocki committed Jun 16, 2023
1 parent 7266c88 commit f75fbe2
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions drivers/acpi/thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit f75fbe2

Please sign in to comment.