From patchwork Fri Feb 24 18:30:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 9590941 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 258F66042B for ; Fri, 24 Feb 2017 18:30:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1994C286E0 for ; Fri, 24 Feb 2017 18:30:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0DFDC287EE; Fri, 24 Feb 2017 18:30:27 +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 A2E20286E0 for ; Fri, 24 Feb 2017 18:30:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751232AbdBXSaZ (ORCPT ); Fri, 24 Feb 2017 13:30:25 -0500 Received: from merlin.infradead.org ([205.233.59.134]:59324 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751221AbdBXSaZ (ORCPT ); Fri, 24 Feb 2017 13:30:25 -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:From:Cc:Subject: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=HqmnrGytYOwBqdElSg2AYQVJqxg2/5l7qOHFF4OoSF0=; b=zNfoJ6nkMquYFv451TI3wA6enx mDv8WsIuBWtQzpVaY5CIc02XVUM62FhuDB0FrPbEbOs4R+99i49tp+NSZl6ZRvt5luTB8mjkqi++X x1i+HzxFdC3zesCKwMzIAYfzUfHU/VQCuFQvH7xqugbCw72YXl+CJUeUv0Blihec3MAAa/4+V+eGZ 0Sj4274eEWrmylTJj+Ak7qJ3gq7YGtI5cF/TBg5xkF8LnhopBJagD7YbRivHidd7YArxzpoXjKeGa UA+JH54vdFfA3iBDEyc/KdP/fppKUZ0tbV0j7Kw9ma2pW413c0reZJPF+hcQute8/GJ0JqaiwoJpt ZSW9RnCg==; Received: from static-50-53-43-78.bvtn.or.frontiernet.net ([50.53.43.78] helo=[192.168.1.19]) by merlin.infradead.org with esmtpsa (Exim 4.87 #1 (Red Hat Linux)) id 1chKdL-0004pT-8Q; Fri, 24 Feb 2017 18:30:23 +0000 To: "linux-input@vger.kernel.org" , Dmitry Torokhov Subject: [PATCH -next] input/touchscreen: add header file to fix ad7879.c build errors Cc: LKML , Michael Hennerich From: Randy Dunlap Message-ID: <25206b81-0f8c-8d40-32ad-e6ad5c03098d@infradead.org> Date: Fri, 24 Feb 2017 10:30:22 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 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 From: Randy Dunlap Add header file to fix these build errors: ../drivers/input/touchscreen/ad7879.c: In function 'ad7879_parse_dt': ../drivers/input/touchscreen/ad7879.c:505:2: error: implicit declaration of function 'device_property_read_u32' [-Werror=implicit-function-declaration] err = device_property_read_u32(dev, "adi,resistance-plate-x", &tmp); ^ ../drivers/input/touchscreen/ad7879.c:512:2: error: implicit declaration of function 'device_property_read_u8' [-Werror=implicit-function-declaration] device_property_read_u8(dev, "adi,first-conversion-delay", ^ ../drivers/input/touchscreen/ad7879.c:521:2: error: implicit declaration of function 'device_property_read_bool' [-Werror=implicit-function-declaration] ts->swap_xy = device_property_read_bool(dev, "touchscreen-swapped-x-y"); ^ Signed-off-by: Randy Dunlap Cc: Dmitry Torokhov Cc: linux-input@vger.kernel.org Cc: Michael Hennerich --- drivers/input/touchscreen/ad7879.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 --- linux-next-20170224.orig/drivers/input/touchscreen/ad7879.c +++ linux-next-20170224/drivers/input/touchscreen/ad7879.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include