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: 124950 Delivered-To: patch@linaro.org Received: by 10.46.64.27 with SMTP id n27csp122501lja; Thu, 18 Jan 2018 05:18:49 -0800 (PST) X-Google-Smtp-Source: ACJfBotMIhipZFlI9W+jfP4iItHuUKjddnL/GXrU0oZsFycITSXJKFikY+4zmOy7Q/cqRxVAxPWD X-Received: by 10.101.78.12 with SMTP id r12mr10908457pgt.33.1516281529659; Thu, 18 Jan 2018 05:18:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516281529; cv=none; d=google.com; s=arc-20160816; b=U8ctGWde6Nj/fXud6YHOdYvAxiKSVr2bs1lBrvtNMOyaMYCwls8SkQGRAwqRsJ0Mam 08mj73EqKxL+UqNDAE+NsXi/XxPPuTekQ8y+ugkxjKyvdEZVk5WqBouAxTkQHuYXGGGQ c7QIfPFcfTtvbe5r37NsRL4zXxbedmYIfb2aIZGIZ0G8F88SiuH6zMCamw+ONkHqPonR eYjQVXf3EOtz8YqwwHnq07pF8T3mlmnvhaAv0hWu8TW6Bbyo4dzzIDv11+1iJGs8gDQl YOS45T9j1xHTFUwAMhJmxSenwKQqoWXOvaeUw6IrQiv7aYZSFiIA5S2nGwl6JqhGU4fK JqHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=wFprRQ2pv0nO5nZkKt+E6X5ZtGr28nQhuemXFY8WOiQ=; b=Vqu8AHW2Q46SVhrW9nyXMMJ05ApaRrOGNlTq/HtsZuJIv+KoFqBslyIZrEcJXFSUtR tSTqKt+cclSCSJ6f9ry/Hms/90d2YrIdCzaaYvSXSxw7ZSxjsMuqgiWeefZ7Gfljc46e jfJjmooAPdCjCquQjwt4cYWTHNyo3dx1sbpatDEt2ZIlMEPpKkt5m2fi2sC9vTfZE2Fv /2h0sWYvM7x3fcV6gpKgIxMMLdLtWjF879h4MkPa0BY7JKKdaca+8lEXVEQya+8wTjOR vEcB4mDRLLALUmdqPeuuF1rQaHvWrnJAkbkMBxN7hERxLaL80bqly5iYOgLJ332nkVtI arpQ== 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 m7si2552981pgr.233.2018.01.18.05.18.49; Thu, 18 Jan 2018 05:18:49 -0800 (PST) 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 S932456AbeARNSs (ORCPT + 28 others); Thu, 18 Jan 2018 08:18:48 -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-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qRlYey/W6nJ nhlR0/SaeStSExvgULv78A64JEC52fB5Utwauw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.9.0 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