From patchwork Mon Jun 17 11:09:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 166987 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp2717770ilk; Mon, 17 Jun 2019 04:10:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqx5s1WBW2MXin3yLWKMMDufHYpDQcp6gUXQdYIZ5IBsEXDANaoiLuyAWZmegCZl9MbZrwv7 X-Received: by 2002:a63:80c8:: with SMTP id j191mr20712434pgd.442.1560769841996; Mon, 17 Jun 2019 04:10:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560769841; cv=none; d=google.com; s=arc-20160816; b=lCQJateO0XAK07Z/XZ9PFmvCK/1MBSRRCwAO0e4Mm+2oubF4FbbSmlQ5CP3xh1NzRD TF1HIGAAGebJm4k1mVoPLhsETyZAr2SqpGnw15l+um2ncy8SUbHm8IfAfHpuDd2gEBVl HIFOD2AfwReoozgDpX6dBqMslGeYZQMG5irD2XYxmTkto0hHxmiZdG0g2yS3b7HjtLLz pjRkzxagf8ZrlIt3s5+2M8XHAOr+hSkyx8d/wOQ3bP1dtOxdNkOFCRY2zVmPtBb0r3ew 0dFr+nSRlLdykFgeuZZhL2WAnCCrl3EwVwG1fYskhkfvxgKmxqjgSkS75M66ARyng4ew GY7w== 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=huVJMiBRu1rYnPoHqRdX4++SVdcQcMly83Fx5brilz4=; b=gzR8VHLsciPDAVSojrmPSVkUUcEYBKY0CCER6EWvJuHNe6VfyKWbUFrhVQq2589Oh8 e6pQ8HIYgmN4I8cWygoStP9ebiT3qXnojQH3YmjmGNylZnG5qiJL+1FBfnUg7OfiuuTz 9KewdWsqXyP4Yqd2XQoR7Uo9IqvITGmIm4sczMBNmw/xrH0WUAPYaxSdD2nEJkElHL70 OM9tJJn6ElDBr7KX05BLRUmiPT9z6xbvswqILF8JWZkPV+A8+XmmRuh1VAytOV/JEQcs qYIIULelhNNwBPo2rXu5LmBfP9tzD5D36FmZGEH65V221I9hKFWnh27hfbveEFCzKAiv /nMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f26si10391088pfd.193.2019.06.17.04.10.41; Mon, 17 Jun 2019 04:10:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727735AbfFQLKk (ORCPT + 26 others); Mon, 17 Jun 2019 07:10:40 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:41567 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726730AbfFQLKk (ORCPT ); Mon, 17 Jun 2019 07:10:40 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPA (Nemesis) id 1MFb38-1hqXBM2ZJe-00H9YY; Mon, 17 Jun 2019 13:10:02 +0200 From: Arnd Bergmann To: Lars-Peter Clausen , Michael Hennerich , Stefan Popa , Jonathan Cameron , Greg Kroah-Hartman Cc: Arnd Bergmann , Shreeya Patel , Jonathan Cameron , Hartmut Knaack , Peter Meerwald-Stadler , Jeremy Fertic , linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] Staging: iio: adt7316: use correct headers for gpio Date: Mon, 17 Jun 2019 13:09:20 +0200 Message-Id: <20190617110951.2085648-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:cTNvSQ9TaXGrz6GNYn/l47SM2aOEl9ewVkuzYHttzbQ18FhJ43p XbN9BwodkIHe7auBf9exzPpX8+XLgvTH0lskZMyeAenvZIHswz3XX+WWI/HSZDipF1HT4m5 +350Y5/T+jrkz3leY7UMJfO/q8w8r3WBf06lna+Lp4989vU93D9IYu+l7mUwiYxsfENmgwK ucyY2l2PxMpaYqqMvJYSA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:V5BTVesWKOo=:2cXnZF3aZ8tbG/yPkPAQM4 gxfPEl22HrRSJj6PwZC5Mc707yi5tWA3AVHPm9Pe6P4oGnr55t4/ucVn+OqL4Cm43bR+JMgez CMMZV0bG3J0s3TVgTtsIB3wt1wZMc/PJnelZ5+aiqDX/AoUin7FdA0QT2atsJTVPgoDZcFjEx 5IXX9jOQPvdXaC5PqauYzhgA3lbrKIhDz+X8/ewBMMLPLfsF5mrZd6PMzP4rPGwmH8TeDofH+ 9CYYoOARCCnZxoNpn1rUk4POaCRobviaPCfeEJJuM8H64CewD/UkoaQtA28Ido0VO6bKXC+Xj rZA7iOT16yy+KJDKO0CgnH9DNNyq+F+sOrrhcfB0MTFjvfZIYgYb7qx+QZ3/U7y83DamcrRel qnx/l7e0j8pF/kOfHoHbLnRlRvBDZlXmpa0cZi/hGD+pxkHN2+FLE5j/9SVFo4Z03oBkpStHj k+sqDO3czfdaMLujhR+83Z44IoRwA2uueMI8C/ixZRIJ5dzuDD6aTp/jfRhcvk92Y3MI1svZs CKn+Go8wNfN+kJMY1HKxOUZwoUed8HGKep6WKgqidaEzbQ0YO1sgFEoftT3UauT2wDbbKlixy bg+nZtwn4tXS1RVUN+YvkgOc1txR9dql4Cxtsihecfq6sjWLfG1vV0xmlbtDP6vqI71Ta6fRX sdF/eBvyc/tLtRJTYdY1zWBn58SOPU67j/wm8NoY2zI0R/ECVFKmiWRh2xf46DZ7MfWX+Rdue bHAGGNwweL3jnWPJ7YRS5yvyM0fvYK7s2aFNpA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When building without CONFIG_GPIOLIB, we get a compile-time failure: drivers/staging/iio/addac/adt7316.c:947:3: error: implicit declaration of function 'gpiod_set_value' [-Werror,-Wimplicit-function-declaration] gpiod_set_value(chip->ldac_pin, 0); ^ drivers/staging/iio/addac/adt7316.c:947:3: note: did you mean 'gpio_set_value'? include/linux/gpio.h:169:20: note: 'gpio_set_value' declared here static inline void gpio_set_value(unsigned gpio, int value) ^ drivers/staging/iio/addac/adt7316.c:947:3: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes] gpiod_set_value(chip->ldac_pin, 0); ^ drivers/staging/iio/addac/adt7316.c:1805:13: error: implicit declaration of function 'irqd_get_trigger_type' [-Werror,-Wimplicit-function-declaration] irq_type = irqd_get_trigger_type(irq_get_irq_data(chip->bus.irq)); Include the correct headers that contain the declarations for these functions. Fixes: c63460c4298f ("Staging: iio: adt7316: Use device tree data to set ldac_pin") Signed-off-by: Arnd Bergmann --- drivers/staging/iio/addac/adt7316.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.20.0 diff --git a/drivers/staging/iio/addac/adt7316.c b/drivers/staging/iio/addac/adt7316.c index 37ce563cb0e1..9cb3d0e42c38 100644 --- a/drivers/staging/iio/addac/adt7316.c +++ b/drivers/staging/iio/addac/adt7316.c @@ -6,7 +6,8 @@ */ #include -#include +#include +#include #include #include #include