Message ID | 20181127231449.29188-9-hauke@hauke-m.de |
---|---|
State | RFC |
Delegated to: | Hauke Mehrtens |
Headers | show
Return-Path: <openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=hauke-m.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="jtlcVCo2"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 434KR5027Lz9s55 for <incoming@patchwork.ozlabs.org>; Wed, 28 Nov 2018 10:16:17 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PwxIEvY4fKGsWI3dnXUGrtiw6TAWmMYpCY+MlNR7POU=; b=jtlcVCo2j96Fo8 uOzjkbR7pO/UFEefkjvcOTUL/QwyM4R7TjduSvalhWO93tKg5XaqsnwTYLRtG10s/ynF/TYtLUxa6 Heh8l1E/CCN5+wrDz7orWBSgVyKZdlvu0G+io1KXNho/gBqIZLtuN/yn5cFsl1/CDgIz641TxWlBK J5BCuXeaI00cEFJV22GkbD24xYfzHWt/Zy1nPeb+J4wsfVw4Lo2wmYfzc8ts9XYhEb6b91rzMeRYi ohViVBSukBHVGmIL/OMjEDOFgzN0G0KemZ1Vh2iak82XixipOx1gCBsu2mRpDj6rx27iHPGU7KxlS rCRVEbe1iyvMnvgmalHQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRmaQ-0007Qz-14; Tue, 27 Nov 2018 23:16:10 +0000 Received: from mx1.mailbox.org ([80.241.60.212]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRmZk-0006ub-Un for openwrt-devel@lists.openwrt.org; Tue, 27 Nov 2018 23:15:33 +0000 Received: from smtp1.mailbox.org (unknown [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 095E6447FA; Wed, 28 Nov 2018 00:15:13 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id jnkocQxGjjte; Wed, 28 Nov 2018 00:15:12 +0100 (CET) From: Hauke Mehrtens <hauke@hauke-m.de> To: openwrt-devel@lists.openwrt.org Date: Wed, 28 Nov 2018 00:14:30 +0100 Message-Id: <20181127231449.29188-9-hauke@hauke-m.de> In-Reply-To: <20181127231449.29188-1-hauke@hauke-m.de> References: <20181127231449.29188-1-hauke@hauke-m.de> X-Bad-Reply: References and In-Reply-To but no 'Re:' in Subject. X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181127_151529_179360_76917AEE X-CRM114-Status: GOOD ( 11.72 ) X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [80.241.60.212 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record Subject: [OpenWrt-Devel] [RFC 08/27] i2c-gpio-custom: Adapt to moved include file X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <openwrt-devel.lists.openwrt.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/openwrt-devel/> List-Post: <mailto:openwrt-devel@lists.openwrt.org> List-Help: <mailto:openwrt-devel-request@lists.openwrt.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe> Cc: Hauke Mehrtens <hauke@hauke-m.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "openwrt-devel" <openwrt-devel-bounces@lists.openwrt.org> Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org |
Series |
Add support for kernel 4.19
|
expand
|
diff --git a/package/kernel/i2c-gpio-custom/src/i2c-gpio-custom.c b/package/kernel/i2c-gpio-custom/src/i2c-gpio-custom.c index 921d290d52..f9917e52fd 100644 --- a/package/kernel/i2c-gpio-custom/src/i2c-gpio-custom.c +++ b/package/kernel/i2c-gpio-custom/src/i2c-gpio-custom.c @@ -47,7 +47,12 @@ #include <linux/init.h> #include <linux/platform_device.h> +#include <linux/version.h> +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 0) #include <linux/i2c-gpio.h> +#else +#include <linux/platform_data/i2c-gpio.h> +#endif #define DRV_NAME "i2c-gpio-custom" #define DRV_DESC "Custom GPIO-based I2C driver"
The i2c-gpio.h file was moved in kernel 4.18. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> --- package/kernel/i2c-gpio-custom/src/i2c-gpio-custom.c | 5 +++++ 1 file changed, 5 insertions(+)