提交 119f4498 编写于 作者: T Takashi Iwai 提交者: Matthew Garrett

thinkpad_acpi: Fix inconsistent mute LED after resume

The mute LED states have to be restored after resume.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=70351
Cc: <stable@vger.kernel.org> [v3.13+]
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
Signed-off-by: NMatthew Garrett <matthew.garrett@nebula.com>
上级 57dcf020
...@@ -8447,9 +8447,21 @@ static void mute_led_exit(void) ...@@ -8447,9 +8447,21 @@ static void mute_led_exit(void)
tpacpi_led_set(i, false); tpacpi_led_set(i, false);
} }
static void mute_led_resume(void)
{
int i;
for (i = 0; i < TPACPI_LED_MAX; i++) {
struct tp_led_table *t = &led_tables[i];
if (t->state >= 0)
mute_led_on_off(t, t->state);
}
}
static struct ibm_struct mute_led_driver_data = { static struct ibm_struct mute_led_driver_data = {
.name = "mute_led", .name = "mute_led",
.exit = mute_led_exit, .exit = mute_led_exit,
.resume = mute_led_resume,
}; };
/**************************************************************************** /****************************************************************************
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册