Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp832288pxu; Mon, 23 Nov 2020 05:26:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVBrs9FR5D9btBGO9yFZDZn1F95pADsuWGOxSqFGuo0y/+0uIdo4dOJ08skRMtD9JBm5OZ X-Received: by 2002:a50:a40f:: with SMTP id u15mr48054264edb.307.1606137973305; Mon, 23 Nov 2020 05:26:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606137973; cv=none; d=google.com; s=arc-20160816; b=0OmZ2GsEcUOAKV8PR6rGO9D3kW5nSoE6WUfnzpaTrE+iOsvKU8nnL1jIEv+GAv5ZUD MlsUQXmtPNIIOy16meRpvgNFaCvfDHNPaN3nfmLhjuKN64f/l/VYaakxB5wHHdKgnSG/ O1xYJKZmKHT53jdkbUjtv/e/V+AUgoLuoLTyZFeAAsPmlir4BMEc81RkpETOFAALmCn8 kZL3shlSLHZ0TKE0SghgYzq9wJ41pE3EblHWLJfCFoIA2ZXVC1VUYEl/+trsMncUI+JC kzJqOIVfJ/ZjkddxZPsyakbHyjqKVSZ6PJIBjRYedtubmodd+v50yqd4gcyZ7KufPJxX WVCQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=e5eP5jO/XVCVX6iM6RIUU5JYmsCBTD9pzHPumFKTwJU=; b=LHL1sKVWBevQWw9lKrV7yOTBtdDqRO1l947iT5aDJsyYy2Mnc4+eRJcGSXRYQebXh2 zwcpBBFZuWN5X/CmZSXUDbDmz8WUzHjQElXA6q03+yIll4iZjjNLXCKnNXvu1WpTsIST BWDr9hqAQhE+BvYGwJkkMNN+ZNfXIoNy9/aIDfWH5MoxiHeUTb/jM9R/xvuMYf9QoJQH UqJ4hwmuMA4f+eKTI/GYIRoKmbJdrBSWR6LwOyV0P9g/T9TlUoe2+c2iHgrtGkbcjAro SAHskFpGQP8JTT2PCYpSMP6WMksu0r6KAHCizLfgnL6zta7eGM7l80NqPnP07iy0iwcT xVrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NOx2NXzP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j13si6366428ejy.399.2020.11.23.05.25.50; Mon, 23 Nov 2020 05:26:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NOx2NXzP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731834AbgKWMgz (ORCPT + 99 others); Mon, 23 Nov 2020 07:36:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:48682 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731724AbgKWMgk (ORCPT ); Mon, 23 Nov 2020 07:36:40 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7C8252065E; Mon, 23 Nov 2020 12:36:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606134998; bh=sK4olq0KBy5MHExu9roPZP0tGBsa83kpaUElyyUOPsw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NOx2NXzPdsURwQ7K46xCO6IpPxsCNz28dHXpw3t1TgQ/ZMfhUDyw8Y5RMVHS8Mc8h kshzNF7NsXw/zmUpi1uTx40dyz3X1QRaBiKtT2cuebiWHqTLfpJ51Bc9hapC/3wWqm mwcdULEhUpprFbllXkOn/LrKComxhAWKIZqeP6wc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Necip Fazil Yildiran , Jonathan Cameron , Dmitry Torokhov , Sasha Levin Subject: [PATCH 5.4 068/158] Input: resistive-adc-touch - fix kconfig dependency on IIO_BUFFER Date: Mon, 23 Nov 2020 13:21:36 +0100 Message-Id: <20201123121823.216612745@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121819.943135899@linuxfoundation.org> References: <20201123121819.943135899@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Necip Fazil Yildiran [ Upstream commit 676650d007e06fddcf3fe38238251d71bd179641 ] When TOUCHSCREEN_ADC is enabled and IIO_BUFFER is disabled, it results in the following Kbuild warning: WARNING: unmet direct dependencies detected for IIO_BUFFER_CB Depends on [n]: IIO [=y] && IIO_BUFFER [=n] Selected by [y]: - TOUCHSCREEN_ADC [=y] && !UML && INPUT [=y] && INPUT_TOUCHSCREEN [=y] && IIO [=y] The reason is that TOUCHSCREEN_ADC selects IIO_BUFFER_CB without depending on or selecting IIO_BUFFER while IIO_BUFFER_CB depends on IIO_BUFFER. This can also fail building the kernel. Honor the kconfig dependency to remove unmet direct dependency warnings and avoid any potential build failures. Fixes: aa132ffb6b0a ("input: touchscreen: resistive-adc-touch: add generic resistive ADC touchscreen") Signed-off-by: Necip Fazil Yildiran Acked-by: Jonathan Cameron Link: https://lore.kernel.org/r/20201102221504.541279-1-fazilyildiran@gmail.com Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha Levin --- drivers/input/touchscreen/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/touchscreen/Kconfig b/drivers/input/touchscreen/Kconfig index 46ad9090493bb..1e812a193ce7a 100644 --- a/drivers/input/touchscreen/Kconfig +++ b/drivers/input/touchscreen/Kconfig @@ -96,6 +96,7 @@ config TOUCHSCREEN_AD7879_SPI config TOUCHSCREEN_ADC tristate "Generic ADC based resistive touchscreen" depends on IIO + select IIO_BUFFER select IIO_BUFFER_CB help Say Y here if you want to use the generic ADC -- 2.27.0