]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: ideapad-laptop: fix method name typo
authorBarnabás Pőcze <pobrn@protonmail.com>
Fri, 7 May 2021 23:53:44 +0000 (23:53 +0000)
committerHans de Goede <hdegoede@redhat.com>
Tue, 11 May 2021 11:37:56 +0000 (13:37 +0200)
commite6adc51609823bbb498b556c6c88f9ec0ff82d3c
treec980ea586d509b4c719057bf268cd2319142ce8c
parent1a2f5014d4f2503f53bd4226fbe86ab3ff341d33
platform/x86: ideapad-laptop: fix method name typo

"smbc" should be "sbmc". `eval_smbc()` incorrectly called
the SMBC ACPI method instead of SBMC. This resulted in
partial loss of functionality. Rectify that by calling
the correct ACPI method (SBMC), and also rename
methods and constants.

BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=212985
Fixes: ff6224dcb5d1 ("platform/x86: ideapad-laptop: group and separate (un)related constants into enums")
Fixes: 9b53a9c3f36b ("platform/x86: ideapad-laptop: rework and create new ACPI helpers")
Cc: stable@vger.kernel.org # 5.12
Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com>
Link: https://lore.kernel.org/r/20210507235333.286505-1-pobrn@protonmail.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/ideapad-laptop.c