summaryrefslogtreecommitdiff
path: root/drivers/net/fsl_mdio.c
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2016-01-11 22:41:18 -0800
committerJoe Hershberger <joe.hershberger@ni.com>2016-01-28 12:22:49 -0600
commit9872b736f957585c6494e727634fe6ed837bcd86 (patch)
tree1c7699aed813543ea95d23bdf771512948755508 /drivers/net/fsl_mdio.c
parent9ccb309651912ce71f295b3b2442c36c9cc1e094 (diff)
downloadu-boot-imx-9872b736f957585c6494e727634fe6ed837bcd86.zip
u-boot-imx-9872b736f957585c6494e727634fe6ed837bcd86.tar.gz
u-boot-imx-9872b736f957585c6494e727634fe6ed837bcd86.tar.bz2
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/fsl_mdio.c b/drivers/net/fsl_mdio.c
index d6b181b..ae3d035 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 */