From patchwork Mon Dec 18 01:09:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 10118103 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 6AA2B60392 for ; Mon, 18 Dec 2017 01:10:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 51FAD28F9B for ; Mon, 18 Dec 2017 01:10:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 46DE628FDD; Mon, 18 Dec 2017 01:10:05 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 8530728FDF for ; Mon, 18 Dec 2017 01:10:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757583AbdLRBKD (ORCPT ); Sun, 17 Dec 2017 20:10:03 -0500 Received: from merlin.infradead.org ([205.233.59.134]:33048 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757194AbdLRBKC (ORCPT ); Sun, 17 Dec 2017 20:10:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Date:Message-ID:Subject:From:Cc:To:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=2Ogi1EKOfov2RDu61d8jZwSnwQBs4Mojrt9BN6LkLJM=; b=FHRTjOorlVFdjVxdYgskUPmaQn ovOZ6uIeOSRZGF9PkLmhFugQiTEBvWDWXIgob3vwrTr4DLF1ZOInvvwNFW52Hss9T6wB/8sBnWG8s f63S5f2bZsA3J2RQ74azmGGTg2OuM0WdiIaCSy+/lQjyJ/uBd5HeFOnW01sC+74onihrcxa19ksib 0tOKFofnqQSJUVGirdXJBzZ/OUA/lXbY9DfIgyTUo5+sOmFDcqpSONb2Wjn9GXyZjafoGyXwvQi1a Go5xzgV7Sl/y8nIGFkk8x6HS8NheufpL5FJmytIEsKVT1wiUgu285lh5anAnAkOJHKZh5uTsoL/Lu AJluJqJg==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlap) by merlin.infradead.org with esmtpsa (Exim 4.87 #1 (Red Hat Linux)) id 1eQjwI-0004h9-BP; Mon, 18 Dec 2017 01:09:54 +0000 To: "linux-input@vger.kernel.org" , Dmitry Torokhov Cc: LKML , kbuild test robot , Anthony Kim From: Randy Dunlap Subject: [PATCH] input/touchscreen: fix hideep.c build errors Message-ID: <3cafbae1-1377-3e4f-173e-76ca2a3a1e17@infradead.org> Date: Sun, 17 Dec 2017 17:09:52 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 Content-Language: en-US Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Randy Dunlap Fix build errors due to missing header file. Fixes these build errors: drivers/input//touchscreen/hideep.c: In function 'hideep_power_on': drivers/input//touchscreen/hideep.c:670:3: error: implicit declaration of function 'gpiod_set_value_cansleep'; did you mean 'gpio_set_value_cansleep'? [-Werror=implicit-function-declaration] gpiod_set_value_cansleep(ts->reset_gpio, 0); drivers/input//touchscreen/hideep.c: In function 'hideep_power_off': drivers/input//touchscreen/hideep.c:688:3: error: implicit declaration of function 'gpiod_set_value'; did you mean 'gpio_set_value'? [-Werror=implicit-function-declaration] gpiod_set_value(ts->reset_gpio, 1); drivers/input//touchscreen/hideep.c: In function 'hideep_probe': drivers/input//touchscreen/hideep.c:1039:19: error: implicit declaration of function 'devm_gpiod_get_optional'; did you mean 'devm_regulator_get_optional'? [-Werror=implicit-function-declaration] ts->reset_gpio = devm_gpiod_get_optional(&client->dev, drivers/input//touchscreen/hideep.c:1040:17: error: 'GPIOD_OUT_HIGH' undeclared (first use in this function); did you mean 'GPIOF_INIT_HIGH'? "reset", GPIOD_OUT_HIGH); Signed-off-by: Randy Dunlap Reported-by: kbuild test robot Cc: Anthony Kim Cc: Dmitry Torokhov Cc: linux-input@vger.kernel.org --- drivers/input/touchscreen/hideep.c | 1 + 1 file changed, 1 insertion(+) -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- lnx-415-rc3.orig/drivers/input/touchscreen/hideep.c +++ lnx-415-rc3/drivers/input/touchscreen/hideep.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include