diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2016-01-11 22:41:18 -0800 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2016-01-28 12:22:49 -0600 |
commit | 9872b736f957585c6494e727634fe6ed837bcd86 (patch) | |
tree | 1c7699aed813543ea95d23bdf771512948755508 /drivers/net/fsl_mdio.c | |
parent | 9ccb309651912ce71f295b3b2442c36c9cc1e094 (diff) | |
download | u-boot-9872b736f957585c6494e727634fe6ed837bcd86.tar.gz |
net: tsec: fsl_mdio: Fix several cosmetic issues
Clean up the tsec and fsl_mdio driver codes a little bit, by:
- Fix misuse of tab and space here and there
- Use correct multi-line comment format
- Replace license identifier to GPL-2.0+
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/net/fsl_mdio.c')
-rw-r--r-- | drivers/net/fsl_mdio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/fsl_mdio.c b/drivers/net/fsl_mdio.c index d6b181b386..ae3d035848 100644 --- a/drivers/net/fsl_mdio.c +++ b/drivers/net/fsl_mdio.c @@ -5,6 +5,7 @@ * * SPDX-License-Identifier: GPL-2.0+ */ + #include <common.h> #include <miiphy.h> #include <phy.h> @@ -32,8 +33,7 @@ int tsec_local_mdio_read(struct tsec_mii_mng __iomem *phyregs, int port_addr, int value; int timeout = 1000000; - /* Put the address of the phy, and the register - * number into MIIMADD */ + /* Put the address of the phy, and the register number into MIIMADD */ out_be32(&phyregs->miimadd, (port_addr << 8) | (regnum & 0x1f)); /* Clear the command register, and wait */ |