Message ID | 20230918205825.25864-1-rdunlap@infradead.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp3021865vqi; Mon, 18 Sep 2023 16:37:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGsq5VptIehGXlJdgw7sbr7p96K6Jk26OfStlTJUK1Fsp7cvI/c+uRES1/NUlP5OsHqYW+a X-Received: by 2002:a05:6870:218f:b0:1d0:fd8d:2a10 with SMTP id l15-20020a056870218f00b001d0fd8d2a10mr13586123oae.44.1695080253286; Mon, 18 Sep 2023 16:37:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695080253; cv=none; d=google.com; s=arc-20160816; b=xzM/d1Y79xVe2nLGdhMx2pdbyRqryNNl/pGA4bNpMofvo6gTG/0SQWLhnkyyPBKNRg A1BvX01Yarr3WHFvVeUYgPOq0rRo+xJjJxxgmv2z/2RVYcda+xw+bVTS/N30wLv95nha JdtxHU7cWCbh00Ic9WjTWLbo51GnNUWG8LPgTd690vg5//JA18KtwIUWyOhUIv8zkPTn jCb9FzqtW8X1QlfB90Jf7DR3ifuWAZAeNr27ZzxwaVuHYqHcPnYGlmcj+oDnKDJopm8r 7NWvjroVqmXD2R8lai/y+TKD4Yurxs9wIvyvhZMDQKC8t4A1pYcbGhy95wkNUMDxbfab EJ7g== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=E+y6i7Uy3ptI05N3BdEAal9Zna1e1py5vdDPokjWDf0=; fh=Dv0G23nNIENCUFCTcIRIyajz90+iEXC6BU2lsg0dJwk=; b=zp1DKdxfPCH5kKHLhdx3Y1ry1Y37Tj4CTG9ARZrPR/WIyHAa5FrO89rdpKL/ku3r2M O0LHtB3LmOLHaFOMty1qOMN8Q/uWymhGRqf3KLWE9mBAsiX52lbqzFCbbCKF6rjQO24o eae8fHOgxmhftAGXsYs/Q6EA1v8riQ+ddCe5e4V5xkybYCc9FLq/r7zRyUMccqMo5sIX mSAtVn8pP9QkfR58fb75WRZHtNUbzHr8lA+cIEraJkV/1xVC4M7Od9GY/4jUgYTu7fXz NHijFsAYeXfDqNtoqjfqIkvNqgqfeulK1NDIMxAbqIAwFt43UkEQQxS2CGqJyMDtqvUH Ajmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=MPSRdH5c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id s16-20020a17090aad9000b002465d98f18csi2765498pjq.170.2023.09.18.16.37.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 16:37:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=MPSRdH5c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id A5F5A8244C8C; Mon, 18 Sep 2023 13:58:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230224AbjIRU6u (ORCPT <rfc822;kernel.ruili@gmail.com> + 25 others); Mon, 18 Sep 2023 16:58:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230264AbjIRU6i (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 18 Sep 2023 16:58:38 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27741126; Mon, 18 Sep 2023 13:58:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=E+y6i7Uy3ptI05N3BdEAal9Zna1e1py5vdDPokjWDf0=; b=MPSRdH5cuQwBb2HKMH1EW3ROFG DiEUEwpKkRIDsszmJCSZxx+BVpQkkbks8NhPN3rLQFjk3kHI7n0G0Ug4kRXIdtsSFgs71YWYwdjm6 +KeUOpbEoxE4Ny9Addv56f7H/vGLxCLPnxuJCusBgMQFsHDrpTt0h/qRxhZLnVgkkakkWw242mdYC ieLV3HTX8iTkm0c4aC4jC4uism9GuXJcmLkt3O+hZe9tNwLv0lDeV5Gg8Wj0hokYcdvA0vdufXjiM Q1iSeEW+EkZnKZ9nOiCM/JJeSvoR2JT1xTy1W1d2EajQI3vWFhX1YRCHum7GHiEGKRQkBgZ1Pz8il EMI6ncVw==; Received: from [2601:1c2:980:9ec0::9fed] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qiLK6-00GLLs-0j; Mon, 18 Sep 2023 20:58:26 +0000 From: Randy Dunlap <rdunlap@infradead.org> To: linux-kernel@vger.kernel.org Cc: Randy Dunlap <rdunlap@infradead.org>, Nikita Travkin <nikita@trvn.ru>, Sebastian Reichel <sre@kernel.org>, linux-pm@vger.kernel.org Subject: [PATCH] power: supply: pm8916_lbc: observe EXTCON config setting Date: Mon, 18 Sep 2023 13:58:25 -0700 Message-ID: <20230918205825.25864-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 18 Sep 2023 13:58:54 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777420471412761533 X-GMAIL-MSGID: 1777420471412761533 |
Series |
power: supply: pm8916_lbc: observe EXTCON config setting
|
|
Commit Message
Randy Dunlap
Sept. 18, 2023, 8:58 p.m. UTC
When CONFIG_EXTCON=m and CONFIG_CHARGER_PM8916_LBC=y, there are
build errors. Fix them by having CHARGER_PM8916_LBC depend on the
setting of EXTCON.
aarch64-linux-ld: drivers/power/supply/pm8916_lbc.o: in function `pm8916_lbc_charger_state_changed_irq':
pm8916_lbc.c:(.text+0xe8): undefined reference to `extcon_set_state_sync'
aarch64-linux-ld: drivers/power/supply/pm8916_lbc.o: in function `pm8916_lbc_charger_probe':
pm8916_lbc.c:(.text+0x638): undefined reference to `devm_extcon_dev_allocate'
aarch64-linux-ld: pm8916_lbc.c:(.text+0x650): undefined reference to `devm_extcon_dev_register'
aarch64-linux-ld: pm8916_lbc.c:(.text+0x688): undefined reference to `extcon_set_state_sync'
Fixes: f8d7a3d21160 ("power: supply: Add driver for pm8916 lbc")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Nikita Travkin <nikita@trvn.ru>
Cc: Sebastian Reichel <sre@kernel.org>
Cc: linux-pm@vger.kernel.org
---
drivers/power/supply/Kconfig | 1 +
1 file changed, 1 insertion(+)
Comments
On Mon, 18 Sep 2023 13:58:25 -0700, Randy Dunlap wrote: > When CONFIG_EXTCON=m and CONFIG_CHARGER_PM8916_LBC=y, there are > build errors. Fix them by having CHARGER_PM8916_LBC depend on the > setting of EXTCON. > > aarch64-linux-ld: drivers/power/supply/pm8916_lbc.o: in function `pm8916_lbc_charger_state_changed_irq': > pm8916_lbc.c:(.text+0xe8): undefined reference to `extcon_set_state_sync' > aarch64-linux-ld: drivers/power/supply/pm8916_lbc.o: in function `pm8916_lbc_charger_probe': > pm8916_lbc.c:(.text+0x638): undefined reference to `devm_extcon_dev_allocate' > aarch64-linux-ld: pm8916_lbc.c:(.text+0x650): undefined reference to `devm_extcon_dev_register' > aarch64-linux-ld: pm8916_lbc.c:(.text+0x688): undefined reference to `extcon_set_state_sync' > > [...] Applied, thanks! [1/1] power: supply: pm8916_lbc: observe EXTCON config setting commit: a6c6a5fe2a08172c2e045588531f0e05a6c296cf Best regards,
diff -- a/drivers/power/supply/Kconfig b/drivers/power/supply/Kconfig --- a/drivers/power/supply/Kconfig +++ b/drivers/power/supply/Kconfig @@ -643,6 +643,7 @@ config BATTERY_PM8916_BMS_VM config CHARGER_PM8916_LBC tristate "Qualcomm PM8916 Linear Battery Charger support" depends on MFD_SPMI_PMIC || COMPILE_TEST + depends on EXTCON || !EXTCON help Say Y here to add support for Linear Battery Charger block found in some Qualcomm PMICs such as PM8916. This hardware