Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1236807pxu; Mon, 23 Nov 2020 15:34:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJzmp3dpkqRbNj6Ih4z/A+cVF2bojPBMtwgTH7wde8oFuaCR8iC2bWx2DA3YnZYCAhgvCQf2 X-Received: by 2002:a50:cd0a:: with SMTP id z10mr1454862edi.223.1606174453080; Mon, 23 Nov 2020 15:34:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606174453; cv=none; d=google.com; s=arc-20160816; b=UXZbwqHLIpywuTMjbeCdz1oq+8BOmSuScZH45id9zKlQxxrOfUfFWipdvyYY4Z7DsK 0vwFpsWv0HbColCT3Hd8zlOek+suT3de48YGqBsO+3O5pUos7yEsHkJjscVdJ+6OUpmH oKPKVl9sjXkV7gMEKHYQNhlkfM6+MK/qFhW4hIaF+aK1XCHGKRax13bEfG5/IdKKt09n iyAP3k+F/m8IwqTU9Y6bO+TsTosPmjnp73+91yu2Arw3qsydpxH3vDySwdwgDJ1XAJ9c 5GSd+l+TD+ZCSUePOXjhBYEjD8kMlQMD8h7ITBJ1N7568tebB1HL/4tbBnqK0t+7lw8j 63ZQ== 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=SV5YFNCfi4if0j7LfokeAo2jSYguj3EdSjxpPVYScao=; b=lTdClkbXyqiyGgi6M8hWjoQz4mlCOXD5CYd2ApG+oeWJesOTNv9dyG8r9+lLr0cERl hGf2H1AwEZMXBQcSQjogyzif1YjLJkOlNmsQ8e2tVbP/Wvwxxj+jsW3O0qe3Wv+eKjXr TGY5wb5JjU07ZmVbzmwai5JqWTiIlFZf2NXhDKRKLP3xwwVjxzMdvnmRymdtUXRgF1eZ Wld0i/af/wVXGrFhvfqwZO4ZAJpzAMSZe8kCtGX45z4GfnWenHID5O8CKlMsfSOe/0BJ tgRaafrHJOUBe7KLBsgete5w4lLkC7WmdbAvAYkNGLbuAwy8o7bSdF4s216qJnuY0pZf VtSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DZi6OE5j; 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 q15si7917954edr.58.2020.11.23.15.33.50; Mon, 23 Nov 2020 15:34: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=DZi6OE5j; 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 S1730900AbgKWMbk (ORCPT + 99 others); Mon, 23 Nov 2020 07:31:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:42198 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730845AbgKWMbW (ORCPT ); Mon, 23 Nov 2020 07:31:22 -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 B31E720728; Mon, 23 Nov 2020 12:31:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606134682; bh=4sUJEDl6ADc5HI+sgFrw1jtU5QNzKww3fVWXTn0l5us=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DZi6OE5j6v/H0+CDArdoQk0sTi9aYPlWTJjA7RIumm98/dDw8zW1qUvsITI/jeZop Ui+JnNziUoh1m7fXZFrTrZkvgqFDwhkDPLFzbEVOS7BDuySjV1y/lVn7m1tpVqB0W4 cZfFv5KFN7YidGW413skhiSUg2vbWuSZmaTQ9cfs= 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 4.19 45/91] Input: resistive-adc-touch - fix kconfig dependency on IIO_BUFFER Date: Mon, 23 Nov 2020 13:22:05 +0100 Message-Id: <20201123121811.508200520@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121809.285416732@linuxfoundation.org> References: <20201123121809.285416732@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 2a80675cfd947..de400d76df55a 100644 --- a/drivers/input/touchscreen/Kconfig +++ b/drivers/input/touchscreen/Kconfig @@ -95,6 +95,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