diff options
author | Jonas Gorski <jogo@openwrt.org> | 2015-04-10 10:29:04 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2015-04-10 10:29:04 +0000 |
commit | 4e826d8303d305027bcfd726372a6cc2cf381d74 (patch) | |
tree | 3f32e3d0e152d88b3739189bdcfb78c1e740a631 /target/linux/generic/files/drivers/net/phy/b53/b53_common.c | |
parent | 61885f95f07ee2a10d5165470e091bfec7fdc4ff (diff) | |
download | master-31e0f0ae-4e826d8303d305027bcfd726372a6cc2cf381d74.tar.gz master-31e0f0ae-4e826d8303d305027bcfd726372a6cc2cf381d74.tar.bz2 master-31e0f0ae-4e826d8303d305027bcfd726372a6cc2cf381d74.zip |
b53: clean up code to match kernel style better
* properly enclose macro arguments in paranthesis on use
* remove trailing white space
* convert C99 // comments
* add missing blank lines after declaration
* remove braces from single statement blocks
* split lines > 80 chars (except for one)
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 45356
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/b53/b53_common.c')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/b53/b53_common.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/b53/b53_common.c b/target/linux/generic/files/drivers/net/phy/b53/b53_common.c index e44d1945ee..d2bb51ab4a 100644 --- a/target/linux/generic/files/drivers/net/phy/b53/b53_common.c +++ b/target/linux/generic/files/drivers/net/phy/b53/b53_common.c @@ -525,7 +525,8 @@ static int b53_switch_reset(struct b53_device *dev) return -EINVAL; } } - } else if ((is531x5(dev) || is5301x(dev)) && dev->sw_dev.cpu_port == B53_CPU_PORT) { + } else if ((is531x5(dev) || is5301x(dev)) && + dev->sw_dev.cpu_port == B53_CPU_PORT) { u8 mii_port_override; b53_read8(dev, B53_CTRL_PAGE, B53_PORT_OVERRIDE_CTRL, @@ -1161,7 +1162,7 @@ static const struct b53_chip_data b53_switch_chips[] = { .alias = "bcm53011", .vlans = 4096, .enabled_ports = 0x1f, - .cpu_port = B53_CPU_PORT_25, // TODO: auto detect + .cpu_port = B53_CPU_PORT_25, /* TODO: auto detect */ .vta_regs = B53_VTA_REGS, .duplex_reg = B53_DUPLEX_STAT_GE, .jumbo_pm_reg = B53_JUMBO_PORT_MASK, @@ -1174,7 +1175,7 @@ static const struct b53_chip_data b53_switch_chips[] = { .alias = "bcm53011", .vlans = 4096, .enabled_ports = 0x1f, - .cpu_port = B53_CPU_PORT_25, // TODO: auto detect + .cpu_port = B53_CPU_PORT_25, /* TODO: auto detect */ .vta_regs = B53_VTA_REGS, .duplex_reg = B53_DUPLEX_STAT_GE, .jumbo_pm_reg = B53_JUMBO_PORT_MASK, @@ -1187,7 +1188,7 @@ static const struct b53_chip_data b53_switch_chips[] = { .alias = "bcm53011", .vlans = 4096, .enabled_ports = 0x1f, - .cpu_port = B53_CPU_PORT_25, // TODO: auto detect + .cpu_port = B53_CPU_PORT_25, /* TODO: auto detect */ .vta_regs = B53_VTA_REGS, .duplex_reg = B53_DUPLEX_STAT_GE, .jumbo_pm_reg = B53_JUMBO_PORT_MASK, @@ -1200,7 +1201,7 @@ static const struct b53_chip_data b53_switch_chips[] = { .alias = "bcm53018", .vlans = 4096, .enabled_ports = 0x1f, - .cpu_port = B53_CPU_PORT_25, // TODO: auto detect + .cpu_port = B53_CPU_PORT_25, /* TODO: auto detect */ .vta_regs = B53_VTA_REGS, .duplex_reg = B53_DUPLEX_STAT_GE, .jumbo_pm_reg = B53_JUMBO_PORT_MASK, @@ -1213,7 +1214,7 @@ static const struct b53_chip_data b53_switch_chips[] = { .alias = "bcm53019", .vlans = 4096, .enabled_ports = 0x1f, - .cpu_port = B53_CPU_PORT_25, // TODO: auto detect + .cpu_port = B53_CPU_PORT_25, /* TODO: auto detect */ .vta_regs = B53_VTA_REGS, .duplex_reg = B53_DUPLEX_STAT_GE, .jumbo_pm_reg = B53_JUMBO_PORT_MASK, @@ -1307,7 +1308,8 @@ static int b53_switch_init(struct b53_device *dev) dev->reset_gpio = b53_switch_get_reset_gpio(dev); if (dev->reset_gpio >= 0) { - ret = devm_gpio_request_one(dev->dev, dev->reset_gpio, GPIOF_OUT_INIT_HIGH, "robo_reset"); + ret = devm_gpio_request_one(dev->dev, dev->reset_gpio, + GPIOF_OUT_INIT_HIGH, "robo_reset"); if (ret) return ret; } |