* [PATCH net-next 0/4] net: phy: remove calls to devm_hwmon_sanitize_name
@ 2025-03-13 19:43 Heiner Kallweit
2025-03-13 19:44 ` [PATCH net-next 1/4] net: phy: realtek: remove call " Heiner Kallweit
` (5 more replies)
0 siblings, 6 replies; 10+ messages in thread
From: Heiner Kallweit @ 2025-03-13 19:43 UTC (permalink / raw)
To: Andrew Lunn, Russell King - ARM Linux, Paolo Abeni, Eric Dumazet,
Jakub Kicinski, David Miller, Xu Liang
Cc: netdev@vger.kernel.org, Jean Delvare, Guenter Roeck,
linux-hwmon@vger.kernel.org
Since c909e68f8127 ("hwmon: (core) Use device name as a fallback in
devm_hwmon_device_register_with_info") we can simply provide NULL
as name argument.
Heiner Kallweit (4):
net: phy: realtek: remove call to devm_hwmon_sanitize_name
net: phy: tja11xx: remove call to devm_hwmon_sanitize_name
net: phy: mxl-gpy: remove call to devm_hwmon_sanitize_name
net: phy: marvell-88q2xxx: remove call to devm_hwmon_sanitize_name
drivers/net/phy/marvell-88q2xxx.c | 8 +-------
drivers/net/phy/mxl-gpy.c | 8 +-------
drivers/net/phy/nxp-tja11xx.c | 19 +++++--------------
drivers/net/phy/realtek/realtek_hwmon.c | 7 +------
4 files changed, 8 insertions(+), 34 deletions(-)
--
2.48.1
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH net-next 1/4] net: phy: realtek: remove call to devm_hwmon_sanitize_name
2025-03-13 19:43 [PATCH net-next 0/4] net: phy: remove calls to devm_hwmon_sanitize_name Heiner Kallweit
@ 2025-03-13 19:44 ` Heiner Kallweit
2025-03-13 19:45 ` [PATCH net-next 2/4] net: phy: tja11xx: " Heiner Kallweit
` (4 subsequent siblings)
5 siblings, 0 replies; 10+ messages in thread
From: Heiner Kallweit @ 2025-03-13 19:44 UTC (permalink / raw)
To: Andrew Lunn, Russell King - ARM Linux, Paolo Abeni, Eric Dumazet,
Jakub Kicinski, David Miller, Xu Liang
Cc: netdev@vger.kernel.org, Jean Delvare, Guenter Roeck,
linux-hwmon@vger.kernel.org
Since c909e68f8127 ("hwmon: (core) Use device name as a fallback in
devm_hwmon_device_register_with_info") we can simply provide NULL
as name argument.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
drivers/net/phy/realtek/realtek_hwmon.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/net/phy/realtek/realtek_hwmon.c b/drivers/net/phy/realtek/realtek_hwmon.c
index 1ecb410bb..ac96e2d1e 100644
--- a/drivers/net/phy/realtek/realtek_hwmon.c
+++ b/drivers/net/phy/realtek/realtek_hwmon.c
@@ -63,16 +63,11 @@ static const struct hwmon_chip_info rtl822x_hwmon_chip_info = {
int rtl822x_hwmon_init(struct phy_device *phydev)
{
struct device *hwdev, *dev = &phydev->mdio.dev;
- const char *name;
/* Ensure over-temp alarm is reset. */
phy_clear_bits_mmd(phydev, MDIO_MMD_VEND2, RTL822X_VND2_TSALRM, 3);
- name = devm_hwmon_sanitize_name(dev, dev_name(dev));
- if (IS_ERR(name))
- return PTR_ERR(name);
-
- hwdev = devm_hwmon_device_register_with_info(dev, name, phydev,
+ hwdev = devm_hwmon_device_register_with_info(dev, NULL, phydev,
&rtl822x_hwmon_chip_info,
NULL);
return PTR_ERR_OR_ZERO(hwdev);
--
2.48.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH net-next 2/4] net: phy: tja11xx: remove call to devm_hwmon_sanitize_name
2025-03-13 19:43 [PATCH net-next 0/4] net: phy: remove calls to devm_hwmon_sanitize_name Heiner Kallweit
2025-03-13 19:44 ` [PATCH net-next 1/4] net: phy: realtek: remove call " Heiner Kallweit
@ 2025-03-13 19:45 ` Heiner Kallweit
2025-03-14 7:45 ` Maxime Chevallier
2025-03-13 19:45 ` [PATCH net-next 3/4] net: phy: mxl-gpy: " Heiner Kallweit
` (3 subsequent siblings)
5 siblings, 1 reply; 10+ messages in thread
From: Heiner Kallweit @ 2025-03-13 19:45 UTC (permalink / raw)
To: Andrew Lunn, Russell King - ARM Linux, Paolo Abeni, Eric Dumazet,
Jakub Kicinski, David Miller, Xu Liang
Cc: netdev@vger.kernel.org, Jean Delvare, Guenter Roeck,
linux-hwmon@vger.kernel.org
Since c909e68f8127 ("hwmon: (core) Use device name as a fallback in
devm_hwmon_device_register_with_info") we can simply provide NULL
as name argument.
Note that neither priv->hwmon_name nor priv->hwmon_dev are used
outside tja11xx_hwmon_register.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
drivers/net/phy/nxp-tja11xx.c | 19 +++++--------------
1 file changed, 5 insertions(+), 14 deletions(-)
diff --git a/drivers/net/phy/nxp-tja11xx.c b/drivers/net/phy/nxp-tja11xx.c
index 601094fe2..07e94a247 100644
--- a/drivers/net/phy/nxp-tja11xx.c
+++ b/drivers/net/phy/nxp-tja11xx.c
@@ -87,8 +87,6 @@
#define TJA110X_RMII_MODE_REFCLK_IN BIT(0)
struct tja11xx_priv {
- char *hwmon_name;
- struct device *hwmon_dev;
struct phy_device *phydev;
struct work_struct phy_register_work;
u32 flags;
@@ -508,19 +506,12 @@ static const struct hwmon_chip_info tja11xx_hwmon_chip_info = {
static int tja11xx_hwmon_register(struct phy_device *phydev,
struct tja11xx_priv *priv)
{
- struct device *dev = &phydev->mdio.dev;
-
- priv->hwmon_name = devm_hwmon_sanitize_name(dev, dev_name(dev));
- if (IS_ERR(priv->hwmon_name))
- return PTR_ERR(priv->hwmon_name);
-
- priv->hwmon_dev =
- devm_hwmon_device_register_with_info(dev, priv->hwmon_name,
- phydev,
- &tja11xx_hwmon_chip_info,
- NULL);
+ struct device *hdev, *dev = &phydev->mdio.dev;
- return PTR_ERR_OR_ZERO(priv->hwmon_dev);
+ hdev = devm_hwmon_device_register_with_info(dev, NULL, phydev,
+ &tja11xx_hwmon_chip_info,
+ NULL);
+ return PTR_ERR_OR_ZERO(hdev);
}
static int tja11xx_parse_dt(struct phy_device *phydev)
--
2.48.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH net-next 3/4] net: phy: mxl-gpy: remove call to devm_hwmon_sanitize_name
2025-03-13 19:43 [PATCH net-next 0/4] net: phy: remove calls to devm_hwmon_sanitize_name Heiner Kallweit
2025-03-13 19:44 ` [PATCH net-next 1/4] net: phy: realtek: remove call " Heiner Kallweit
2025-03-13 19:45 ` [PATCH net-next 2/4] net: phy: tja11xx: " Heiner Kallweit
@ 2025-03-13 19:45 ` Heiner Kallweit
2025-03-13 19:46 ` [PATCH net-next 4/4] net: phy: marvell-88q2xxx: " Heiner Kallweit
` (2 subsequent siblings)
5 siblings, 0 replies; 10+ messages in thread
From: Heiner Kallweit @ 2025-03-13 19:45 UTC (permalink / raw)
To: Andrew Lunn, Russell King - ARM Linux, Paolo Abeni, Eric Dumazet,
Jakub Kicinski, David Miller, Xu Liang
Cc: netdev@vger.kernel.org, Jean Delvare, Guenter Roeck,
linux-hwmon@vger.kernel.org
Since c909e68f8127 ("hwmon: (core) Use device name as a fallback in
devm_hwmon_device_register_with_info") we can simply provide NULL
as name argument.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
drivers/net/phy/mxl-gpy.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/net/phy/mxl-gpy.c b/drivers/net/phy/mxl-gpy.c
index 94d9cb727..cc531cc92 100644
--- a/drivers/net/phy/mxl-gpy.c
+++ b/drivers/net/phy/mxl-gpy.c
@@ -225,14 +225,8 @@ static int gpy_hwmon_register(struct phy_device *phydev)
{
struct device *dev = &phydev->mdio.dev;
struct device *hwmon_dev;
- char *hwmon_name;
- hwmon_name = devm_hwmon_sanitize_name(dev, dev_name(dev));
- if (IS_ERR(hwmon_name))
- return PTR_ERR(hwmon_name);
-
- hwmon_dev = devm_hwmon_device_register_with_info(dev, hwmon_name,
- phydev,
+ hwmon_dev = devm_hwmon_device_register_with_info(dev, NULL, phydev,
&gpy_hwmon_chip_info,
NULL);
--
2.48.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH net-next 4/4] net: phy: marvell-88q2xxx: remove call to devm_hwmon_sanitize_name
2025-03-13 19:43 [PATCH net-next 0/4] net: phy: remove calls to devm_hwmon_sanitize_name Heiner Kallweit
` (2 preceding siblings ...)
2025-03-13 19:45 ` [PATCH net-next 3/4] net: phy: mxl-gpy: " Heiner Kallweit
@ 2025-03-13 19:46 ` Heiner Kallweit
2025-03-14 17:23 ` [PATCH net-next 0/4] net: phy: remove calls " Maxime Chevallier
2025-03-21 17:10 ` patchwork-bot+netdevbpf
5 siblings, 0 replies; 10+ messages in thread
From: Heiner Kallweit @ 2025-03-13 19:46 UTC (permalink / raw)
To: Andrew Lunn, Russell King - ARM Linux, Paolo Abeni, Eric Dumazet,
Jakub Kicinski, David Miller, Xu Liang
Cc: netdev@vger.kernel.org, Jean Delvare, Guenter Roeck,
linux-hwmon@vger.kernel.org
Since c909e68f8127 ("hwmon: (core) Use device name as a fallback in
devm_hwmon_device_register_with_info") we can simply provide NULL
as name argument.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
drivers/net/phy/marvell-88q2xxx.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/net/phy/marvell-88q2xxx.c b/drivers/net/phy/marvell-88q2xxx.c
index 15c0f8adc..23e1f0521 100644
--- a/drivers/net/phy/marvell-88q2xxx.c
+++ b/drivers/net/phy/marvell-88q2xxx.c
@@ -765,16 +765,10 @@ static int mv88q2xxx_hwmon_probe(struct phy_device *phydev)
struct mv88q2xxx_priv *priv = phydev->priv;
struct device *dev = &phydev->mdio.dev;
struct device *hwmon;
- char *hwmon_name;
priv->enable_temp = true;
- hwmon_name = devm_hwmon_sanitize_name(dev, dev_name(dev));
- if (IS_ERR(hwmon_name))
- return PTR_ERR(hwmon_name);
- hwmon = devm_hwmon_device_register_with_info(dev,
- hwmon_name,
- phydev,
+ hwmon = devm_hwmon_device_register_with_info(dev, NULL, phydev,
&mv88q2xxx_hwmon_chip_info,
NULL);
--
2.48.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH net-next 2/4] net: phy: tja11xx: remove call to devm_hwmon_sanitize_name
2025-03-13 19:45 ` [PATCH net-next 2/4] net: phy: tja11xx: " Heiner Kallweit
@ 2025-03-14 7:45 ` Maxime Chevallier
2025-03-14 11:26 ` Heiner Kallweit
0 siblings, 1 reply; 10+ messages in thread
From: Maxime Chevallier @ 2025-03-14 7:45 UTC (permalink / raw)
To: Heiner Kallweit
Cc: Andrew Lunn, Russell King - ARM Linux, Paolo Abeni, Eric Dumazet,
Jakub Kicinski, David Miller, Xu Liang, netdev@vger.kernel.org,
Jean Delvare, Guenter Roeck, linux-hwmon@vger.kernel.org
Hello Heiner,
On Thu, 13 Mar 2025 20:45:06 +0100
Heiner Kallweit <hkallweit1@gmail.com> wrote:
> Since c909e68f8127 ("hwmon: (core) Use device name as a fallback in
> devm_hwmon_device_register_with_info") we can simply provide NULL
> as name argument.
>
> Note that neither priv->hwmon_name nor priv->hwmon_dev are used
> outside tja11xx_hwmon_register.
>
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
> ---
> drivers/net/phy/nxp-tja11xx.c | 19 +++++--------------
> 1 file changed, 5 insertions(+), 14 deletions(-)
>
> diff --git a/drivers/net/phy/nxp-tja11xx.c b/drivers/net/phy/nxp-tja11xx.c
> index 601094fe2..07e94a247 100644
> --- a/drivers/net/phy/nxp-tja11xx.c
> +++ b/drivers/net/phy/nxp-tja11xx.c
> @@ -87,8 +87,6 @@
> #define TJA110X_RMII_MODE_REFCLK_IN BIT(0)
>
> struct tja11xx_priv {
> - char *hwmon_name;
> - struct device *hwmon_dev;
> struct phy_device *phydev;
> struct work_struct phy_register_work;
> u32 flags;
> @@ -508,19 +506,12 @@ static const struct hwmon_chip_info tja11xx_hwmon_chip_info = {
> static int tja11xx_hwmon_register(struct phy_device *phydev,
> struct tja11xx_priv *priv)
> {
> - struct device *dev = &phydev->mdio.dev;
> -
> - priv->hwmon_name = devm_hwmon_sanitize_name(dev, dev_name(dev));
> - if (IS_ERR(priv->hwmon_name))
> - return PTR_ERR(priv->hwmon_name);
> -
> - priv->hwmon_dev =
> - devm_hwmon_device_register_with_info(dev, priv->hwmon_name,
> - phydev,
> - &tja11xx_hwmon_chip_info,
> - NULL);
> + struct device *hdev, *dev = &phydev->mdio.dev;
>
> - return PTR_ERR_OR_ZERO(priv->hwmon_dev);
> + hdev = devm_hwmon_device_register_with_info(dev, NULL, phydev,
> + &tja11xx_hwmon_chip_info,
> + NULL);
> + return PTR_ERR_OR_ZERO(hdev);
> }
The change look correct to me, however I think you can go one step
further and remove the field tja11xx_priv.hwmon_name as well as
hwmon_dev.
One could argue that we can even remove tja11xx_hwmon_register()
entirely
Thanks,
Maxime
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH net-next 2/4] net: phy: tja11xx: remove call to devm_hwmon_sanitize_name
2025-03-14 7:45 ` Maxime Chevallier
@ 2025-03-14 11:26 ` Heiner Kallweit
2025-03-14 11:47 ` Maxime Chevallier
0 siblings, 1 reply; 10+ messages in thread
From: Heiner Kallweit @ 2025-03-14 11:26 UTC (permalink / raw)
To: Maxime Chevallier
Cc: Andrew Lunn, Russell King - ARM Linux, Paolo Abeni, Eric Dumazet,
Jakub Kicinski, David Miller, Xu Liang, netdev@vger.kernel.org,
Jean Delvare, Guenter Roeck, linux-hwmon@vger.kernel.org
On 14.03.2025 08:45, Maxime Chevallier wrote:
> Hello Heiner,
>
> On Thu, 13 Mar 2025 20:45:06 +0100
> Heiner Kallweit <hkallweit1@gmail.com> wrote:
>
>> Since c909e68f8127 ("hwmon: (core) Use device name as a fallback in
>> devm_hwmon_device_register_with_info") we can simply provide NULL
>> as name argument.
>>
>> Note that neither priv->hwmon_name nor priv->hwmon_dev are used
>> outside tja11xx_hwmon_register.
>>
>> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
>> ---
>> drivers/net/phy/nxp-tja11xx.c | 19 +++++--------------
>> 1 file changed, 5 insertions(+), 14 deletions(-)
>>
>> diff --git a/drivers/net/phy/nxp-tja11xx.c b/drivers/net/phy/nxp-tja11xx.c
>> index 601094fe2..07e94a247 100644
>> --- a/drivers/net/phy/nxp-tja11xx.c
>> +++ b/drivers/net/phy/nxp-tja11xx.c
>> @@ -87,8 +87,6 @@
>> #define TJA110X_RMII_MODE_REFCLK_IN BIT(0)
>>
>> struct tja11xx_priv {
>> - char *hwmon_name;
>> - struct device *hwmon_dev;
>> struct phy_device *phydev;
>> struct work_struct phy_register_work;
>> u32 flags;
>> @@ -508,19 +506,12 @@ static const struct hwmon_chip_info tja11xx_hwmon_chip_info = {
>> static int tja11xx_hwmon_register(struct phy_device *phydev,
>> struct tja11xx_priv *priv)
>> {
>> - struct device *dev = &phydev->mdio.dev;
>> -
>> - priv->hwmon_name = devm_hwmon_sanitize_name(dev, dev_name(dev));
>> - if (IS_ERR(priv->hwmon_name))
>> - return PTR_ERR(priv->hwmon_name);
>> -
>> - priv->hwmon_dev =
>> - devm_hwmon_device_register_with_info(dev, priv->hwmon_name,
>> - phydev,
>> - &tja11xx_hwmon_chip_info,
>> - NULL);
>> + struct device *hdev, *dev = &phydev->mdio.dev;
>>
>> - return PTR_ERR_OR_ZERO(priv->hwmon_dev);
>> + hdev = devm_hwmon_device_register_with_info(dev, NULL, phydev,
>> + &tja11xx_hwmon_chip_info,
>> + NULL);
>> + return PTR_ERR_OR_ZERO(hdev);
>> }
>
> The change look correct to me, however I think you can go one step
> further and remove the field tja11xx_priv.hwmon_name as well as
> hwmon_dev.
>
This is part of the patch. Or what do you mean?
> One could argue that we can even remove tja11xx_hwmon_register()
> entirely
>
It's called from two places, and we would have to duplicate some things
like IS_ERR(). I think it's ok to leave this function in.
> Thanks,
>
> Maxime
Heiner
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH net-next 2/4] net: phy: tja11xx: remove call to devm_hwmon_sanitize_name
2025-03-14 11:26 ` Heiner Kallweit
@ 2025-03-14 11:47 ` Maxime Chevallier
0 siblings, 0 replies; 10+ messages in thread
From: Maxime Chevallier @ 2025-03-14 11:47 UTC (permalink / raw)
To: Heiner Kallweit
Cc: Andrew Lunn, Russell King - ARM Linux, Paolo Abeni, Eric Dumazet,
Jakub Kicinski, David Miller, Xu Liang, netdev@vger.kernel.org,
Jean Delvare, Guenter Roeck, linux-hwmon@vger.kernel.org
On Fri, 14 Mar 2025 12:26:33 +0100
Heiner Kallweit <hkallweit1@gmail.com> wrote:
> On 14.03.2025 08:45, Maxime Chevallier wrote:
> > Hello Heiner,
> >
> > On Thu, 13 Mar 2025 20:45:06 +0100
> > Heiner Kallweit <hkallweit1@gmail.com> wrote:
> >
> >> Since c909e68f8127 ("hwmon: (core) Use device name as a fallback in
> >> devm_hwmon_device_register_with_info") we can simply provide NULL
> >> as name argument.
> >>
> >> Note that neither priv->hwmon_name nor priv->hwmon_dev are used
> >> outside tja11xx_hwmon_register.
> >>
> >> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
> >> ---
> >> drivers/net/phy/nxp-tja11xx.c | 19 +++++--------------
> >> 1 file changed, 5 insertions(+), 14 deletions(-)
> >>
> >> diff --git a/drivers/net/phy/nxp-tja11xx.c b/drivers/net/phy/nxp-tja11xx.c
> >> index 601094fe2..07e94a247 100644
> >> --- a/drivers/net/phy/nxp-tja11xx.c
> >> +++ b/drivers/net/phy/nxp-tja11xx.c
> >> @@ -87,8 +87,6 @@
> >> #define TJA110X_RMII_MODE_REFCLK_IN BIT(0)
> >>
> >> struct tja11xx_priv {
> >> - char *hwmon_name;
> >> - struct device *hwmon_dev;
> >> struct phy_device *phydev;
> >> struct work_struct phy_register_work;
> >> u32 flags;
> >> @@ -508,19 +506,12 @@ static const struct hwmon_chip_info tja11xx_hwmon_chip_info = {
> >> static int tja11xx_hwmon_register(struct phy_device *phydev,
> >> struct tja11xx_priv *priv)
> >> {
> >> - struct device *dev = &phydev->mdio.dev;
> >> -
> >> - priv->hwmon_name = devm_hwmon_sanitize_name(dev, dev_name(dev));
> >> - if (IS_ERR(priv->hwmon_name))
> >> - return PTR_ERR(priv->hwmon_name);
> >> -
> >> - priv->hwmon_dev =
> >> - devm_hwmon_device_register_with_info(dev, priv->hwmon_name,
> >> - phydev,
> >> - &tja11xx_hwmon_chip_info,
> >> - NULL);
> >> + struct device *hdev, *dev = &phydev->mdio.dev;
> >>
> >> - return PTR_ERR_OR_ZERO(priv->hwmon_dev);
> >> + hdev = devm_hwmon_device_register_with_info(dev, NULL, phydev,
> >> + &tja11xx_hwmon_chip_info,
> >> + NULL);
> >> + return PTR_ERR_OR_ZERO(hdev);
> >> }
> >
> > The change look correct to me, however I think you can go one step
> > further and remove the field tja11xx_priv.hwmon_name as well as
> > hwmon_dev.
> >
> This is part of the patch. Or what do you mean?
Uh you are correct :( meh OK sory for the noise then, morning coffee
didn't go through entirely this morning it seems.
Maxime
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH net-next 0/4] net: phy: remove calls to devm_hwmon_sanitize_name
2025-03-13 19:43 [PATCH net-next 0/4] net: phy: remove calls to devm_hwmon_sanitize_name Heiner Kallweit
` (3 preceding siblings ...)
2025-03-13 19:46 ` [PATCH net-next 4/4] net: phy: marvell-88q2xxx: " Heiner Kallweit
@ 2025-03-14 17:23 ` Maxime Chevallier
2025-03-21 17:10 ` patchwork-bot+netdevbpf
5 siblings, 0 replies; 10+ messages in thread
From: Maxime Chevallier @ 2025-03-14 17:23 UTC (permalink / raw)
To: Heiner Kallweit
Cc: Andrew Lunn, Russell King - ARM Linux, Paolo Abeni, Eric Dumazet,
Jakub Kicinski, David Miller, Xu Liang, netdev@vger.kernel.org,
Jean Delvare, Guenter Roeck, linux-hwmon@vger.kernel.org
Hi Heiner,
On Thu, 13 Mar 2025 20:43:44 +0100
Heiner Kallweit <hkallweit1@gmail.com> wrote:
> Since c909e68f8127 ("hwmon: (core) Use device name as a fallback in
> devm_hwmon_device_register_with_info") we can simply provide NULL
> as name argument.
>
> Heiner Kallweit (4):
> net: phy: realtek: remove call to devm_hwmon_sanitize_name
> net: phy: tja11xx: remove call to devm_hwmon_sanitize_name
> net: phy: mxl-gpy: remove call to devm_hwmon_sanitize_name
> net: phy: marvell-88q2xxx: remove call to devm_hwmon_sanitize_name
>
> drivers/net/phy/marvell-88q2xxx.c | 8 +-------
> drivers/net/phy/mxl-gpy.c | 8 +-------
> drivers/net/phy/nxp-tja11xx.c | 19 +++++--------------
> drivers/net/phy/realtek/realtek_hwmon.c | 7 +------
> 4 files changed, 8 insertions(+), 34 deletions(-)
>
With more coffee in my system, I took a better look and it indeed looks
good to me.
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Sorry about the noisy comments,
Maxime
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH net-next 0/4] net: phy: remove calls to devm_hwmon_sanitize_name
2025-03-13 19:43 [PATCH net-next 0/4] net: phy: remove calls to devm_hwmon_sanitize_name Heiner Kallweit
` (4 preceding siblings ...)
2025-03-14 17:23 ` [PATCH net-next 0/4] net: phy: remove calls " Maxime Chevallier
@ 2025-03-21 17:10 ` patchwork-bot+netdevbpf
5 siblings, 0 replies; 10+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-03-21 17:10 UTC (permalink / raw)
To: Heiner Kallweit
Cc: andrew, linux, pabeni, edumazet, kuba, davem, lxu, netdev,
jdelvare, linux, linux-hwmon
Hello:
This series was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@redhat.com>:
On Thu, 13 Mar 2025 20:43:44 +0100 you wrote:
> Since c909e68f8127 ("hwmon: (core) Use device name as a fallback in
> devm_hwmon_device_register_with_info") we can simply provide NULL
> as name argument.
>
> Heiner Kallweit (4):
> net: phy: realtek: remove call to devm_hwmon_sanitize_name
> net: phy: tja11xx: remove call to devm_hwmon_sanitize_name
> net: phy: mxl-gpy: remove call to devm_hwmon_sanitize_name
> net: phy: marvell-88q2xxx: remove call to devm_hwmon_sanitize_name
>
> [...]
Here is the summary with links:
- [net-next,1/4] net: phy: realtek: remove call to devm_hwmon_sanitize_name
https://git.kernel.org/netdev/net-next/c/62e36b244135
- [net-next,2/4] net: phy: tja11xx: remove call to devm_hwmon_sanitize_name
https://git.kernel.org/netdev/net-next/c/91ee21962430
- [net-next,3/4] net: phy: mxl-gpy: remove call to devm_hwmon_sanitize_name
https://git.kernel.org/netdev/net-next/c/0426bd18af92
- [net-next,4/4] net: phy: marvell-88q2xxx: remove call to devm_hwmon_sanitize_name
https://git.kernel.org/netdev/net-next/c/345be5cd6e1d
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2025-03-21 17:09 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-13 19:43 [PATCH net-next 0/4] net: phy: remove calls to devm_hwmon_sanitize_name Heiner Kallweit
2025-03-13 19:44 ` [PATCH net-next 1/4] net: phy: realtek: remove call " Heiner Kallweit
2025-03-13 19:45 ` [PATCH net-next 2/4] net: phy: tja11xx: " Heiner Kallweit
2025-03-14 7:45 ` Maxime Chevallier
2025-03-14 11:26 ` Heiner Kallweit
2025-03-14 11:47 ` Maxime Chevallier
2025-03-13 19:45 ` [PATCH net-next 3/4] net: phy: mxl-gpy: " Heiner Kallweit
2025-03-13 19:46 ` [PATCH net-next 4/4] net: phy: marvell-88q2xxx: " Heiner Kallweit
2025-03-14 17:23 ` [PATCH net-next 0/4] net: phy: remove calls " Maxime Chevallier
2025-03-21 17:10 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).