From patchwork Wed Feb 28 09:39:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 207735 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp3237063dyb; Wed, 28 Feb 2024 01:41:03 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVlQhx3/Gyi7I+a0UPRLe4LXBebzjtwPxaNg2wAU2qx9aA8gyJB8ylfpV2ERYymmsCpmezhaOKLSJscb/VwmJ5yz1L3+g== X-Google-Smtp-Source: AGHT+IFjx1AJHAFauRgsWNegKCKP1Ng2igIqfKbFkDILMV1hN8NzlLuIb0ZlT0A4Ql8qZK0b1/iR X-Received: by 2002:ac8:5d0f:0:b0:42e:8d63:4edd with SMTP id f15-20020ac85d0f000000b0042e8d634eddmr8599085qtx.52.1709113263338; Wed, 28 Feb 2024 01:41:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709113263; cv=pass; d=google.com; s=arc-20160816; b=zBCiNJFxUnurOgjcyUrIX3rq8oJk1VRDazaVfdHLVVfiVpOm6XIo8TeJV/tESJcSwP bdAgPn1IO9lug4R7eo5w1iC3vYjXbKvXQVPkaB+zzzyKvotfzb467rBQFHypMxKpsal+ 3vYDrq4dEAVtGuuQqBRs7cXkZlTEWhY/CPJJC2gCsvVjI2G10WibNLwzo35jHo4LXkvP hjVlROczvzmAbabBS9YHyuN4XFq0u3ZtpD04VIoodBGXZGCmJnJ86tigkN3uBDlGADvV 47vHXF2fpsBVRnRMqUOQ0gcatSV5pbQ8//ZDsZSrHiu8oZc2q3vIbxAOeNMnsXgT1+q1 9Q0w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=UbqREhYFdAbBfvj7OMQirWic5O9BCr4RkDCClrp6SqU=; fh=gFM7BprbjuIGZ5pSG69te06NJY9rpdr4RzWnQMKZXjE=; b=yOzjYlfiQTT/v4OvMffHzTyxvXW7RYnX75cl5z6x5YLJn1tTYvkNsq7jKKs04fO/KX hLcDPTyKWhx1D3trHnnVTo+eeC6tgnQdymVrisTPERPh5pUMJ5DBaLGu6XdhQOlHdlVY lJQznKqn/P1eS37gIQPuTPff6DVJF7SGRM/+ldAAY31hQE7Vk+2ZQ5HP9V0rxzraPBZQ BdQ17yjHBHk2YGgydipFavObjBJQ11oVfO90zAhMiHDOAYfW+vFHiX/4SLj7TxJZmMZ7 bxj+V726maOGemiDJO3gcriH/E1qwqmQjR0T3iFemlAeF9YST7GROBylLVi+zWeS02Fc uVjw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="J/T/R9hc"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-84783-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84783-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h9-20020ac85849000000b0042ea2968986si2738704qth.726.2024.02.28.01.41.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 01:41:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84783-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="J/T/R9hc"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-84783-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84783-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E723E1C24B5F for ; Wed, 28 Feb 2024 09:40:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D5C9C364A1; Wed, 28 Feb 2024 09:40:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="J/T/R9hc" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2C6E52E85D; Wed, 28 Feb 2024 09:40:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709113216; cv=none; b=ihmzKP56hAItFLZO+aEyIlTjmJW/yBzwinhdWVHJHL+QnrLOznft7fpauw10bqazWDgBM4DVTBe7eUhVGEI/+DIx5jzcqPumpdVGwyJ+218s5ErmQbKk1c/5BGGs92EgciK4L0g1OsHLydOEgltY9tqqgYORB0vg/tdF1N5BavU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709113216; c=relaxed/simple; bh=jwmkIJlXr+YpnOJWmEPMvayj5hIai57OdCRtqOAIick=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=QhKGtpRNRGV4epCdosI+gYfcS7/XxMA70D8Zz0H6p7j4XZ2b2i4il16T2RIIVw0i3YwmgmTAQYb69A0KpLjWiBm0lH87qS2aNR9mRBpsT15lHAtg9wDAAxtKGEzUSEsCpRPU+9zgFISN0dadNiUGh9h96Os7R3gaPr5OJNzj1kk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=J/T/R9hc; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC507C433C7; Wed, 28 Feb 2024 09:40:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709113215; bh=jwmkIJlXr+YpnOJWmEPMvayj5hIai57OdCRtqOAIick=; h=From:To:Cc:Subject:Date:From; b=J/T/R9hcd0MhwTrjNCvIrve9syFI/xC8GPhi419uWg3fyAfBEsojaZbNOuw89ghgF dGyS9gNNnJQxHokbc9q7N04mqUg02xRSjmtq5Xup1SH11sn/OWQZeRP/BGJTFP+uyd AqiTBjWjPB1xrS4YmsZys/CxeHkkSzrj9z2CxFaZsXXW2jEt9mkDn/yuX/GpwveLqt D6BKQx6PlmAtQnB5KjboEy9IzHhoIMHf+oQhdYOKjHuzpWoSQBa9R5V3coyabk7BWX VEq8pnRX7Jzl78B6X6jhkoB96FzZbarKd2tmyWXljlkmg92z294QHYEBLtt38zlapX mgONNInhdHFww== From: Arnd Bergmann To: Hans de Goede , =?utf-8?q?Ilpo_J=C3=A4rvinen?= , Szilard Fabian , Jonathan Woithe Cc: Arnd Bergmann , Andy Shevchenko , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] platform/x86/fujitsu-laptop: add ACPI_BATTERY dependency Date: Wed, 28 Feb 2024 10:39:51 +0100 Message-Id: <20240228094010.2254245-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792135149327397695 X-GMAIL-MSGID: 1792135149327397695 From: Arnd Bergmann The dependency is required to avoid a link failure after support for battery hooks was added: ld.lld: error: undefined symbol: battery_hook_unregister >>> referenced by fujitsu-laptop.c >>> drivers/platform/x86/fujitsu-laptop.o:(acpi_fujitsu_laptop_remove) in archive vmlinux.a Fixes: 611d56d76dee ("platform/x86/fujitsu-laptop: Add battery charge control support") Signed-off-by: Arnd Bergmann --- drivers/platform/x86/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig index 6dbd40e2aeda..d9851b79bfe5 100644 --- a/drivers/platform/x86/Kconfig +++ b/drivers/platform/x86/Kconfig @@ -371,6 +371,7 @@ config FUJITSU_LAPTOP depends on INPUT depends on BACKLIGHT_CLASS_DEVICE depends on ACPI_VIDEO || ACPI_VIDEO = n + depends on ACPI_BATTERY select INPUT_SPARSEKMAP select NEW_LEDS select LEDS_CLASS