net: phy: fix space alignment issues
authorWenpeng Liang <liangwenpeng@huawei.com>
Wed, 16 Jun 2021 10:01:22 +0000 (18:01 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Jun 2021 19:34:07 +0000 (12:34 -0700)
There are some space related issues, including spaces at the start of the
line, before tabs, after open parenthesis and before close parenthesis.

Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/davicom.c
drivers/net/phy/sfp-bus.c
drivers/net/phy/spi_ks8995.c
drivers/net/phy/ste10Xp.c

index a3b3842c67e5d7cf2d7f0c8cc482cf396d18b1da..4ac4bce1bf323e923304e27528ad0d0f1e92415b 100644 (file)
 #define MII_DM9161_INTR_DPLX_CHANGE    0x0010
 #define MII_DM9161_INTR_SPD_CHANGE     0x0008
 #define MII_DM9161_INTR_LINK_CHANGE    0x0004
-#define MII_DM9161_INTR_INIT           0x0000
+#define MII_DM9161_INTR_INIT           0x0000
 #define MII_DM9161_INTR_STOP   \
-(MII_DM9161_INTR_DPLX_MASK | MII_DM9161_INTR_SPD_MASK \
| MII_DM9161_INTR_LINK_MASK | MII_DM9161_INTR_MASK)
+       (MII_DM9161_INTR_DPLX_MASK | MII_DM9161_INTR_SPD_MASK | \
       MII_DM9161_INTR_LINK_MASK | MII_DM9161_INTR_MASK)
 #define MII_DM9161_INTR_CHANGE \
        (MII_DM9161_INTR_DPLX_CHANGE | \
         MII_DM9161_INTR_SPD_CHANGE | \
index 1db9cea136906c5b37d104db3724573f3f08d7c6..7362f8c3271c97f14c5b208ce687ed1fe8d4a86c 100644 (file)
@@ -629,14 +629,14 @@ static void sfp_upstream_clear(struct sfp_bus *bus)
  * be put via sfp_bus_put() when done.
  *
  * Returns:
- *         - on success, a pointer to the sfp_bus structure,
- *         - %NULL if no SFP is specified,
- *         - on failure, an error pointer value:
+ *     - on success, a pointer to the sfp_bus structure,
+ *     - %NULL if no SFP is specified,
+ *     - on failure, an error pointer value:
  *
- *           - corresponding to the errors detailed for
- *             fwnode_property_get_reference_args().
- *           - %-ENOMEM if we failed to allocate the bus.
- *           - an error from the upstream's connect_phy() method.
+ *     - corresponding to the errors detailed for
+ *       fwnode_property_get_reference_args().
+ *     - %-ENOMEM if we failed to allocate the bus.
+ *     - an error from the upstream's connect_phy() method.
  */
 struct sfp_bus *sfp_bus_find_fwnode(struct fwnode_handle *fwnode)
 {
@@ -671,14 +671,14 @@ EXPORT_SYMBOL_GPL(sfp_bus_find_fwnode);
  * bus, so it is safe to put the bus after this call.
  *
  * Returns:
- *         - on success, a pointer to the sfp_bus structure,
- *         - %NULL if no SFP is specified,
- *         - on failure, an error pointer value:
+ *     - on success, a pointer to the sfp_bus structure,
+ *     - %NULL if no SFP is specified,
+ *     - on failure, an error pointer value:
  *
- *           - corresponding to the errors detailed for
- *             fwnode_property_get_reference_args().
- *           - %-ENOMEM if we failed to allocate the bus.
- *           - an error from the upstream's connect_phy() method.
+ *     - corresponding to the errors detailed for
+ *       fwnode_property_get_reference_args().
+ *     - %-ENOMEM if we failed to allocate the bus.
+ *     - an error from the upstream's connect_phy() method.
  */
 int sfp_bus_add_upstream(struct sfp_bus *bus, void *upstream,
                         const struct sfp_upstream_ops *ops)
index ca49c1ad3efce03d03d8216b665e163e61036686..8b5445a724ce55bc5b31eff163eb6c72493d6def 100644 (file)
@@ -160,11 +160,11 @@ static const struct spi_device_id ks8995_id[] = {
 MODULE_DEVICE_TABLE(spi, ks8995_id);
 
 static const struct of_device_id ks8895_spi_of_match[] = {
-        { .compatible = "micrel,ks8995" },
-        { .compatible = "micrel,ksz8864" },
-        { .compatible = "micrel,ksz8795" },
-        { },
- };
+       { .compatible = "micrel,ks8995" },
+       { .compatible = "micrel,ksz8864" },
+       { .compatible = "micrel,ksz8795" },
+       { },
+};
 MODULE_DEVICE_TABLE(of, ks8895_spi_of_match);
 
 static inline u8 get_chip_id(u8 val)
index 431fe5e0ce313ee284180fa2cf238a2e372e88b2..309e4c3496c45046e921851a3e1e92cafbf1aeb8 100644 (file)
 #include <linux/mii.h>
 #include <linux/phy.h>
 
-#define MII_XCIIS      0x11    /* Configuration Info IRQ & Status Reg */
-#define MII_XIE        0x12    /* Interrupt Enable Register */
+#define MII_XCIIS      0x11    /* Configuration Info IRQ & Status Reg */
+#define MII_XIE                0x12    /* Interrupt Enable Register */
 #define MII_XIE_DEFAULT_MASK 0x0070 /* ANE complete, Remote Fault, Link Down */
 
 #define STE101P_PHY_ID         0x00061c50
-#define STE100P_PHY_ID         0x1c040011
+#define STE100P_PHY_ID         0x1c040011
 
 static int ste10Xp_config_init(struct phy_device *phydev)
 {