From patchwork Thu Jan 18 13:18:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10173237 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 C361F603B5 for ; Thu, 18 Jan 2018 13:19:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B5670205F7 for ; Thu, 18 Jan 2018 13:19:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AA495208C2; Thu, 18 Jan 2018 13:19:03 +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=unavailable 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 406FC205F7 for ; Thu, 18 Jan 2018 13:19:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932426AbeARNSr (ORCPT ); Thu, 18 Jan 2018 08:18:47 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:58462 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932402AbeARNSk (ORCPT ); Thu, 18 Jan 2018 08:18:40 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.145]) with ESMTPA (Nemesis) id 0M8hqV-1eytjp3PEZ-00wE5s; Thu, 18 Jan 2018 14:18:30 +0100 From: Arnd Bergmann To: Wenyou Yang , Mauro Carvalho Chehab Cc: Arnd Bergmann , Sakari Ailus , Songjun Wu , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: i2c: ov7740: use gpio/consumer.h instead of gpio.h Date: Thu, 18 Jan 2018 14:18:12 +0100 Message-Id: <20180118131828.944700-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:NP8Qim7Z5VPZb8gP5BBjUSSw+CeroVlXv1KKsqXwD6nmzH3brb6 GSM+UFNWUwUJE7TOWXmjBNxwFivtoiFWSDReS43aRFhVjdssi5Sg64C/KGHn/Fkmo1twFX8 JTKTxh3VUkSXMkc79M63fvPFZglXXXUnfi1FAay5hGfjI0ohsy0Fazx/6eegBehi+WLuTFR 8l+PjcW/yws2tQ4V4uYVQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:j42c+drmSSs=:jfXsZkYERW8z+odBs/ndGn q5Q5L7Kw8/Pj8bkMMWMbqjUvqTd4TTww7CQrYvYfij1FrbQ0iKCNVQXJ/mHX34xpTSbqrl/ya GPx46+B//eQuGdL01fpkvSySYOTyfNyt9bqPBizacwSGPsQxWrjJ3UGCRlY2+Ru/bb6Z9VL0n aD1KzEhnl95Ewg/O6YABL/ANwkGJbwFawR73MdYaXnDYBW2ldNsNN0t7m6RYFP9AdhVPTqqCd rJkB0w715vmedtFnqXhILTE5S+Zh4uQPrfDxys1iaDM5L27htSTKMWIXc8UJ2r2gSTwwRfOSl 38vDjBp+xz8UndTwZx5zjFW4XXu8N6OmwvtwniTtX1Vcex4p7VtmdYCw7Qxi8f4N1qdW1P3Tz P4KLWfsBRWBhVa1yXTKlnA2JH5z5/tVaQR1xprsXrVUVszh+E2qqwAkwCgLcHV4Z64QBq9Gq8 DoTf9czv2Bm1JCDj3AzAYNkJEM556eSp5S0fItJGsdw5z7jRFxdxzA25I9oF9OwW+f0Kq8O3p 8dLOUVWJASKmyCWnThATDBpLtRFgyjFRPFjXqb5alt8aXM7aUB1+ZpweRuPSF1QpbDjIbSOib aVvrKz0tWVUyR/OMFwWb9kFBYl+IaqCbL8U4qofbbAXe7QHwyijLob9To+C8ueGBTEM8U4vfl wAIlCSTc7HBxkuQ0AhN/bbU0K8tDhkIELIFyOFJRDJQtv/6Cdzvlk4YqBJfcZyqRlYey/W6nJ nhlR0/SaeStSExvgULv78A64JEC52fB5Utwauw== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When built on a platform without gpiolib support, we run into a couple of compile errors in ov7740, including: drivers/media/i2c/ov7740.c: In function 'ov7740_set_power': drivers/media/i2c/ov7740.c:307:4: error: implicit declaration of function 'gpiod_direction_output'; did you mean 'gpio_direction_output'? [-Werror=implicit-function-declaration] gpiod_direction_output(ov7740->pwdn_gpio, 0); drivers/media/i2c/ov7740.c:914:4: error: 'GPIOD_OUT_HIGH' undeclared (first use in this function); did you mean 'GPIOF_INIT_HIGH'? Changing it to use the correct header file solves the problem. Fixes: 39c5c4471b8d ("media: i2c: Add the ov7740 image sensor driver") Signed-off-by: Arnd Bergmann --- drivers/media/i2c/ov7740.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/ov7740.c b/drivers/media/i2c/ov7740.c index 0308ba437bbb..0db107196d7a 100644 --- a/drivers/media/i2c/ov7740.c +++ b/drivers/media/i2c/ov7740.c @@ -3,7 +3,7 @@ #include #include -#include +#include #include #include #include