From patchwork Fri Feb 17 14:41:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9579955 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 969F9600F6 for ; Fri, 17 Feb 2017 14:42:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 85560286EC for ; Fri, 17 Feb 2017 14:42:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7917A286F4; Fri, 17 Feb 2017 14:42:48 +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.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 200CB286EC for ; Fri, 17 Feb 2017 14:42:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934094AbdBQOmr (ORCPT ); Fri, 17 Feb 2017 09:42:47 -0500 Received: from mout.kundenserver.de ([212.227.126.133]:60496 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933993AbdBQOmq (ORCPT ); Fri, 17 Feb 2017 09:42:46 -0500 Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.129]) with ESMTPA (Nemesis) id 0MZsqM-1cwwoa3kVi-00LZXd; Fri, 17 Feb 2017 15:42:31 +0100 From: Arnd Bergmann To: Bartlomiej Zolnierkiewicz , Tomi Valkeinen Cc: Arnd Bergmann , Jyri Sarha , LABBE Corentin , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] fbdev: ssd1307fb: include linux/gpio/consumer.h Date: Fri, 17 Feb 2017 15:41:42 +0100 Message-Id: <20170217144226.2250882-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:pCilEfBQhUG+2smi9LY5pUaBolWaRtk+c6mVcpGlCnowqLjD15C KoPu6Nfb9lrReOZyhIYj7yP94g++Z1KobZvJwHqXYt0nWUm/q2ndqxnjK/wTpRYQFvo1/zc Dan/Tna2j8G5yHsiozpJ4pUVPXmLc9N3yIpnlD2kAeWutXdACmqTF4KpiN3j9a8ufGgVw+m EPdiGMdEb55O/I/zT/ICw== X-UI-Out-Filterresults: notjunk:1; V01:K0:MUxT9lNjvHI=:D8+WZHaQb8NJMMiGhlQSa/ uC6+1+zTzvLozhRk1aTicdtIunEfKtu+gltlUCxrNguyBqGRwGSayarlxbLxM27Cdje/MIcnt HT7hBCHPxDg9jXsyVxJCxWxANAXaGuTNmqAKxlY4o3O9mMzI/9q7uLnrO083rbRH16QZLLz3C +kELZqIXndr57KCxLO9WT7V1WyB9dfxE93Ve4gJasO8qnnoPYLdlKA/ZctHl2uTjq/MIHnEZK xoYRTWJOIoVnWP+Fg2Su8qp4xZD5Z2rrPIIFs8oKw5PGZFQ1D8vLLMUfO9pcibTJ6DYdWAF0F 8flBNEKGIy2KE3Xav2Wi+otzK7s/IOkTsksy3C+8r1nSz0FUB9N89gKYK4Zt7xJanm5cE5VIn OJ9IYrfoBmri+LNpoKeYC/zTLmNXgXSZEBmN3gB6jD8jxopJYoTMMlNvZxmR8F8xfS5urvkmK FoMVAF61e9TB3zG8y+HyTemxUaHLt2F5iiHZ3Iu4/1PPEBSKWonAZfM0l36MA/tcfOCBZo2Oa s4IqKuUQtVghlm8YNGRlum/P+99Nm6fPZd6vKtBva7U9vmYuwN236DGxyYtsrF3+4C+a29eME Qu/ET1wBSobkcU9AFA67u6GnWdS5eMy9NGlhivud1gUx59d2JfkIgZKVpo3rdoUls6bKAKKQS SHDRJF4nDyeSNDwfta+CU6X0pUBRI498YmOq0sTlqZqtbuZlv/DPapT4/ivTVxaQtKhM= Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Changing this driver to the gpiod API requires the use of the new-style header, depending on the configuration: drivers/video/fbdev/ssd1307fb.c: In function 'ssd1307fb_probe': drivers/video/fbdev/ssd1307fb.c:569:15: error: implicit declaration of function 'devm_gpiod_get_optional';did you mean 'devm_regulator_get_optional'? [-Werror=implicit-function-declaration] drivers/video/fbdev/ssd1307fb.c:570:11: error: 'GPIOD_OUT_LOW' undeclared (first use in this function) Fixes: 72db33355c14 ("fbdev: ssd1307fb: Start to use gpiod API for reset gpio") Signed-off-by: Arnd Bergmann --- drivers/video/fbdev/ssd1307fb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c index 5c87ae4bac6a..bd017b57c47f 100644 --- a/drivers/video/fbdev/ssd1307fb.c +++ b/drivers/video/fbdev/ssd1307fb.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include