* [PATCH] net: phy: phy_device: Fix PHY LED blinking code comment
@ 2024-06-26 3:06 Marek Vasut
2024-06-26 17:32 ` Andrew Lunn
0 siblings, 1 reply; 3+ messages in thread
From: Marek Vasut @ 2024-06-26 3:06 UTC (permalink / raw)
To: netdev
Cc: Marek Vasut, Andrew Lunn, Heiner Kallweit, Russell King, kernel,
linux-kernel
Fix copy-paste error in the code comment. The code refers to
LED blinking configuration, not brightness configuration. It
was likely copied from comment above this one which does
refer to brightness configuration.
Fixes: 4e901018432e ("net: phy: phy_device: Call into the PHY driver to set LED blinking")
Signed-off-by: Marek Vasut <marex@denx.de>
---
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Heiner Kallweit <hkallweit1@gmail.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: kernel@dh-electronics.com
Cc: linux-kernel@vger.kernel.org
Cc: netdev@vger.kernel.org
---
include/linux/phy.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/phy.h b/include/linux/phy.h
index 205fccfc0f60a..bd68f9d8e74f1 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -1119,21 +1119,21 @@ struct phy_driver {
/**
* @led_brightness_set: Set a PHY LED brightness. Index
* indicates which of the PHYs led should be set. Value
* follows the standard LED class meaning, e.g. LED_OFF,
* LED_HALF, LED_FULL.
*/
int (*led_brightness_set)(struct phy_device *dev,
u8 index, enum led_brightness value);
/**
- * @led_blink_set: Set a PHY LED brightness. Index indicates
+ * @led_blink_set: Set a PHY LED blinking. Index indicates
* which of the PHYs led should be configured to blink. Delays
* are in milliseconds and if both are zero then a sensible
* default should be chosen. The call should adjust the
* timings in that case and if it can't match the values
* specified exactly.
*/
int (*led_blink_set)(struct phy_device *dev, u8 index,
unsigned long *delay_on,
unsigned long *delay_off);
/**
--
2.43.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] net: phy: phy_device: Fix PHY LED blinking code comment
2024-06-26 3:06 [PATCH] net: phy: phy_device: Fix PHY LED blinking code comment Marek Vasut
@ 2024-06-26 17:32 ` Andrew Lunn
2024-06-26 19:47 ` Marek Vasut
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Lunn @ 2024-06-26 17:32 UTC (permalink / raw)
To: Marek Vasut; +Cc: netdev, Heiner Kallweit, Russell King, kernel, linux-kernel
On Wed, Jun 26, 2024 at 05:06:17AM +0200, Marek Vasut wrote:
> Fix copy-paste error in the code comment. The code refers to
> LED blinking configuration, not brightness configuration. It
> was likely copied from comment above this one which does
> refer to brightness configuration.
>
> Fixes: 4e901018432e ("net: phy: phy_device: Call into the PHY driver to set LED blinking")
> Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
There is a lot of context in this patch. Do you have some odd git diff
settings?
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] net: phy: phy_device: Fix PHY LED blinking code comment
2024-06-26 17:32 ` Andrew Lunn
@ 2024-06-26 19:47 ` Marek Vasut
0 siblings, 0 replies; 3+ messages in thread
From: Marek Vasut @ 2024-06-26 19:47 UTC (permalink / raw)
To: Andrew Lunn; +Cc: netdev, Heiner Kallweit, Russell King, kernel, linux-kernel
On 6/26/24 7:32 PM, Andrew Lunn wrote:
> On Wed, Jun 26, 2024 at 05:06:17AM +0200, Marek Vasut wrote:
>> Fix copy-paste error in the code comment. The code refers to
>> LED blinking configuration, not brightness configuration. It
>> was likely copied from comment above this one which does
>> refer to brightness configuration.
>>
>> Fixes: 4e901018432e ("net: phy: phy_device: Call into the PHY driver to set LED blinking")
>> Signed-off-by: Marek Vasut <marex@denx.de>
>
> Reviewed-by: Andrew Lunn <andrew@lunn.ch>
>
> There is a lot of context in this patch. Do you have some odd git diff
> settings?
I did use git format-patch -U10 this time, to make sure that context is
visible. With regular git format-patch, the diff contained only part of
the comment and it wasn't clear from the diff that it does modify
comment above (*led_blink_set)() and not e.g. (*led_brightness_set)() .
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-06-27 4:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-26 3:06 [PATCH] net: phy: phy_device: Fix PHY LED blinking code comment Marek Vasut
2024-06-26 17:32 ` Andrew Lunn
2024-06-26 19:47 ` Marek Vasut
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®