net: phy: Use the correct style for SPDX License Identifier
Subsystems (4)
PATCH 1/1 net: phy: Use the correct style for SPDX License Identifier
This patch corrects the SPDX License Identifier style in header files related to PHY Layer for Ethernet drivers. For C header files Documentation/process/license-rules.rst mandates C-like comments (opposed to C source files where C++ style should be used). This patch also gives an explicit block comment to the SPDX License Identifier.
Changes made by using a script provided by Joe Perches here:
https://lkml.org/lkml/2019/2/7/46.
--- drivers/net/phy/aquantia.h | 4 ++-- drivers/net/phy/bcm-phy-lib.h | 2 +- drivers/net/phy/mdio-cavium.h | 2 +- drivers/net/phy/mdio-i2c.h | 2 +- drivers/net/phy/mdio-xgene.h | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-)
drivers/net/phy/aquantia.h +2 -2
@@ -1,5 +1,5 @@ -/* SPDX-License-Identifier: GPL-2.0 -* HWMON driver for Aquantia PHY +/* SPDX-License-Identifier: GPL-2.0 */ +/* HWMON driver for Aquantia PHY * * Author: Nikita Yushchenko <[email protected]> * Author: Andrew Lunn <[email protected]>
drivers/net/phy/bcm-phy-lib.h +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0 +/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2015 Broadcom Corporation */
drivers/net/phy/mdio-cavium.h +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0 +/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2009-2016 Cavium, Inc. */
drivers/net/phy/mdio-i2c.h +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0 +/* SPDX-License-Identifier: GPL-2.0 */ /* * MDIO I2C bridge *
drivers/net/phy/mdio-xgene.h +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ +/* SPDX-License-Identifier: GPL-2.0+ */ /* Applied Micro X-Gene SoC MDIO Driver * * Copyright (c) 2016, Applied Micro Circuits Corporation
Signature · 1 line
2.17.1
drivers/net/phy/aquantia.h line 2
Quoted 9 lines · Nishad Kamdar
drivers/net/phy/aquantia.h +2
-2@@ -1,5 +1,5 @@ -/* SPDX-License-Identifier: GPL-2.0 -* HWMON driver for Aquantia PHY +/* SPDX-License-Identifier: GPL-2.0 */ +/* HWMON driver for Aquantia PHY
You're adding an extra space here. Is this intentional?
Quoted 3 lines
drivers/net/phy/aquantia.h +0
-0* * Author: Nikita Yushchenko <[email protected]> * Author: Andrew Lunn <[email protected]>
Quoted 12 lines · Jakub Kicinski
drivers/net/phy/aquantia.h line 2
Quoted 9 lines · Nishad Kamdar
drivers/net/phy/aquantia.h +2
-2@@ -1,5 +1,5 @@ -/* SPDX-License-Identifier: GPL-2.0 -* HWMON driver for Aquantia PHY +/* SPDX-License-Identifier: GPL-2.0 */ +/* HWMON driver for Aquantia PHY You're adding an extra space here. Is this intentional?
No, It shouldn't be there.
Thanks you for pointing it out.
I'll update and resend the patch.
Thanks for the review.
Regards,
Nishad
Quoted 4 lines
Quoted 4 lines
drivers/net/phy/aquantia.h +0
-0* * Author: Nikita Yushchenko <[email protected]> * Author: Andrew Lunn <[email protected]>