From patchwork Tue Sep 27 02:50:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Ranostay X-Patchwork-Id: 611945 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8212FC6FA93 for ; Tue, 27 Sep 2022 02:57:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229719AbiI0C5g (ORCPT ); Mon, 26 Sep 2022 22:57:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230098AbiI0C4D (ORCPT ); Mon, 26 Sep 2022 22:56:03 -0400 Received: from mail-qv1-xf2f.google.com (mail-qv1-xf2f.google.com [IPv6:2607:f8b0:4864:20::f2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 215C961D76 for ; Mon, 26 Sep 2022 19:51:22 -0700 (PDT) Received: by mail-qv1-xf2f.google.com with SMTP id s13so5466505qvq.10 for ; Mon, 26 Sep 2022 19:51:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=fjKONfzvcToa9xf9WhGIF//2C04Wz2LbGFmYzFaCWaU=; b=CiSyL6z+RZVWIzvY/ORpUNqpSkwc5IPLOV1dufLUixrZPX7+PbcYiRajuaQEz2R/cj lwg8wVZyfz4a3LLzLPTaS3UNOwfM1seVXVGmibCrXtUY2B1eX7xgEjBPpFbqhbker0eZ vtInG6pQu0HM7ZOnjUeWhv68JfdgeXzNYjiCU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=fjKONfzvcToa9xf9WhGIF//2C04Wz2LbGFmYzFaCWaU=; b=pBdP2myRC190bCtVlMESViy+9nkc7RnIIPOJPSUnmS2cy7OTy5nsh7dNrPeAqvXPIv zDhUwQxvtSCaAlZ61nbJKWHBCX2SHSsVBHzmVvkHL1KCHkhgdO1Tc2mhsR7VLJl1+Trk MsOVJtVBt13kkmeePI67NMLbdhMYPBliWkFAKPqnHfhwcVqaF5cjAaUl8B+KBN4bvOY6 vKHFNS3BR/e33T0FUAYKXEf/atQfB8Sn+DoGwACo/lHGCST5ZFw12UR6+bGdZxfEhgHF cZTT/ZNaSu0wqV5Tcq4aNi2SI1pxsaEsvT9f4mNtQac0RjHnbq0yTpm7tgN3duFKqn3u 2F1w== X-Gm-Message-State: ACrzQf2M53bF5nfrGIQTZQXZ6WYAsS9WE1bKJNJTFjJxAZYZKArIZ1Gm LAvf8N5GQXtxJFF/HNF9gmOMYA== X-Google-Smtp-Source: AMsMyM72trpFIIWMM6yZqeQ1QFTb3xFCWBDapjcF0kwjXqlIJHMlYir+1g3Ne0O+Le9/E4U75mAQ4A== X-Received: by 2002:a05:6214:f6d:b0:4ac:a1ca:9de4 with SMTP id iy13-20020a0562140f6d00b004aca1ca9de4mr19621704qvb.62.1664247081189; Mon, 26 Sep 2022 19:51:21 -0700 (PDT) Received: from roguebox.lan ([164.92.70.235]) by smtp.gmail.com with ESMTPSA id y5-20020a37f605000000b006bb0f9b89cfsm199620qkj.87.2022.09.26.19.51.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Sep 2022 19:51:20 -0700 (PDT) From: Matt Ranostay To: jic23@kernel.org, gupt21@gmail.com, benjamin.tissoires@redhat.com, jikos@kernel.org Cc: linux-input@vger.kernel.org, linux-iio@vger.kernel.org, linux-i2c@vger.kernel.org, Matt Ranostay Subject: [PATCH v5 2/5] iio: adc: stx104: fix future recursive dependencies Date: Mon, 26 Sep 2022 19:50:47 -0700 Message-Id: <20220927025050.13316-3-matt.ranostay@konsulko.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220927025050.13316-1-matt.ranostay@konsulko.com> References: <20220927025050.13316-1-matt.ranostay@konsulko.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org When using 'imply IIO' for other configurations which have 'select GPIOLIB' the following recursive dependency is detected for STX1040 Switch from 'select GPIOLIB' to 'depends on GPIOLIB' to avoid this per recommendation in kconfig-language.rst drivers/gpio/Kconfig:14:error: recursive dependency detected! drivers/gpio/Kconfig:14: symbol GPIOLIB is selected by STX104 drivers/iio/adc/Kconfig:20: symbol STX104 depends on IIO drivers/iio/Kconfig:6: symbol IIO is implied by HID_MCP2221 drivers/hid/Kconfig:1227: symbol HID_MCP2221 depends on GPIOLIB Signed-off-by: Matt Ranostay --- drivers/iio/adc/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig index 7fe5930891e0..929dd9493479 100644 --- a/drivers/iio/adc/Kconfig +++ b/drivers/iio/adc/Kconfig @@ -1024,9 +1024,8 @@ config STMPE_ADC config STX104 tristate "Apex Embedded Systems STX104 driver" - depends on PC104 && X86 + depends on PC104 && X86 && GPIOLIB select ISA_BUS_API - select GPIOLIB help Say yes here to build support for the Apex Embedded Systems STX104 integrated analog PC/104 card.