From patchwork Tue Jan 15 23:06:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 1025538 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="e71LPwDt"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 43fQvp1SJ2z9sDr for ; Wed, 16 Jan 2019 10:07:02 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390405AbfAOXHA (ORCPT ); Tue, 15 Jan 2019 18:07:00 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:39245 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730374AbfAOXG7 (ORCPT ); Tue, 15 Jan 2019 18:06:59 -0500 Received: by mail-ed1-f66.google.com with SMTP id b14so3953423edt.6; Tue, 15 Jan 2019 15:06:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2tlvHHTliWPEKYE42LEKdctKb5h1abooAbKy1jd2DTU=; b=e71LPwDts3xwVnVibDhJ+z1GobKPIutDfRzJzSJM1qHk9lbMS1t/dMEPawM8Y5B7oj tZdYWnHPZd/JRpOSaEqi719AO4zIz+dK+FQEnlgySo8J4xPwXfNOVfAzey1MwR4DY+8o 9ssDKvoeABY1sn68mNHylVriqtf5k3d16Gyd4Zz9yRyiYuJKk1dGxdHG5tTF+EOlkR4b 17fb9ltNvvif2VRmQR5cVfEF6cZKBMRwMA6cTAPE0gefU/l5FRQuTUbmNajGZi/33nYR egGPRSx97Qu6G+XGfQzVmLlBg2G9SawFpBqopStzR/T9k/9fa4PX6OvpDtoIczqmhHg/ gR6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=2tlvHHTliWPEKYE42LEKdctKb5h1abooAbKy1jd2DTU=; b=bb8n3bbdwT5C4Jl7/O+LCvxjYNOPT5/5QLVlw6z1K6oA2wEBT5YjjmA0km5Iat0ZRJ L6WWym5LI1RwB22nWVpYg/VUqJjO428ngUZDL50IMRuU5wsfpbxMnijc45BRRhMNBWcB HzcmtGMm/D9C3zAgRaCEkIMSK3bCKdmhcNH+zS8lQdGrCs3xouRkM9OdTLYUdSn1z+s3 9YUN0w5R3kZo4hu1K9pgxS7/q2RyIpOaYVMRUppQeE/wX7qmjolsU/V5m4asqX+uIogV F1AhrGBwQomRWCDnNiZ5y5KuxlGIkYXglZSGk6z4rrZi4f4VsXDqd4goFhiN6zX1py2B w7oA== X-Gm-Message-State: AJcUukcd3EVLgeRF2ezTGzExHxE23hGOgmmVH/o0SbQuzoqKkdjovKF4 uFeMafUXaWvUrJ6v9PgpbuiPj79Q X-Google-Smtp-Source: ALg8bN6wGPula9sQ6HSp8FmKuxJHahRGy9mVKZ+/C43mOVaqh/Z+RPCkdmcoQuiymNkwpf2KFM5NHA== X-Received: by 2002:a50:d643:: with SMTP id c3mr4986590edj.178.1547593616652; Tue, 15 Jan 2019 15:06:56 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.250]) by smtp.gmail.com with ESMTPSA id v14sm4872324edq.74.2019.01.15.15.06.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Jan 2019 15:06:55 -0800 (PST) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Gregory Clement , Russell King , Vivien Didelot , "David S. Miller" , Mauro Carvalho Chehab , Greg Kroah-Hartman , Andrew Morton , Nicolas Ferre , Arnd Bergmann , linux-kernel@vger.kernel.org (open list), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Marvell Dove/MV78xx0/Orion SOC support) Subject: [PATCH net-next 1/3] net: dsa: Split platform data to header file Date: Tue, 15 Jan 2019 15:06:11 -0800 Message-Id: <20190115230613.28334-2-f.fainelli@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190115230613.28334-1-f.fainelli@gmail.com> References: <20190115230613.28334-1-f.fainelli@gmail.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Instead of having net/dsa.h contain both the internal switch tree/driver structures, split the relevant platform_data parts into include/linux/platform_data/dsa.h and make that header be included by net/dsa.h in order not to break any setup. A subsequent set of patches will update code including net/dsa.h to include only the platform_data header. Signed-off-by: Florian Fainelli --- MAINTAINERS | 1 + include/linux/platform_data/dsa.h | 68 +++++++++++++++++++++++++++++++ include/net/dsa.h | 61 +-------------------------- 3 files changed, 70 insertions(+), 60 deletions(-) create mode 100644 include/linux/platform_data/dsa.h diff --git a/MAINTAINERS b/MAINTAINERS index 4d04cebb4a71..a592b9992b46 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10576,6 +10576,7 @@ F: Documentation/devicetree/bindings/net/dsa/ F: net/dsa/ F: include/net/dsa.h F: include/linux/dsa/ +F: include/linux/platform_data/dsa.h F: drivers/net/dsa/ NETWORKING [GENERAL] diff --git a/include/linux/platform_data/dsa.h b/include/linux/platform_data/dsa.h new file mode 100644 index 000000000000..d4d9bf2060a6 --- /dev/null +++ b/include/linux/platform_data/dsa.h @@ -0,0 +1,68 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __DSA_PDATA_H +#define __DSA_PDATA_H + +struct device; +struct net_device; + +#define DSA_MAX_SWITCHES 4 +#define DSA_MAX_PORTS 12 +#define DSA_RTABLE_NONE -1 + +struct dsa_chip_data { + /* + * How to access the switch configuration registers. + */ + struct device *host_dev; + int sw_addr; + + /* + * Reference to network devices + */ + struct device *netdev[DSA_MAX_PORTS]; + + /* set to size of eeprom if supported by the switch */ + int eeprom_len; + + /* Device tree node pointer for this specific switch chip + * used during switch setup in case additional properties + * and resources needs to be used + */ + struct device_node *of_node; + + /* + * The names of the switch's ports. Use "cpu" to + * designate the switch port that the cpu is connected to, + * "dsa" to indicate that this port is a DSA link to + * another switch, NULL to indicate the port is unused, + * or any other string to indicate this is a physical port. + */ + char *port_names[DSA_MAX_PORTS]; + struct device_node *port_dn[DSA_MAX_PORTS]; + + /* + * An array of which element [a] indicates which port on this + * switch should be used to send packets to that are destined + * for switch a. Can be NULL if there is only one switch chip. + */ + s8 rtable[DSA_MAX_SWITCHES]; +}; + +struct dsa_platform_data { + /* + * Reference to a Linux network interface that connects + * to the root switch chip of the tree. + */ + struct device *netdev; + struct net_device *of_netdev; + + /* + * Info structs describing each of the switch chips + * connected via this network interface. + */ + int nr_chips; + struct dsa_chip_data *chip; +}; + + +#endif /* __DSA_PDATA_H */ diff --git a/include/net/dsa.h b/include/net/dsa.h index b3eefe8e18fd..6178b648d08a 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -21,6 +21,7 @@ #include #include #include +#include #include #include @@ -44,66 +45,6 @@ enum dsa_tag_protocol { DSA_TAG_LAST, /* MUST BE LAST */ }; -#define DSA_MAX_SWITCHES 4 -#define DSA_MAX_PORTS 12 - -#define DSA_RTABLE_NONE -1 - -struct dsa_chip_data { - /* - * How to access the switch configuration registers. - */ - struct device *host_dev; - int sw_addr; - - /* - * Reference to network devices - */ - struct device *netdev[DSA_MAX_PORTS]; - - /* set to size of eeprom if supported by the switch */ - int eeprom_len; - - /* Device tree node pointer for this specific switch chip - * used during switch setup in case additional properties - * and resources needs to be used - */ - struct device_node *of_node; - - /* - * The names of the switch's ports. Use "cpu" to - * designate the switch port that the cpu is connected to, - * "dsa" to indicate that this port is a DSA link to - * another switch, NULL to indicate the port is unused, - * or any other string to indicate this is a physical port. - */ - char *port_names[DSA_MAX_PORTS]; - struct device_node *port_dn[DSA_MAX_PORTS]; - - /* - * An array of which element [a] indicates which port on this - * switch should be used to send packets to that are destined - * for switch a. Can be NULL if there is only one switch chip. - */ - s8 rtable[DSA_MAX_SWITCHES]; -}; - -struct dsa_platform_data { - /* - * Reference to a Linux network interface that connects - * to the root switch chip of the tree. - */ - struct device *netdev; - struct net_device *of_netdev; - - /* - * Info structs describing each of the switch chips - * connected via this network interface. - */ - int nr_chips; - struct dsa_chip_data *chip; -}; - struct packet_type; struct dsa_switch; From patchwork Tue Jan 15 23:06:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 1025541 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="jJNovvbt"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 43fQw52Gzkz9sBZ for ; Wed, 16 Jan 2019 10:07:17 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390652AbfAOXHE (ORCPT ); Tue, 15 Jan 2019 18:07:04 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:36774 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390541AbfAOXHD (ORCPT ); Tue, 15 Jan 2019 18:07:03 -0500 Received: by mail-ed1-f65.google.com with SMTP id f23so3972190edb.3; Tue, 15 Jan 2019 15:07:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=1h9d9A95Fr5hAd0WXvQzD83nIGqZQnGK3nipgpZF0Kw=; b=jJNovvbt1uZsPOb/cQuvDRQ42pCBFWyGb/Cm188BfcTgsor9rwdZHm7jElTl2SDRqm NB/Ve4H+LlflNHnvYSz0Y+vSOPSCXcJZ1xljxqvyaAfN/lN8IoUsdnEfPVfyonVwfYUo fsI3UI2rrJ3zOeftN+EsZc0eEyoqsmkjAwLYVchS33OmsIOBzkmR4bZvUoZyNZnvNVHP btEe30buHizz8k54le5a3+PgfS8AcfmdorqsiqhkdPH4o/dzIo0GCr5XgOCbjHOXDrqN b7bbzKjgSBu9r/nOuAyesddWm6n06t4h+xWasY/967HDamQQsIhoUgqi//i8ao7JB7Ms P7zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=1h9d9A95Fr5hAd0WXvQzD83nIGqZQnGK3nipgpZF0Kw=; b=JMiZZt+8gMZ7Wc7VZS1CwiccuGh+jPLvt7mfSDcntPQGkv3oOrt7GPUYpH6IcEhYeQ J+4N6p0sLmRHoHz+yXd3PFUKDEXvWG7jC+YYsVvxJnrgDEpSPYezwwFENaOxmY6NvVk3 HhJDVIdWjO4mZ/yTH/YZgNxVbKciidYXw+oF9B0Bu8mKcWKDiSnzn3L5MXOfkmn72hjW bSOFD/s3Ye7+t/b9Qw8flaIa+vj/cZcKDXta5PcXWTWcTOv9CsLMw+xnacKy88T7gKD6 QIoBTAyJn7t8LCt6YFA74ZO8GEdBSCz6JNeBHVI1/6bXSkpd3RSzspwzr4DaCmNvyhCW O1gQ== X-Gm-Message-State: AJcUukeewYoX+nawE5IyZ0/0JEqU8dVjcfM0hIOjZ6/rc1fky7nSr8/C eXLtKL7Qrx1Eg6oiU95U/6GYjcVo X-Google-Smtp-Source: ALg8bN4CoK9QUQYQICNKjAvjY9JDX2Ax8MEFLndlp9aNBrzwQwpFcK5zg6qJOe0wteenxoHSWo2fyA== X-Received: by 2002:a50:8f44:: with SMTP id 62mr5050087edy.264.1547593620497; Tue, 15 Jan 2019 15:07:00 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.250]) by smtp.gmail.com with ESMTPSA id v14sm4872324edq.74.2019.01.15.15.06.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Jan 2019 15:06:59 -0800 (PST) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Gregory Clement , Russell King , Vivien Didelot , "David S. Miller" , Mauro Carvalho Chehab , Greg Kroah-Hartman , Andrew Morton , Nicolas Ferre , Arnd Bergmann , linux-kernel@vger.kernel.org (open list), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Marvell Dove/MV78xx0/Orion SOC support) Subject: [PATCH net-next 2/3] ARM: orion5x: Include platform_data/dsa.h Date: Tue, 15 Jan 2019 15:06:12 -0800 Message-Id: <20190115230613.28334-3-f.fainelli@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190115230613.28334-1-f.fainelli@gmail.com> References: <20190115230613.28334-1-f.fainelli@gmail.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Now that we have split the DSA platform data structures from the main net/dsa.h header file, include only the relevant header file. Signed-off-by: Florian Fainelli --- arch/arm/mach-orion5x/common.c | 2 +- arch/arm/mach-orion5x/rd88f5181l-fxo-setup.c | 2 +- arch/arm/mach-orion5x/rd88f5181l-ge-setup.c | 2 +- arch/arm/mach-orion5x/rd88f6183ap-ge-setup.c | 2 +- arch/arm/mach-orion5x/wnr854t-setup.c | 2 +- arch/arm/mach-orion5x/wrt350n-v2-setup.c | 2 +- arch/arm/plat-orion/common.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-orion5x/common.c b/arch/arm/mach-orion5x/common.c index 83a7ec4c16d0..c67f92bfa30e 100644 --- a/arch/arm/mach-orion5x/common.c +++ b/arch/arm/mach-orion5x/common.c @@ -20,7 +20,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/arch/arm/mach-orion5x/rd88f5181l-fxo-setup.c b/arch/arm/mach-orion5x/rd88f5181l-fxo-setup.c index a3c1336d30c9..c65ab7db36ad 100644 --- a/arch/arm/mach-orion5x/rd88f5181l-fxo-setup.c +++ b/arch/arm/mach-orion5x/rd88f5181l-fxo-setup.c @@ -16,7 +16,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/arch/arm/mach-orion5x/rd88f5181l-ge-setup.c b/arch/arm/mach-orion5x/rd88f5181l-ge-setup.c index 252efe29bd1a..76b8138d9d79 100644 --- a/arch/arm/mach-orion5x/rd88f5181l-ge-setup.c +++ b/arch/arm/mach-orion5x/rd88f5181l-ge-setup.c @@ -17,7 +17,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/arch/arm/mach-orion5x/rd88f6183ap-ge-setup.c b/arch/arm/mach-orion5x/rd88f6183ap-ge-setup.c index f4f1dbe1d91d..5f388a1ed1e4 100644 --- a/arch/arm/mach-orion5x/rd88f6183ap-ge-setup.c +++ b/arch/arm/mach-orion5x/rd88f6183ap-ge-setup.c @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/arch/arm/mach-orion5x/wnr854t-setup.c b/arch/arm/mach-orion5x/wnr854t-setup.c index d162d4c7f85d..83589a28a491 100644 --- a/arch/arm/mach-orion5x/wnr854t-setup.c +++ b/arch/arm/mach-orion5x/wnr854t-setup.c @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/arch/arm/mach-orion5x/wrt350n-v2-setup.c b/arch/arm/mach-orion5x/wrt350n-v2-setup.c index 9250bb2e429c..cea08d4a2597 100644 --- a/arch/arm/mach-orion5x/wrt350n-v2-setup.c +++ b/arch/arm/mach-orion5x/wrt350n-v2-setup.c @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/arch/arm/plat-orion/common.c b/arch/arm/plat-orion/common.c index a2399fd66e97..a6c81ce00f52 100644 --- a/arch/arm/plat-orion/common.c +++ b/arch/arm/plat-orion/common.c @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include #include #include From patchwork Tue Jan 15 23:06:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 1025540 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="qjUwiyRL"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 43fQw05VVcz9sBZ for ; Wed, 16 Jan 2019 10:07:12 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391003AbfAOXHH (ORCPT ); Tue, 15 Jan 2019 18:07:07 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:37157 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390789AbfAOXHG (ORCPT ); Tue, 15 Jan 2019 18:07:06 -0500 Received: by mail-ed1-f66.google.com with SMTP id h15so3971479edb.4; Tue, 15 Jan 2019 15:07:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UQAA3Ut6YFsPVuhZBWfqe7hEeAposMkejlSNoa7Mf8Y=; b=qjUwiyRLUKf7WfKrydQV0xFV8R5Bsu8dKuVOrpv39WO7/4CRbceXcNS/Gp/rwQ+Bfw h7Lz+RtGPyfoXuENkFkKBsa5YUXa6PsDWo7WzbKd/c/b5HT1GGJZaXqjh3JlCHR/X28C 0e/DkmhKpVHjoMJFydH9g1Q1neGh3BdbEsvnFbOAJiltmdIwVztTvXhbVNYvcGrU4DMD 7OPY5bUILzOHqejROQjt0UCDXmePBN58P2lXjbdJ//0q+uG5piipWajsA1yKOl5NOGzD qsSkxFfND7+tUD5ksqMzF1aRA7r9q1lDhfoGHptSmYdi06++KqBKj2DdEm434Lm/pBlc xNrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UQAA3Ut6YFsPVuhZBWfqe7hEeAposMkejlSNoa7Mf8Y=; b=dlDkKe3zRmEqgT5jjcgvZ1rh8mU56YsZ0MIjVPygYMO+V9D2ToaY8m/OD5kcu/jw2l ppjFxZalLgD/v8TCI0Zb5wQoXPNcRxMXUuFH8/CEqFNOMSssRftPWCPctwteq5fVypF2 uOwyqAT7C1wUK2fMDhO3iWAh4Zl+j/YVqRE9yir9EKyZTfkY1eqHVvj+zX7CC90Eiqia pGlSfjY3mhT9+ri05+iMNoJE8p7eGiy1Ds9xD6nL/obgdXLtmvpsZWa42tOXLDUQHnAe XnxweJ8Y/YFSQmxVFHmvltUqryM5wz+2n04suXb3ipT5+UY0rN0A5sVGlcRA/0VcQJNC o0rQ== X-Gm-Message-State: AJcUuke3hUepZsoDw35l7sIogd3fHxKmyRhNvM22ihgMJi2Gj4xi6Xso JLuJdOQR0PJ3/b7V/lMp1mbArfOG X-Google-Smtp-Source: ALg8bN7JnPCJuM1bTRgiyzGJV7bkmRHW/IHDYioKHPv318RLtooeaRQ2eBn6StjntxQiGISiklJurQ== X-Received: by 2002:aa7:d35a:: with SMTP id m26mr5008869edr.244.1547593624494; Tue, 15 Jan 2019 15:07:04 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.250]) by smtp.gmail.com with ESMTPSA id v14sm4872324edq.74.2019.01.15.15.07.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Jan 2019 15:07:03 -0800 (PST) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Gregory Clement , Russell King , Vivien Didelot , "David S. Miller" , Mauro Carvalho Chehab , Greg Kroah-Hartman , Andrew Morton , Nicolas Ferre , Arnd Bergmann , linux-kernel@vger.kernel.org (open list), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Marvell Dove/MV78xx0/Orion SOC support) Subject: [PATCH net-next 3/3] net: dsa: Include platform_data header file Date: Tue, 15 Jan 2019 15:06:13 -0800 Message-Id: <20190115230613.28334-4-f.fainelli@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190115230613.28334-1-f.fainelli@gmail.com> References: <20190115230613.28334-1-f.fainelli@gmail.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org b53 and mv88e6xxx support passing platform_data, and now that we have split the platform_data portion from the main net/dsa.h header file, include only the relevant parts. Signed-off-by: Florian Fainelli --- include/linux/platform_data/b53.h | 2 +- include/linux/platform_data/mv88e6xxx.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/platform_data/b53.h b/include/linux/platform_data/b53.h index 8eaef2f2b691..c3b61ead41f2 100644 --- a/include/linux/platform_data/b53.h +++ b/include/linux/platform_data/b53.h @@ -20,7 +20,7 @@ #define __B53_H #include -#include +#include struct b53_platform_data { /* Must be first such that dsa_register_switch() can access it */ diff --git a/include/linux/platform_data/mv88e6xxx.h b/include/linux/platform_data/mv88e6xxx.h index f63af2955ea0..963730b44aea 100644 --- a/include/linux/platform_data/mv88e6xxx.h +++ b/include/linux/platform_data/mv88e6xxx.h @@ -2,7 +2,7 @@ #ifndef __DSA_MV88E6XXX_H #define __DSA_MV88E6XXX_H -#include +#include struct dsa_mv88e6xxx_pdata { /* Must be first, such that dsa_register_switch() can access this