Skip to content

Commit f75fbe2

Browse files
committed
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 <[email protected]> Reviewed-by: Daniel Lezcano <[email protected]>
1 parent 7266c88 commit f75fbe2

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

drivers/acpi/thermal.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,6 @@ MODULE_PARM_DESC(psv, "Disable or override all passive trip points.");
9696

9797
static struct workqueue_struct *acpi_thermal_pm_queue;
9898

99-
struct acpi_thermal_state {
100-
u8 critical:1;
101-
u8 hot:1;
102-
u8 passive:1;
103-
u8 active:1;
104-
u8 reserved:4;
105-
int active_index;
106-
};
107-
10899
struct acpi_thermal_critical {
109100
unsigned long temperature;
110101
bool valid;
@@ -152,7 +143,6 @@ struct acpi_thermal {
152143
unsigned long polling_frequency;
153144
volatile u8 zombie;
154145
struct acpi_thermal_flags flags;
155-
struct acpi_thermal_state state;
156146
struct acpi_thermal_trips trips;
157147
struct acpi_handle_list devices;
158148
struct thermal_zone_device *thermal_zone;
@@ -1083,7 +1073,6 @@ static int acpi_thermal_resume(struct device *dev)
10831073
break;
10841074
}
10851075
}
1086-
tz->state.active |= tz->trips.active[i].enabled;
10871076
}
10881077

10891078
acpi_queue_thermal_check(tz);

0 commit comments

Comments
 (0)