From patchwork Sat Oct 7 23:53:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 9991641 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4E7F46031B for ; Sat, 7 Oct 2017 23:53:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2B1A027B81 for ; Sat, 7 Oct 2017 23:53:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0D0D2287E6; Sat, 7 Oct 2017 23:53:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7F62927B81 for ; Sat, 7 Oct 2017 23:53:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752880AbdJGXxX (ORCPT ); Sat, 7 Oct 2017 19:53:23 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:42025 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752812AbdJGXxW (ORCPT ); Sat, 7 Oct 2017 19:53:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:MIME-Version:Date:Message-ID:Subject:From:Cc:To:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=0GOVCh4f8CFHMKr5YFd0NHxbG7bLxYNH8hCzpEUZGmM=; b=Uzw94mKmRvc2v79ukBv4yMv2f CjsTOMv319EN7Co6hLHXLthoWmWwm7OtgaThortTDobHfZFeaWyZ7obQ56/qxsIgc6U/fp+UGEAC2 qi7fcEwUsf76wLDZ5BYPYvGwukPd+1lmhnFKSFzZM15r5ike651y/0f9j0hqknMZqz56SuShHkQXg 8OyFvpFTXzqjRupF2+RoDq2bvCqhtYxY/f4bKdatyaMraUzFZ/TwJGvjDRcpzUH2VXIhB+O1UvTM1 RfyuwPjWfya4xdgtZcIux2rq3L2UHlidAPFAHaXKkkls0giC51svv6d/1Vk1tl+WX9qkdRl3XL4pi a1q5+T5hQ==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlap) by bombadil.infradead.org with esmtpsa (Exim 4.87 #1 (Red Hat Linux)) id 1e0yuG-0003L1-Vx; Sat, 07 Oct 2017 23:53:21 +0000 To: LKML , linux-iio@vger.kernel.org, Jonathan Cameron Cc: Jack Andersen , kbuild test robot From: Randy Dunlap Subject: [PATCH] iio: adc: dln2-adc: fix build error Message-ID: Date: Sat, 7 Oct 2017 16:53:20 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 Content-Language: en-US Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Randy Dunlap The dln2-adc driver uses interface(s) that are controlled by the IIO_TRIGGERED_BUFFER Kconfig symbol, so the driver needs to select that symbol to prevent the build error. drivers/iio/adc/dln2-adc.o: In function `dln2_adc_probe': dln2-adc.c:(.text+0x528): undefined reference to `devm_iio_triggered_buffer_setup' Signed-off-by: Randy Dunlap Reported-by: kbuild test robot Cc: Jonathan Cameron Cc: linux-iio@vger.kernel.org Cc: Jack Andersen --- drivers/iio/adc/Kconfig | 2 ++ 1 file changed, 2 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- lnx-414-rc3.orig/drivers/iio/adc/Kconfig +++ lnx-414-rc3/drivers/iio/adc/Kconfig @@ -243,6 +243,8 @@ config DA9150_GPADC config DLN2_ADC tristate "Diolan DLN-2 ADC driver support" depends on MFD_DLN2 + select IIO_BUFFER + select IIO_TRIGGERED_BUFFER help Say yes here to build support for Diolan DLN-2 ADC.