[PATCH net-next 6/9] net: phy: mediatek: Hook LED helper functions in mtk-ge.c
Andrew Lunn
andrew at lunn.ch
Sun Oct 6 14:32:00 PDT 2024
> +static int mt753x_phy_led_blink_set(struct phy_device *phydev, u8 index,
> + unsigned long *delay_on,
> + unsigned long *delay_off)
> +{
> + struct mtk_gephy_priv *priv = phydev->priv;
> + bool blinking = false;
> + int err = 0;
There is no need to set err.
> +
> + err = mtk_phy_led_num_dly_cfg(index, delay_on, delay_off, &blinking);
> + if (err < 0)
> + return err;
Andrew
---
pw-bot: cr
More information about the linux-arm-kernel
mailing list