Searched refs:hwmon_name (Results 1 – 5 of 5) sorted by relevance
/drivers/net/phy/ |
D | aquantia_hwmon.c | 228 char *hwmon_name; in aqr_hwmon_probe() local 231 hwmon_name = devm_kstrdup(dev, dev_name(dev), GFP_KERNEL); in aqr_hwmon_probe() 232 if (!hwmon_name) in aqr_hwmon_probe() 235 for (i = j = 0; hwmon_name[i]; i++) { in aqr_hwmon_probe() 236 if (isalnum(hwmon_name[i])) { in aqr_hwmon_probe() 238 hwmon_name[j] = hwmon_name[i]; in aqr_hwmon_probe() 242 hwmon_name[j] = '\0'; in aqr_hwmon_probe() 244 hwmon_dev = devm_hwmon_device_register_with_info(dev, hwmon_name, in aqr_hwmon_probe()
|
D | marvell10g.c | 66 char *hwmon_name; member 170 priv->hwmon_name = devm_kstrdup(dev, dev_name(dev), GFP_KERNEL); in mv3310_hwmon_probe() 171 if (!priv->hwmon_name) in mv3310_hwmon_probe() 174 for (i = j = 0; priv->hwmon_name[i]; i++) { in mv3310_hwmon_probe() 175 if (isalnum(priv->hwmon_name[i])) { in mv3310_hwmon_probe() 177 priv->hwmon_name[j] = priv->hwmon_name[i]; in mv3310_hwmon_probe() 181 priv->hwmon_name[j] = '\0'; in mv3310_hwmon_probe() 192 priv->hwmon_name, phydev, in mv3310_hwmon_probe()
|
D | nxp-tja11xx.c | 53 char *hwmon_name; member 340 priv->hwmon_name = devm_kstrdup(dev, dev_name(dev), GFP_KERNEL); in tja11xx_probe() 341 if (!priv->hwmon_name) in tja11xx_probe() 344 for (i = 0; priv->hwmon_name[i]; i++) in tja11xx_probe() 345 if (hwmon_is_bad_char(priv->hwmon_name[i])) in tja11xx_probe() 346 priv->hwmon_name[i] = '_'; in tja11xx_probe() 349 devm_hwmon_device_register_with_info(dev, priv->hwmon_name, in tja11xx_probe()
|
D | sfp.c | 205 char *hwmon_name; member 1165 sfp->hwmon_name = kstrdup(dev_name(sfp->dev), GFP_KERNEL); in sfp_hwmon_insert() 1166 if (!sfp->hwmon_name) in sfp_hwmon_insert() 1169 for (i = 0; sfp->hwmon_name[i]; i++) in sfp_hwmon_insert() 1170 if (hwmon_is_bad_char(sfp->hwmon_name[i])) in sfp_hwmon_insert() 1171 sfp->hwmon_name[i] = '_'; in sfp_hwmon_insert() 1174 sfp->hwmon_name, sfp, in sfp_hwmon_insert() 1186 kfree(sfp->hwmon_name); in sfp_hwmon_remove()
|
D | marvell.c | 193 char *hwmon_name; member 2024 priv->hwmon_name = devm_kzalloc(dev, len, GFP_KERNEL); in marvell_hwmon_name() 2025 if (!priv->hwmon_name) in marvell_hwmon_name() 2030 priv->hwmon_name[j++] = devname[i]; in marvell_hwmon_name() 2048 dev, priv->hwmon_name, phydev, chip, NULL); in marvell_hwmon_probe()
|