From patchwork Thu Feb 1 20:49:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Klinger X-Patchwork-Id: 10196019 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 7DB9860247 for ; Thu, 1 Feb 2018 21:18:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 694BF28AD0 for ; Thu, 1 Feb 2018 21:18:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 67CF128DC8; Thu, 1 Feb 2018 21:18:07 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 A2B6C28E46 for ; Thu, 1 Feb 2018 21:17:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751732AbeBAUtt (ORCPT ); Thu, 1 Feb 2018 15:49:49 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:56397 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751677AbeBAUts (ORCPT ); Thu, 1 Feb 2018 15:49:48 -0500 Received: from localhost ([2.164.205.78]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.183]) with ESMTPSA (Nemesis) id 0LgHZc-1f4X0E41O0-00nhNV; Thu, 01 Feb 2018 21:49:27 +0100 Date: Thu, 1 Feb 2018 21:49:24 +0100 From: Andreas Klinger To: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] iio: srf08: fix link error "devm_iio_triggered_buffer_setup" undefined Message-ID: <20180201204924.GA26839@arbeit> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Provags-ID: V03:K0:893swCEBrlZ3YXgp3oL6qErIuHEWl0Scq9445wCKuk9qf85Hcje fOkEbCzLQRKZFEn/27CtZRWNFEgnLVK/z5bJFGVBAyu8iUyPOz7/1n4pLhDCa3yv/LxNA+1 r5562xMuRM6iO4lt+suO9KjZDXI9sOQ9pREbP7WWNJ50MsXF6lPI8owJB5u+JYbZH9FxiQI iUKsNEGauvovZ8Hoab4KA== X-UI-Out-Filterresults: notjunk:1; V01:K0:/FiX/Z0x80Q=:Y8IzyWguO5Po/+QSsiuVQj AzR3oxKOIfOUHdlyfo0OFeU+2+l90sEy+Rl8yO+QEjTgvrNOHXKp5GQPIAnyh6VBi6BQlNJWk KM9DXN6ZHnMsWcYEYDnyyKZoYamQ5LD/lHrdBKhKtpRTCmSzgyh14PfeX9ZLRE4S8e01darsQ PkmeFEhkPxcOOISo9W/wRmf5hQKqqcGmJGhmiQUZURIIgPVY7u5JBH95vhWNwGJ7cEKi7BGjB pYATcuEjGGX1fwMvI5xElM5xABJ3Fryg0CcWjnTheP2IjqF+JC2t2V1/MG3lSOOi5cE6WXCQB pwKFWFZYkuCe9r8p8fA2vNDjaJoHwOidqZwTdFDAnnQNmXSRSISynB7b4NpdxMPlmkZv8BeIi Lm7QPpabLCGDikzNOTeA+fmUTEtkJhPCE83rXjLm7vvV01bThB+JBrjEosBmZtr9w/PU+DS9r ZTPjIInNFGlED3wBuYIfYdGxk55eRbsQw91TCRswSl2EPRZSuQm8wcAB5fHKyCqq3Tq5TQ+Ih 6D38RxNZfpKT5y/k3Gv9K5MPpvzLmWHF7ihhv5XtbMv8XJa1jzpI86kYtorZugc/nrUnkOYjU iUOjUQ1J+MRwGSnvL79+zO1LSUVvtNrTYIOhykSlHOiWhM4cUTBWg7rHAHwDI71EKC7U83PiW Xe4HKB4Fo1taDOJHCexKCY85aRpnBju0Kv+c1mBbiV2TOJlMf3KudQfkm6pa/VPwX4mfJ+ANL q4wbLDGHnufHfaXaoo6ZYkvLZ8GJ6FhpW/cZZg== 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 Functions for triggered buffer support are needed by this module. If they are not defined accidentally by another driver, there's an error thrown out while linking. Add a select of IIO_BUFFER and IIO_TRIGGERED_BUFFER in the Kconfig file. Signed-off-by: Andreas Klinger --- drivers/iio/proximity/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/iio/proximity/Kconfig b/drivers/iio/proximity/Kconfig index fcb1c4ba5e41..f726f9427602 100644 --- a/drivers/iio/proximity/Kconfig +++ b/drivers/iio/proximity/Kconfig @@ -68,6 +68,8 @@ config SX9500 config SRF08 tristate "Devantech SRF02/SRF08/SRF10 ultrasonic ranger sensor" + select IIO_BUFFER + select IIO_TRIGGERED_BUFFER depends on I2C help Say Y here to build a driver for Devantech SRF02/SRF08/SRF10