Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4878241pjb; Mon, 27 Jul 2020 07:25:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8CfzOUNIvzTLBc5efkmNBhMo28xYSbWPTPWglzQEeGsGgV9Z8riW/4HkR4HvT3RjEbHNf X-Received: by 2002:a50:bf07:: with SMTP id f7mr13352582edk.356.1595859947878; Mon, 27 Jul 2020 07:25:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595859947; cv=none; d=google.com; s=arc-20160816; b=l8FlYHg1QnieSfIjvx1sjj7rz+aoCxRMovIM7787fjtq2/rUBSw3Ia57MW/4Pjkzdh gNahZ73+uhed1RDQoMV0QmRsBz3VnfpiIFv23a7dLQV2zmaI6qqrFJ4xzCp8j5oXQMy5 7CTBcMw+JRmbK4I/RyBztnY48fQgCAgMr4sKMcu7FVXqPkWDl+MXUcg3zT3/0QMrHDO0 9kVQjGz6QXqjL+CN+Grau6LHiSMuy0K7J/+fmQvBuQtbYuv6xBirzTvzhnCgbPjQQNr7 lrVIuX1Zmy+01N+ZjY7MlUKebjpXqbPRw5tX3aCfP65pHBFpDek1cFSQSkZS2aP0TCCD r4Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=VUZHJh4ozN/TWYC2hykdvCMOIPnmRj7BmDx92dz+EEg=; b=JxGpKw4G6jKan8gAmquB0hwedACpI0vk4xpjlosLHvMxwFtqDV+nOjcoSJ2CiXGamT 5YI7mMyx5WMnbaMpp4ehs0eV7q0pmeF7mmdJgshp6nf3F/nUfR1RlttXdedzO1ZtmMiK yBuqXcfJwIAKuON7fMEjb+gfAr7Bv5MiRklqvHx9eBEFV0B4HKnt/SQ4RS3xG2ZsA2Xu YSXe1HOKlkznnkr3bfppouPSRI7JYidJoyofyccOhFIL4nYPvsP4cAZzsG/enOXfJa6j njRPRLxtlyQbUH1myZosn9dnTRtOdevKmqhkfsjVQuIvYcW7zJsu2Tn8s1jNo3ZwjyfO ickw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iGRha0dM; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e8si2724823edv.104.2020.07.27.07.25.25; Mon, 27 Jul 2020 07:25:47 -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=@kernel.org header.s=default header.b=iGRha0dM; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732215AbgG0OYK (ORCPT + 99 others); Mon, 27 Jul 2020 10:24:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:53490 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732195AbgG0OYI (ORCPT ); Mon, 27 Jul 2020 10:24:08 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 116232070A; Mon, 27 Jul 2020 14:24:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595859847; bh=ouo7TMEz/IqYJUsjvl8B3CXtrHu4eF3BTHFsVDf8JeM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iGRha0dMt6xGi6p8QqeXX4GwTTZy3+K9Me9kM+hpv5zU5gFonB3TBjvBnDDHMMR2R AXauEPZBSOJDjwmrUi48sy5sHlf0YZy9rR9Ku7JtloFVd0a8KqnJ0jQtyI3JddVCCV d4yJJ9i+YL3okVqggYvGyhmKXw/O1qv/SGgBwqAY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vasiliy Kupriakov , Andy Shevchenko , Sasha Levin Subject: [PATCH 5.7 129/179] platform/x86: asus-wmi: allow BAT1 battery name Date: Mon, 27 Jul 2020 16:05:04 +0200 Message-Id: <20200727134938.934695048@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200727134932.659499757@linuxfoundation.org> References: <20200727134932.659499757@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vasiliy Kupriakov [ Upstream commit 9a33e375d98ece5ea40c576eabd3257acb90c509 ] The battery on my laptop ASUS TUF Gaming FX706II is named BAT1. This patch allows battery extension to load. Signed-off-by: Vasiliy Kupriakov Signed-off-by: Andy Shevchenko Signed-off-by: Sasha Levin --- drivers/platform/x86/asus-wmi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c index cd212ee210e2d..537b824a1ae25 100644 --- a/drivers/platform/x86/asus-wmi.c +++ b/drivers/platform/x86/asus-wmi.c @@ -432,6 +432,7 @@ static int asus_wmi_battery_add(struct power_supply *battery) * battery is named BATT. */ if (strcmp(battery->desc->name, "BAT0") != 0 && + strcmp(battery->desc->name, "BAT1") != 0 && strcmp(battery->desc->name, "BATT") != 0) return -ENODEV; -- 2.25.1