Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1371183pxa; Fri, 28 Aug 2020 10:45:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOIfZd0E/rWXNxp0og2jSuJ8aSHYbJVz5lsOoXmvXj7JVF7RvWxBLaSua9Pvf2IXNGQtNH X-Received: by 2002:a17:906:529a:: with SMTP id c26mr3170612ejm.252.1598636724143; Fri, 28 Aug 2020 10:45:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598636724; cv=none; d=google.com; s=arc-20160816; b=GoOX1WPOtmvcuE/gDTz1UuSD0uUAB2DLyNfpdkL0uBnFha5CtYaGZn9EVDR5cjIHYY /D/+JvKFD5D+pav49HyI0ixZEBxfzJ/z+U4TBT8ECFViSv3eXIJbxwSxqdq64HsB6cm3 +wXxCYqTcbO5eBY8HkE3ZjaR10kM64AB15ZSjEMbHKYfwz/Ot7jrgFvr9O78hqSjkzVh 1+34VsFxguevqKx/HhMnuznyXB97LdQDOZfq2whpcuWGycWCsNVOOF94OEKCmSpx42bT FWQbu7zYb5HcsswSonR2aaoSEJio8kdtr0+6YKRfAJ+AkSUk2kO1k/S/OetZXa8SREFT h+nQ== 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=gRTsu7q9t7IM8CDfidURe3Mtn9PXfIwS5PCyuouaVGo=; b=MpiLL9wlRHW34cRHfG9Viuhax+Opn7WrGTY5KWNlOccUsQ5dWCr+cukTxgoDHPreSU dCNAWX66mSY/oRpNYETlxswwV2Y93ghan5254lSFRrcNmoZMJHih8WmfdvCeDXlw6YZ0 DLjetX2vC24tEBP4AAU2wWTz59ESfI0CLwDIQPZ8B5SQIRcNKlzcsXdAoA3YAEEKAlvf D23GYpJNEL0IgQN7B24KKOeG8jNcvtqbONNn4OAhxwjCGj08LKfG10Q3H0kbqFhojaLY MPfszj+eYrHjaBWLnQleJ3YHMSPb17zM7+768u+2GGvK0QySPXDv6n2fMb2kJJvv1oY3 smtg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g12si1085656edq.478.2020.08.28.10.45.01; Fri, 28 Aug 2020 10:45:24 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726824AbgH1RmA (ORCPT + 99 others); Fri, 28 Aug 2020 13:42:00 -0400 Received: from foss.arm.com ([217.140.110.172]:54350 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725979AbgH1Rl6 (ORCPT ); Fri, 28 Aug 2020 13:41:58 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 21A051FB; Fri, 28 Aug 2020 10:41:58 -0700 (PDT) Received: from monolith.localdoman (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A911C3F71F; Fri, 28 Aug 2020 10:41:56 -0700 (PDT) From: Alexandru Elisei To: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Cc: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, xxm@rock-chips.com Subject: [PATCH] iio: adc: rockchip_saradc: Select IIO_TRIGGERED_BUFFER Date: Fri, 28 Aug 2020 18:42:42 +0100 Message-Id: <20200828174242.338068-1-alexandru.elisei@arm.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Building the Rockchip saradc driver can trigger the following error if the driver is compiled into the kernel, but the IIO triggered buffer is not: aarch64-linux-gnu-ld: drivers/iio/adc/rockchip_saradc.o: in function `rockchip_saradc_probe': /path/to/linux/drivers/iio/adc/rockchip_saradc.c:427: undefined reference to `devm_iio_triggered_buffer_setup' This is because commit 4e130dc7b413 ("iio: adc: rockchip_saradc: Add support iio buffers") added support for industrial I/O triggered buffers, but didn't update Kconfig to build the required file. Fix that. Fixes: 4e130dc7b413 ("iio: adc: rockchip_saradc: Add support iio buffers") Signed-off-by: Alexandru Elisei --- drivers/iio/adc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig index 66d9cc073157..baa36a07a9cf 100644 --- a/drivers/iio/adc/Kconfig +++ b/drivers/iio/adc/Kconfig @@ -865,6 +865,7 @@ config ROCKCHIP_SARADC tristate "Rockchip SARADC driver" depends on ARCH_ROCKCHIP || (ARM && COMPILE_TEST) depends on RESET_CONTROLLER + select IIO_TRIGGERED_BUFFER help Say yes here to build support for the SARADC found in SoCs from Rockchip. -- 2.28.0