Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3547473pxj; Mon, 24 May 2021 09:06:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzX7t+QNt3bhYei4VflhqEZyNk6Nl2Z4M8j1EZBgw/T16PISHaRzrGBfz7OeXAjmuGHENFP X-Received: by 2002:a05:6e02:1d1a:: with SMTP id i26mr19040158ila.180.1621872418188; Mon, 24 May 2021 09:06:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621872418; cv=none; d=google.com; s=arc-20160816; b=mz5W8cmg32Fq7nEUUb/uw0LKNdiLzvob0f9Oa3zGDwT2Ew0dOCz0ZLEMO4eokXZbqC z/p4KKV15S+AwIxt4urqkBqmahCdZI8OdHLzcdX8ahQqhYsYJ0BaYAy0MM2gFYCMdls3 h4i++T2jaCQqWdbXL4WmJY/CfMV04uAt8psvJc/U68HlHAGbOFAvLK9LTFj7zqYvHE4n GqVU+7iTv8TIwclkc9UAZjFsjeuDx+QeKAQlC4F6xUObWlcF+jOuEtr8Zd1erbzcgNDH BMOPkPkZ8tp/FtnqQbYRzbT4XMS8O4S7ilcViagoALR9daYUmajsVm/hXVheTTeOW/EY B0Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/m1pz7jrxRGXEXcEBnPqRmmLq65WQtKu6aGmBQBLSOo=; b=qWj3aTgBdH8AStssZOtFkkEC+dulkmpUwFj5p8G8+xXWlYtK3XEd9YOh4mPQGHPgw7 n3m0dFnHIPw05nwJlF1NrGnYVZw5Ytatl1UtWFGL6+SRb/yqVmtM3Nc98rlbyjNnao0Q 8WYS9TsgTtgibVG5xCZaEj21YxrGl+94RPiwaqHWtjXIeWtzCsTv9g5pvymTKAgn2rcZ 9glWbp8ITzoGNmGB/lN3DmHqcE7uccP1iPDzqYt5kvAW/59r/YzVmzk3X9JnVqaBESCA l/wdQ9+geLlLak2JVyoJ2KtRd1unYledqfh8wtvaJ6mZkjjD/JqZnDHPv4I5AvQteB4o p6ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WOEDq0RO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g5si14383391jan.100.2021.05.24.09.06.45; Mon, 24 May 2021 09:06:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WOEDq0RO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234384AbhEXQHX (ORCPT + 99 others); Mon, 24 May 2021 12:07:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:46588 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235727AbhEXP75 (ORCPT ); Mon, 24 May 2021 11:59:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 30C0561981; Mon, 24 May 2021 15:45:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621871137; bh=iChOY2BbqP5Ne9jolqutQUA/h+RwCBh2ye+73UiWiG0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WOEDq0ROnSU78b73zFka9mh8VmQup1enjO+eBeqzfcPf07B9Yq+yDT1JNhDNaEl7F JmPivdEnqtwng5QrCt+GxOH24/Hd5O+uAkd2xCuvtJVqp+e1t5sJLLjnLc92WAdQdL 3fbjXe9kcy68b5IQT6N0kvBBodqzsD8n68o3RFKY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= , Hans de Goede Subject: [PATCH 5.12 063/127] platform/x86: ideapad-laptop: fix method name typo Date: Mon, 24 May 2021 17:26:20 +0200 Message-Id: <20210524152336.976819188@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210524152334.857620285@linuxfoundation.org> References: <20210524152334.857620285@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Barnabás Pőcze commit b09aaa3f2c0edeeed670cd29961a0e35bddc78cf upstream. "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: 0b765671cb80 ("platform/x86: ideapad-laptop: group and separate (un)related constants into enums") Fixes: ff36b0d953dc ("platform/x86: ideapad-laptop: rework and create new ACPI helpers") Cc: stable@vger.kernel.org # 5.12 Signed-off-by: Barnabás Pőcze Link: https://lore.kernel.org/r/20210507235333.286505-1-pobrn@protonmail.com Signed-off-by: Hans de Goede Signed-off-by: Greg Kroah-Hartman --- drivers/platform/x86/ideapad-laptop.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) --- a/drivers/platform/x86/ideapad-laptop.c +++ b/drivers/platform/x86/ideapad-laptop.c @@ -57,8 +57,8 @@ enum { }; enum { - SMBC_CONSERVATION_ON = 3, - SMBC_CONSERVATION_OFF = 5, + SBMC_CONSERVATION_ON = 3, + SBMC_CONSERVATION_OFF = 5, }; enum { @@ -182,9 +182,9 @@ static int eval_gbmd(acpi_handle handle, return eval_int(handle, "GBMD", res); } -static int exec_smbc(acpi_handle handle, unsigned long arg) +static int exec_sbmc(acpi_handle handle, unsigned long arg) { - return exec_simple_method(handle, "SMBC", arg); + return exec_simple_method(handle, "SBMC", arg); } static int eval_hals(acpi_handle handle, unsigned long *res) @@ -477,7 +477,7 @@ static ssize_t conservation_mode_store(s if (err) return err; - err = exec_smbc(priv->adev->handle, state ? SMBC_CONSERVATION_ON : SMBC_CONSERVATION_OFF); + err = exec_sbmc(priv->adev->handle, state ? SBMC_CONSERVATION_ON : SBMC_CONSERVATION_OFF); if (err) return err;