/drivers/hwmon/ |
D | raspberrypi-hwmon.c | 21 struct device *hwmon_dev; member 38 dev_err_once(data->hwmon_dev, "Failed to get throttled (%d)\n", in rpi_firmware_get_throttled() 51 dev_crit(data->hwmon_dev, "Undervoltage detected!\n"); in rpi_firmware_get_throttled() 53 dev_info(data->hwmon_dev, "Voltage normalised\n"); in rpi_firmware_get_throttled() 55 sysfs_notify(&data->hwmon_dev->kobj, NULL, "in0_lcrit_alarm"); in rpi_firmware_get_throttled() 117 data->hwmon_dev = devm_hwmon_device_register_with_info(dev, "rpi_volt", in rpi_hwmon_probe() 125 if (!PTR_ERR_OR_ZERO(data->hwmon_dev)) in rpi_hwmon_probe() 128 return PTR_ERR_OR_ZERO(data->hwmon_dev); in rpi_hwmon_probe()
|
D | max31722.c | 26 struct device *hwmon_dev; member 92 data->hwmon_dev = hwmon_device_register_with_groups(&spi->dev, in max31722_probe() 96 if (IS_ERR(data->hwmon_dev)) { in max31722_probe() 98 return PTR_ERR(data->hwmon_dev); in max31722_probe() 108 hwmon_device_unregister(data->hwmon_dev); in max31722_remove()
|
D | ltq-cputemp.c | 88 struct device *hwmon_dev; in ltq_cputemp_probe() local 101 hwmon_dev = devm_hwmon_device_register_with_info(&pdev->dev, in ltq_cputemp_probe() 107 if (IS_ERR(hwmon_dev)) { in ltq_cputemp_probe() 109 return PTR_ERR(hwmon_dev); in ltq_cputemp_probe()
|
D | mcp3021.c | 48 struct device *hwmon_dev; member 156 data->hwmon_dev = hwmon_device_register(&client->dev); in mcp3021_probe() 157 if (IS_ERR(data->hwmon_dev)) { in mcp3021_probe() 158 err = PTR_ERR(data->hwmon_dev); in mcp3021_probe() 173 hwmon_device_unregister(data->hwmon_dev); in mcp3021_remove()
|
D | adcxx.c | 40 struct device *hwmon_dev; member 179 adc->hwmon_dev = hwmon_device_register(&spi->dev); in adcxx_probe() 180 if (IS_ERR(adc->hwmon_dev)) { in adcxx_probe() 182 status = PTR_ERR(adc->hwmon_dev); in adcxx_probe() 203 hwmon_device_unregister(adc->hwmon_dev); in adcxx_remove()
|
D | w83l785ts.c | 100 struct device *hwmon_dev; member 194 data->hwmon_dev = hwmon_device_register(dev); in w83l785ts_probe() 195 if (IS_ERR(data->hwmon_dev)) { in w83l785ts_probe() 196 err = PTR_ERR(data->hwmon_dev); in w83l785ts_probe() 212 hwmon_device_unregister(data->hwmon_dev); in w83l785ts_remove()
|
D | s3c-hwmon.c | 43 struct device *hwmon_dev; member 299 hwmon->hwmon_dev = hwmon_device_register(&dev->dev); in s3c_hwmon_probe() 300 if (IS_ERR(hwmon->hwmon_dev)) { in s3c_hwmon_probe() 302 ret = PTR_ERR(hwmon->hwmon_dev); in s3c_hwmon_probe() 339 hwmon_device_unregister(hwmon->hwmon_dev); in s3c_hwmon_probe() 360 hwmon_device_unregister(hwmon->hwmon_dev); in s3c_hwmon_remove()
|
D | pcf8591.c | 67 struct device *hwmon_dev; member 218 data->hwmon_dev = hwmon_device_register(&client->dev); in pcf8591_probe() 219 if (IS_ERR(data->hwmon_dev)) { in pcf8591_probe() 220 err = PTR_ERR(data->hwmon_dev); in pcf8591_probe() 236 hwmon_device_unregister(data->hwmon_dev); in pcf8591_remove()
|
D | wm8350-hwmon.c | 72 struct device *hwmon_dev; in wm8350_hwmon_probe() local 74 hwmon_dev = devm_hwmon_device_register_with_groups(&pdev->dev, "wm8350", in wm8350_hwmon_probe() 77 return PTR_ERR_OR_ZERO(hwmon_dev); in wm8350_hwmon_probe()
|
D | max1111.c | 38 struct device *hwmon_dev; member 239 data->hwmon_dev = hwmon_device_register(&spi->dev); in max1111_probe() 240 if (IS_ERR(data->hwmon_dev)) { in max1111_probe() 242 err = PTR_ERR(data->hwmon_dev); in max1111_probe() 264 hwmon_device_unregister(data->hwmon_dev); in max1111_remove()
|
D | via-cputemp.c | 38 struct device *hwmon_dev; member 168 data->hwmon_dev = hwmon_device_register(&pdev->dev); in via_cputemp_probe() 169 if (IS_ERR(data->hwmon_dev)) { in via_cputemp_probe() 170 err = PTR_ERR(data->hwmon_dev); in via_cputemp_probe() 189 hwmon_device_unregister(data->hwmon_dev); in via_cputemp_remove()
|
D | ad7314.c | 101 struct device *hwmon_dev; in ad7314_probe() local 108 hwmon_dev = devm_hwmon_device_register_with_groups(&spi_dev->dev, in ad7314_probe() 111 return PTR_ERR_OR_ZERO(hwmon_dev); in ad7314_probe()
|
D | mc13783-adc.c | 28 struct device *hwmon_dev; member 264 priv->hwmon_dev = hwmon_device_register(&pdev->dev); in mc13783_adc_probe() 265 if (IS_ERR(priv->hwmon_dev)) { in mc13783_adc_probe() 266 ret = PTR_ERR(priv->hwmon_dev); in mc13783_adc_probe() 293 hwmon_device_unregister(priv->hwmon_dev); in mc13783_adc_remove()
|
D | max197.c | 50 struct device *hwmon_dev; member 301 data->hwmon_dev = hwmon_device_register(&pdev->dev); in max197_probe() 302 if (IS_ERR(data->hwmon_dev)) { in max197_probe() 303 ret = PTR_ERR(data->hwmon_dev); in max197_probe() 319 hwmon_device_unregister(data->hwmon_dev); in max197_remove()
|
D | as370-hwmon.c | 106 struct device *hwmon_dev; in as370_hwmon_probe() local 120 hwmon_dev = devm_hwmon_device_register_with_info(dev, in as370_hwmon_probe() 125 return PTR_ERR_OR_ZERO(hwmon_dev); in as370_hwmon_probe()
|
D | tc74.c | 111 struct device *hwmon_dev; in tc74_probe() local 148 hwmon_dev = devm_hwmon_device_register_with_groups(dev, in tc74_probe() 151 return PTR_ERR_OR_ZERO(hwmon_dev); in tc74_probe()
|
D | i5500_temp.c | 107 struct device *hwmon_dev; in i5500_temp_probe() local 124 hwmon_dev = devm_hwmon_device_register_with_groups(&pdev->dev, in i5500_temp_probe() 127 return PTR_ERR_OR_ZERO(hwmon_dev); in i5500_temp_probe()
|
D | lm70.c | 154 struct device *hwmon_dev; in lm70_probe() local 178 hwmon_dev = devm_hwmon_device_register_with_groups(&spi->dev, in lm70_probe() 181 return PTR_ERR_OR_ZERO(hwmon_dev); in lm70_probe()
|
D | shtc1.c | 195 struct device *hwmon_dev; in shtc1_probe() local 241 hwmon_dev = devm_hwmon_device_register_with_groups(dev, in shtc1_probe() 245 if (IS_ERR(hwmon_dev)) in shtc1_probe() 248 return PTR_ERR_OR_ZERO(hwmon_dev); in shtc1_probe()
|
D | ultra45_env.c | 65 struct device *hwmon_dev; member 272 p->hwmon_dev = hwmon_device_register(&op->dev); in env_probe() 273 if (IS_ERR(p->hwmon_dev)) { in env_probe() 274 err = PTR_ERR(p->hwmon_dev); in env_probe() 299 hwmon_device_unregister(p->hwmon_dev); in env_remove()
|
/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_drvinfo.c | 113 struct device *hwmon_dev; in aq_drvinfo_init() local 116 hwmon_dev = devm_hwmon_device_register_with_info(dev, in aq_drvinfo_init() 122 if (IS_ERR(hwmon_dev)) in aq_drvinfo_init() 123 err = PTR_ERR(hwmon_dev); in aq_drvinfo_init()
|
/drivers/net/ethernet/netronome/nfp/ |
D | nfp_hwmon.c | 150 pf->hwmon_dev = hwmon_device_register_with_info(&pf->pdev->dev, "nfp", in nfp_hwmon_register() 153 return PTR_ERR_OR_ZERO(pf->hwmon_dev); in nfp_hwmon_register() 158 if (!IS_REACHABLE(CONFIG_HWMON) || !pf->hwmon_dev) in nfp_hwmon_unregister() 161 hwmon_device_unregister(pf->hwmon_dev); in nfp_hwmon_unregister()
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_sysfs.c | 149 struct device *hwmon_dev; in ixgbe_sysfs_init() local 196 hwmon_dev = devm_hwmon_device_register_with_groups(&adapter->pdev->dev, in ixgbe_sysfs_init() 200 if (IS_ERR(hwmon_dev)) in ixgbe_sysfs_init() 201 rc = PTR_ERR(hwmon_dev); in ixgbe_sysfs_init()
|
/drivers/net/wireless/ath/ath10k/ |
D | thermal.c | 157 struct device *hwmon_dev; in ath10k_thermal_register() local 194 hwmon_dev = devm_hwmon_device_register_with_groups(ar->dev, in ath10k_thermal_register() 197 if (IS_ERR(hwmon_dev)) { in ath10k_thermal_register() 199 PTR_ERR(hwmon_dev)); in ath10k_thermal_register()
|
/drivers/net/ethernet/intel/igb/ |
D | igb_hwmon.c | 156 struct device *hwmon_dev; in igb_sysfs_init() local 213 hwmon_dev = devm_hwmon_device_register_with_groups(&adapter->pdev->dev, in igb_sysfs_init() 217 if (IS_ERR(hwmon_dev)) { in igb_sysfs_init() 218 rc = PTR_ERR(hwmon_dev); in igb_sysfs_init()
|