From patchwork Wed Mar 6 11:08:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 159744 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp6033174jad; Wed, 6 Mar 2019 03:09:15 -0800 (PST) X-Google-Smtp-Source: APXvYqzaV/NTjX+FHB+zDFsdlnDd7eE0/fplt6XvmJNKulK7c8x3v2VVHp0rEFhBjGPaHx3nptBD X-Received: by 2002:a65:60d8:: with SMTP id r24mr5772816pgv.6.1551870555682; Wed, 06 Mar 2019 03:09:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551870555; cv=none; d=google.com; s=arc-20160816; b=K9ok1pNwrbfxoV27hch+z03pGYIAGbqoQ3bCW0mJs0WnkndqSzngnNwL519e2lsj69 PMyxeogQaSLcHo3mr1aGS7Rd8VkYA/0ZM3j9l1K3P5k/ULTaSBagJv5/ooFuuwifoOfa DNXy7+YmIzY4WORfJnv2tIzXi6I4DtzO6LeL1Yux32szvFL26oGso21x4h8sZ3XJHfy6 maZQ1UFWdf37hbs12spEMU/ndnjjur//XDr2MPL3/FpAfMiccYpHuKGb/aqnEzRnRZoM tKaOCn23cDJSuEy4YfYRyQ8mxnt/S63B0Jj0pNQQg+jSWuhrWnRyuufl3COQtlIFMrYp s9PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=+MmIqKPUPlGsI6xBLNbJjs6N9fm4mBvrv9fYVcf5sws=; b=k5dVNVciG2j02y6m0d9OdCm2SlM2dt/BAJDodrGSbaOqimfftdD58Qch/OhR5OGssw VD2ushi4Gij7F72SmvfAJHh+uA2xCGd4TyGaHiQpwCHEsmPY6qadhT6mhFkpLQVOK4j9 xSsHvPsGMkOu7V0P3sMEamRxqOyp+eXVLduAj0yrOK4lAtAhsyo5FpId0vZ3Xay4IJNM YHo9Z85z9pMiXes7YVh9fsM8CRMfxFXOuioVg+cukZ6zO82Yom8dvdPORTtoGyLWT51f Z9m7V3UTJz2DGzXt7Qih/YtMqgoRvs+RYAXW7ZAn+6gC5ZlAAd+/3MRbhIhSV8EyIS18 R2ZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i15si1327676pfa.270.2019.03.06.03.09.15; Wed, 06 Mar 2019 03:09:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730341AbfCFLJO (ORCPT + 31 others); Wed, 6 Mar 2019 06:09:14 -0500 Received: from mout.kundenserver.de ([212.227.126.130]:36845 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726689AbfCFLJN (ORCPT ); Wed, 6 Mar 2019 06:09:13 -0500 Received: from wuerfel.lan ([109.192.41.194]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPA (Nemesis) id 1N14xe-1h7QSn0c5S-012Vhh; Wed, 06 Mar 2019 12:09:07 +0100 From: Arnd Bergmann To: MyungJoo Ham , Chanwoo Choi Cc: Arnd Bergmann , Vijai Kumar K , linux-kernel@vger.kernel.org Subject: [PATCH] extcon-ptn5150: fix COMPILE_TEST dependencies Date: Wed, 6 Mar 2019 12:08:57 +0100 Message-Id: <20190306110906.2622957-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:KC4iYkvGtYdhiUP3vD9B3Tevzaf0ckV5iiY6/4+X7YAF6iqCLkT jO4eSlcx40dobzhFrGGrNOpYIpu1DWPyvlIatlbHhzoao4Xjn8rTiodRQiNsVV+wPeDN4Pa ymaZwZkyhz69X/JI94frVY1narYa5T0BKFRg4iRNVeqBDXZF0BkcxNERrYB1+U9/I34lbVQ 80I0+zzbC59lJEhLFzgLg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:DIcRHNM81FA=:vqTtp2fETiYjd9qjOBnzgj LnY6R2vq+dw0UsqGvmL+NfCKa174JhqSOw4lsQL2a8kq4GxCGP3L7Heba0iuUd2n9RFedEV/C CB03gtpJg1uuSJ0vaGrkIECaHEhiR8y95L7AXMs0kqnYFdJ7cvchJYY7WmozNh/zychoHQI1H FpTtmPZqggXKKr0yApmf3/oIbJ4Lgh5Oe8xGTbpbEaTClCz3WsYpm3wK8+xMidiWqq25fUoVC SlnxPDYXmVDorfd7MyWktgxvKrbR6m+ZAzwnYu7fFxyp3bNuL7qNKF/kRw8fNXcbHvWnQ86gR 2gdzkM8ESo6AH78kiX/jrju+8Q6cSRLxdJbcXJ1mw6pJC/EPij3/8uB3HryG3RBx14LQkKQrA niNz2yVnr0Nia3459ABXkOsNIrhwl4gMhxElWgmnSVBFDx8V1SKB+Of5H0KO4kPGw2Z3B9B1d 4hQ1nzgZ0tKr0UOqKKzVGIRanrxm16AXya86BoJnp71p7TXpZ6nETbww/nGLeFD1bt3RKXuOE MuEWND29o04b5jP2yROM/z4IBwyR1X98ytXrGm5k6/xxdLUYIPZTzrjanT8Z9m3KFwN3KQAH9 qg8QQOhTWhi6pAanUJ6jqrfj584zhK3mCfztpNjkYVhALBxAFZdZxs8YYKkxu7ufgdNzFNTkB zGdIUc33KUTpEyUM2NV15QDG/Cz0Dk61TTL3wXVIbLGLJuMmoeyxP8E+FedMOx5ujMpfZXVX+ L09QvvPbTWNy9uWy/I1bhwqNN8bVrHbq8h/SeA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The PTN5150 dependencies look like they were meant to do the right thing, but they actually should not allow building without I2C for compile testing, as that results in a Kconfig warning and subsequent build failure: WARNING: unmet direct dependencies detected for REGMAP_I2C Depends on [m]: I2C [=m] Selected by [y]: - EXTCON_PTN5150 [=y] && EXTCON [=y] && (I2C [=m] && GPIOLIB [=y] || COMPILE_TEST [=y]) Selected by [m]: - EEPROM_AT24 [=m] && I2C [=m] && SYSFS [=y] - KEYBOARD_CAP11XX [=m] && !UML && INPUT [=y] && INPUT_KEYBOARD [=y] && OF [=y] && I2C [=m] - INPUT_DRV260X_HAPTICS [=m] && !UML && INPUT_MISC [=y] && INPUT [=y] && I2C [=m] && (GPIOLIB [=y] || COMPILE_TEST [=y]) - ... [many others] Add parentheses around the expression so we can compile-test without GPIOLIB but not without I2C. Fixes: 4ed754de2d66 ("extcon: Add support for ptn5150 extcon driver") Signed-off-by: Arnd Bergmann --- drivers/extcon/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.0 diff --git a/drivers/extcon/Kconfig b/drivers/extcon/Kconfig index 8e17149655f0..540e8cd16ee6 100644 --- a/drivers/extcon/Kconfig +++ b/drivers/extcon/Kconfig @@ -116,7 +116,7 @@ config EXTCON_PALMAS config EXTCON_PTN5150 tristate "NXP PTN5150 CC LOGIC USB EXTCON support" - depends on I2C && GPIOLIB || COMPILE_TEST + depends on I2C && (GPIOLIB || COMPILE_TEST) select REGMAP_I2C help Say Y here to enable support for USB peripheral and USB host