platform/loongarch: laptop: Adjust resume order for loongson_hotkey_resume()
authorHuacai Chen <chenhuacai@loongson.cn>
Sat, 29 Oct 2022 08:29:31 +0000 (16:29 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Sat, 29 Oct 2022 08:29:31 +0000 (16:29 +0800)
commitfbe605ab157b174385b3f19ce33928d3548a9b09
tree6b7790f36aabebdb1772d79d89e7902a110c35fa
parentbbfddb904df6f82a5948687a2d57766216b9bc0f
platform/loongarch: laptop: Adjust resume order for loongson_hotkey_resume()

Some laptops don't support SW_LID, but still have backlight control,
move backlight resuming before SW_LID event handling so as to avoid
backlight mistake due to early return.

Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
drivers/platform/loongarch/loongson-laptop.c