From patchwork Fri May 19 08:25:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 96265 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1082163vqo; Fri, 19 May 2023 01:50:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ69zZxNcpCpNA98Cw/fIiui2ioZrwPmPb0LxBqpq90XpxyDy62BOn1wPiuIn4HTregfKZ2b X-Received: by 2002:a05:6a20:7351:b0:105:d55a:ff48 with SMTP id v17-20020a056a20735100b00105d55aff48mr1475692pzc.9.1684486208523; Fri, 19 May 2023 01:50:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684486208; cv=none; d=google.com; s=arc-20160816; b=bK3RfiV262UUFSEC8zNaRIjmjOW1cdgXIALm076MN1I0wMAspE/FLP2k7viXEy4EkE zPz1bbFQrb1OwktVETLr1vIVrLPZFMcq7y6fnRcKOTwO0amxlpR98RDtzuLiRRo9CFQ4 UwviHZKNXBEl9257TX9UbfyxukG2B9uONZaE/dC6DvIShoWmP7XF3gf3M+hVNhaYVBhn Dv3Rq197xEpI/JSaRtrvk/KUHc6ME8lA226HuKdbNl26opMyos00EVpXMoFboqvFFL05 KcP0LOwMOWfBD6XetQCVlNiCL1RaZ8hOLFO/4rvjPDRaCNlVjSj89tXAEMatt1CpEG3x Mkmw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r11-20020aa7988b000000b00643a0d26156si3592346pfl.241.2023.05.19.01.49.54; Fri, 19 May 2023 01:50:08 -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 S229691AbjESI0Q (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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766311810045651214?= X-GMAIL-MSGID: =?utf-8?q?1766311810045651214?= 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