From 15cd63aaedb99b5940b8224da2f9bae471cd2bfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Negrier=20Duarte?= <68701049+MrDuartePT@users.noreply.github.com> Date: Sat, 13 Apr 2024 18:52:50 +0000 Subject: [PATCH] kernel-driver: try change register for 15IHU6 and 15ACH6 * https://github.com/johnfanv2/LenovoLegionLinux/issues/161 * https://github.com/johnfanv2/LenovoLegionLinux/issues/162 --- kernel_module/legion-laptop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel_module/legion-laptop.c b/kernel_module/legion-laptop.c index a4f7410..1e3723b 100644 --- a/kernel_module/legion-laptop.c +++ b/kernel_module/legion-laptop.c @@ -758,7 +758,7 @@ static const struct model_config model_fccn = { static const struct model_config model_h3cn = { //0xFE0B0800 - .registers = &ec_register_offsets_v1, + .registers = &ec_register_offsets_ideapad_v0, .check_embedded_controller_id = false, .embedded_controller_id = 0x8227, .memoryio_physical_ec_start = 0xC400, @@ -1052,7 +1052,7 @@ static const struct dmi_system_id optimistic_allowlist[] = { DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), DMI_MATCH(DMI_BIOS_VERSION, "H4CN"), }, - .driver_data = (void *)&model_fccn + .driver_data = (void *)&model_h3cn }, { // e.g. Ideapad Gaming 3 15ACH6