Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2158671rwd; Fri, 19 May 2023 01:39:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5P8Jgj3YcE84FbXS8jYaNUXbP0w0+1v46I6XViWm8muIfqdXBKLiNuisyCgQMZ6Sys3SGg X-Received: by 2002:a17:902:da81:b0:1ae:40ed:4b8 with SMTP id j1-20020a170902da8100b001ae40ed04b8mr2120733plx.22.1684485592213; Fri, 19 May 2023 01:39:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684485592; cv=none; d=google.com; s=arc-20160816; b=lBvdBr7/QpK27sepGCfpSU5YWrQjsRZjDJfvnEfDtan9POAVfMG0elbi7uRXtQjMdN 6a7gyf9m05ZRDJ4eibtx0rawUuzKw1gq2t3SE8tt4Cn1n/SRilCh/aWKaozkfIX/kq3P vVidUIqHtCfhnqSNL4THBK4B64RbYMYe8l4KhVaYTreqL5jNBc4j9oifojdvC/YImKfV x5Ta18ZTBY8T/Y/b4sis5oGsiMYcINMtlljkQBcAiLjLI1iZNPO4Q1YQcAufgKBd4aYj vFgZq7KJXDdEIA/seZ6/05sw6SOE0TMTqElcap+vUrJlD0lj0oUHdv54ww3me/H+7O8e p5YA== 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=e0LFHzJI+yzTS5UsnkymSzkzpLHEei+HFTibZALYkF4=; b=sprjVhf/xJEMuFfPdh0FMXlEnzIvCLntG8/XdlL1Vs0IRq+enfNZCoD2CxvgOZIqkF P8XKReXsW1KFH/UxMVvmqNx28fpo4JidkO8xKg+lXt5RIhbOQW3pO8I9VnR/fm+GMxHn F2vAEuF57fZgoUeDYkGoNMnM7VzY6x/y/e8rEMJhH67UzwjX5lpocPkl+QnM+QJWHXE5 6YGHSh7gMpt38KPT+rwyinheCY0XGfdhzrfwOaif28IyXw2FktFTjv15ofYZRTCXtar6 XBK131DLSBVQIcbRUrOdRmzb66HeEbJF1mhy7Ozxfxy4UhcdOn29QA1AG7+rwR889Lbi q2LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VSmxtSVB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jf7-20020a170903268700b001a24efe1f22si3202421plb.64.2023.05.19.01.39.35; Fri, 19 May 2023 01:39:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VSmxtSVB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229682AbjESI0Q (ORCPT + 99 others); Fri, 19 May 2023 04:26:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229599AbjESI0P (ORCPT ); Fri, 19 May 2023 04:26:15 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D95BCE52; Fri, 19 May 2023 01:26:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5A823654DF; Fri, 19 May 2023 08:26:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44476C433EF; Fri, 19 May 2023 08:26:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684484772; bh=zccskR3KDaJ9BbnUz5SBNLBbWuOC91Z3hkOuUHIE9+I=; h=From:To:Cc:Subject:Date:From; b=VSmxtSVBXrVMlCGOsj6xh+gIo+eiyvSJ0UTJOBwofvtYONyPHqKMJSM2ySnusKLY3 aGgz3Ov3kgP58GBohbc+y1AU3t9qBlSBmCWH+yP0D+FxXGZDlfH9FbAj1VDmSgQ2bV u4a/2vltRzL6Wnd5+y4Lm1UxoZfFleElMAvA19TtDB6efJhuEdP9oqDLgPE/4JZojJ uW7lriLZZjzfM8bSpnsEod2//28+U08owcRBrzG6eu4m4sdRcg6FCEzdt00bSnEGBV UYUrrfOnGiwHmoJvvXATtsfEMvYHEY7jtPGjO5sq0V6t1T3CZRb+oBkZqRtiwHbEPk yucxqoEmfbKGQ== From: Arnd Bergmann To: Hans de Goede , Mark Gross Cc: Arnd Bergmann , Andy Shevchenko , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] platform/x86: lenovo-yogabook: add I2C dependency Date: Fri, 19 May 2023 10:25:52 +0200 Message-Id: <20230519082606.375471-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann The added platform_driver support fails to link when I2C core support is not rechable: x86_64-linux-ld: drivers/platform/x86/lenovo-yogabook.o: in function `yogabook_pdev_probe': lenovo-yogabook.c:(.text+0x5a5): undefined reference to `i2c_bus_type' Add a Kconfig dependency to enforce a working configuration. Fixes: 6df1523fa0b7 ("platform/x86: lenovo-yogabook: Add platform driver 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 9fe974d5f645..63637ea99c2f 100644 --- a/drivers/platform/x86/Kconfig +++ b/drivers/platform/x86/Kconfig @@ -125,6 +125,7 @@ config YOGABOOK tristate "Lenovo Yoga Book tablet key driver" depends on ACPI_WMI depends on INPUT + depends on I2C select LEDS_CLASS select NEW_LEDS help -- 2.39.2