Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2601671lqb; Tue, 28 May 2024 05:18:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVpfoObXKTfj5JgEA0tPYcvN3rcNAI9TApDn7qrf2KwAX3SUHpMEwlasjAWeoqMZpPGzhHAAHwARWNkEa93POjvEC8JF8KPQRVWx3nfGw== X-Google-Smtp-Source: AGHT+IEaxPdUBsDmteMKg4KFQt/Mn06v7BbccryY4kwkqdSiS6ppZBM2LU+BpGyGoEVsmxN0ICzf X-Received: by 2002:a05:6a00:9086:b0:6ed:1c7:8c4d with SMTP id d2e1a72fcca58-6f8f34ab5ebmr13084980b3a.12.1716898712354; Tue, 28 May 2024 05:18:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716898712; cv=pass; d=google.com; s=arc-20160816; b=IR9nRLafO9MTixl5D6Uf7pbKRBMVdeOstKztXuqBIDsash+asvZOMPLsbmYkdVGYeq f5E+6q056qtad5SFVW52avuYMrSkyOUXDUNdkVctQl67DQErHBSSVMbmb+WfgkFwScBX 1+DeYPlmfdR0Sb+0Vel5PJxo9Q3cwrEh7i9YbBOpj/XjW1Y7N3FAdRH8IlxUssStXY9Q u6zyyh2+NPqXlMGAVSQhLdrAynA35+3Hs0hjVeGIMBANOrs3QykNp5mW8DArJX/ODOLy QKoGqu7n2mFtkl6RHbrJEjYWBY31eqnfa2Ir/LnOrAnObjYBspeOhtc5VUr0JAHZ9CW5 jtWw== 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=wb2k0/9XUNqsNqCztvTJ3Z8v0EBK1aPoNq+DxTDIfGo=; fh=NOwe96cOkmBQLd+gdzqmY4CEtb8ACuHNtPAQCQRwgNI=; b=lEgW5i81rwbek6nIxxsPATsVxGameI/X8oy2K/asdwZVws2l2JOKAhTfPA0DVat05b bwJ4OjLJQM8JSsXYflgIryzoPJrKmhz+3xdlfaxe2BMlKhmOtPCDIRbBiiubnrNuOxzl /AIP0JHHwxn8WUHymgT4Dd/pSWFN+i950ZN6pV+lgSPY+omTKTfwa0FDdR4M/BNTiatZ SxDEdGGO1Dwc609MIFHr0GkpggDTqN8Wvj/I0Oal3S8rKULlWmr3stHt6Lc/yCCPYQPz tLUzXj5UTyCl06xzN+ljJABCB/CqCyIL1Mb4kzKL+zni8ZfGLE0ULXUxEysKHDZxO3ef nLEQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fSw92NH1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192239-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192239-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6822779bbfcsi8245840a12.397.2024.05.28.05.18.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 05:18:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192239-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fSw92NH1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192239-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192239-linux.lists.archive=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 1AA96B2698B for ; Tue, 28 May 2024 11:59:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A77D916C877; Tue, 28 May 2024 11:59:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fSw92NH1" 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 CD48E4C97; Tue, 28 May 2024 11:59:45 +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=1716897585; cv=none; b=NjXZQcbfroR8K55f0XT6bvzgInRMELDnjPLrtCvzCwLlMaeUkR4CP6BT8nxUH/BOjlU+COb7oqd9XiSbhA8lZk1G8NhNVZIfL1DNTDDKzRakLalfi5jFNnZQZN2UG+TT7TLgAsObA6IC7w6u0Hv8LJvNkSoKw/pApKWcdlRfFos= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716897585; c=relaxed/simple; bh=PJ6dm+ojt4tB8KatVUHmNd4ox8+zoZGcn/Tu/Vumpvg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=dbLnErrhZaoh3eU9/VfKrr1Zxa/pisvbnj6Mn+02J2K3qlxpSCBxU3fs0+sipLiek0TmxLiKK8BUcDdcan8L2LTBGgtxKetyeQG9ytpEAgCJaQe1m351/Y1rKWsDHnzHtcgq+kuZMSTXqlo8FLe97NJKD2E50L3A/rWAeWx2GoA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fSw92NH1; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F9F9C3277B; Tue, 28 May 2024 11:59:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716897585; bh=PJ6dm+ojt4tB8KatVUHmNd4ox8+zoZGcn/Tu/Vumpvg=; h=From:To:Cc:Subject:Date:From; b=fSw92NH1+IcaGXB0/E0EVitFVJAe5MUKtDUk5DgyUoNRo9eTzpU4uZeji57srdptp Ef4rEKITaSAdxJjddldsfiqdw5n0/Nm2dtbiAIb/Zyan8txG45YavEwGtua76O0beX 31wSslTX2Tz42exe4ZWoDeRYdEioaxRhXMAkwm1iih54n/6y71QpqXlKixcyzondFw 2D471jjJ54e09DZf2aw2LVYTBDzF57xIpftc5GcT1dkkLDV1cdWauKqbTWmG4hz+BK dhac6CYFGxEloxMRni/G95Cga+XRbkkPPJKbjdxS0Wk+DdfqnhDpilsvqQrby+/ssG ZwCLl7SvRmfOA== From: Arnd Bergmann To: Hans de Goede , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Cc: Arnd Bergmann , Armin Wolf , SungHwan Jung , Henning Schild , Ai Chao , Robert Joslyn , Heiner Kallweit , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] platform/x86: yt2-1380: add CONFIG_EXTCON dependency Date: Tue, 28 May 2024 13:59:33 +0200 Message-Id: <20240528115940.3169455-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 Content-Transfer-Encoding: 8bit From: Arnd Bergmann This driver uses the extcon subsystem and fails to build when it cannot call into that subsystem: x86_64-linux-ld: vmlinux.o: in function `yt2_1380_fc_worker': lenovo-yoga-tab2-pro-1380-fastcharger.c:(.text+0xa9d819): undefined reference to `extcon_get_state' x86_64-linux-ld: lenovo-yoga-tab2-pro-1380-fastcharger.c:(.text+0xa9d853): undefined reference to `extcon_get_state' x86_64-linux-ld: vmlinux.o: in function `yt2_1380_fc_serdev_probe': lenovo-yoga-tab2-pro-1380-fastcharger.c:(.text+0xa9da22): undefined reference to `extcon_get_extcon_dev' x86_64-linux-ld: lenovo-yoga-tab2-pro-1380-fastcharger.c:(.text+0xa9dc0c): undefined reference to `devm_extcon_register_notifier_all' Add a Kconfig dependency to make it it always builds correctly. Fixes: b2ed33e8d486 ("platform/x86: Add lenovo-yoga-tab2-pro-1380-fastcharger driver") 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 809888e4c1e7..9f850e4617bf 100644 --- a/drivers/platform/x86/Kconfig +++ b/drivers/platform/x86/Kconfig @@ -136,6 +136,7 @@ config YOGABOOK config YT2_1380 tristate "Lenovo Yoga Tablet 2 1380 fast charge driver" depends on SERIAL_DEV_BUS + depends on EXTCON depends on ACPI help Say Y here to enable support for the custom fast charging protocol -- 2.39.2