mirror of
https://github.com/openwrt/openwrt.git
synced 2026-05-03 11:55:46 +04:00
treewide: strip trailing whitespace
Strip trailing whitespace in all code: find . -type f | grep "\.c$" | xargs sed -i 's/[ \t]\+$//' find . -type f | grep "\.h$" | xargs sed -i 's/[ \t]\+$//' find . -type f | grep "\.dts$" | xargs sed -i 's/[ \t]\+$//' find . -type f | grep "\.dtsi$" | xargs sed -i 's/[ \t]\+$//' Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com> Link: https://github.com/openwrt/openwrt/pull/18626 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
committed by
Robert Marko
parent
6b43a52171
commit
a238170e57
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Paweł Dembicki <paweldembicki@gmail.com>
|
||||
* Copyright (C) 2018 Paweł Dembicki <paweldembicki@gmail.com>
|
||||
*
|
||||
* Based on: mtdsplit_uimage.c
|
||||
* Copyright (C) 2013 Gabor Juhos <juhosg@openwrt.org>
|
||||
|
||||
@@ -84,7 +84,7 @@ struct adm6996_priv {
|
||||
u16 vlan_id[ADM_NUM_VLANS];
|
||||
u8 vlan_table[ADM_NUM_VLANS]; /* bitmap, 1 = port is member */
|
||||
u8 vlan_tagged[ADM_NUM_VLANS]; /* bitmap, 1 = tagged member */
|
||||
|
||||
|
||||
struct mutex mib_lock;
|
||||
char buf[2048];
|
||||
|
||||
@@ -805,12 +805,12 @@ adm6996_get_port_link(struct switch_dev *dev, int port,
|
||||
struct switch_port_link *link)
|
||||
{
|
||||
struct adm6996_priv *priv = to_adm(dev);
|
||||
|
||||
|
||||
u16 reg = 0;
|
||||
|
||||
|
||||
if (port >= ADM_NUM_PORTS)
|
||||
return -EINVAL;
|
||||
|
||||
|
||||
switch (port) {
|
||||
case 0:
|
||||
reg = r16(priv, ADM_PS0);
|
||||
@@ -838,7 +838,7 @@ adm6996_get_port_link(struct switch_dev *dev, int port,
|
||||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
||||
link->link = reg & ADM_PS_LS;
|
||||
if (!link->link)
|
||||
return 0;
|
||||
@@ -1003,9 +1003,9 @@ static int adm6996_switch_init(struct adm6996_priv *priv, const char *alias, str
|
||||
w16(priv, ADM_VID_CHECK, test);
|
||||
test ^= r16(priv, ADM_VID_CHECK);
|
||||
if (test & (1 << 12)) {
|
||||
/*
|
||||
* Bit 12 of this register is read-only.
|
||||
* This is the FC model.
|
||||
/*
|
||||
* Bit 12 of this register is read-only.
|
||||
* This is the FC model.
|
||||
*/
|
||||
priv->model = ADM6996FC;
|
||||
} else {
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* under the terms of the GNU General Public License v2 as published by the
|
||||
* Free Software Foundation.
|
||||
*
|
||||
* The switch programming done in this driver follows the
|
||||
* The switch programming done in this driver follows the
|
||||
* "Ethernet Traffic Separation using VLAN" Application Note as
|
||||
* published by Lantiq.
|
||||
*/
|
||||
|
||||
@@ -587,7 +587,7 @@ rtl_attr_get_port_int(struct switch_dev *dev, const struct switch_attr *attr, st
|
||||
return rtl_attr_get_int(dev, attr, val);
|
||||
}
|
||||
|
||||
static int
|
||||
static int
|
||||
rtl_get_port_link(struct switch_dev *dev, int port, struct switch_port_link *link)
|
||||
{
|
||||
if (port >= RTL8306_NUM_PORTS)
|
||||
|
||||
Reference in New Issue
Block a user