From patchwork Wed Feb 13 11:19:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger-Novakovic X-Patchwork-Id: 10809637 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 74C2A1390 for ; Wed, 13 Feb 2019 11:20:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 627E52CB84 for ; Wed, 13 Feb 2019 11:20:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 60F0E2CB8A; Wed, 13 Feb 2019 11:20:18 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 A5FAE2CBA9 for ; Wed, 13 Feb 2019 11:20:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403895AbfBMLUQ (ORCPT ); Wed, 13 Feb 2019 06:20:16 -0500 Received: from mout01.posteo.de ([185.67.36.65]:39708 "EHLO mout01.posteo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389152AbfBMLUQ (ORCPT ); Wed, 13 Feb 2019 06:20:16 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id D9CA116006A for ; Wed, 13 Feb 2019 12:20:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1550056813; bh=zyNtugu09Cir8nAdzxml8i5heMXlpldt05kZODO2jr0=; h=From:To:Cc:Subject:Date:From; b=XFvnLqDTbzPwSCRahGdP7PCyjs88iggf5HPmGDqeSYPJp3BC8LFu45Ln1yBLeiglH 1yCr2wFBSCwfGEfrwDkVzwuZbTZifyE58Zfsp9wRv2MSw9HzF2s37BnTkiIdneOBAL RLgq9cQns02vwztHH151RJCpwSU6otWWdkS7kKjjokKOqtFzhLddTlxTOv4z+pFn/Q 9PdC+kT+pziXnuAun8ObqsMFREA50XbAdPT7tiUPiEkil7bjnReozK9ioBq9OjIBGA IWbLYn4Q6iQr6P14sgmnsht8Zhq/SbwGiTixUQmIqKtt/JOj2KgjKPrwnpDl1ffXkb ZPVjHalk5vPfQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 43zxrr4Jcbz6tmK; Wed, 13 Feb 2019 12:20:12 +0100 (CET) From: Martin Kepplinger To: dmitry.torokhov@gmail.com, kuninori.morimoto.gx@renesas.com, linux-input@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Martin Kepplinger Subject: [PATCH] Input: st1232 - include gpio/consumer.h header for gpiod_set_value_cansleep() Date: Wed, 13 Feb 2019 12:19:58 +0100 Message-Id: <20190213111958.9031-1-martink@posteo.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <201902131841.xHSZ8Cvm%fengguang.wu@intel.com> References: <201902131841.xHSZ8Cvm%fengguang.wu@intel.com> MIME-Version: 1.0 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 gpiod_set_value_cansleep() needs it's declaration in the corresponding header. This fixes build errors like drivers/input/touchscreen/st1232.c: In function 'st1232_ts_power': >> drivers/input/touchscreen/st1232.c:146: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, !poweron); ^~~~~~~~~~~~~~~~~~~~~~~~ gpio_set_value_cansleep Signed-off-by: Martin Kepplinger --- drivers/input/touchscreen/st1232.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/touchscreen/st1232.c b/drivers/input/touchscreen/st1232.c index 1fbc0847416b..f4b7a4f1c366 100644 --- a/drivers/input/touchscreen/st1232.c +++ b/drivers/input/touchscreen/st1232.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include