/drivers/hwmon/ |
D | tmp102.c | 55 struct device *hwmon_dev; member 165 struct device *hwmon_dev; in tmp102_probe() local 209 hwmon_dev = hwmon_device_register_with_groups(dev, client->name, in tmp102_probe() 211 if (IS_ERR(hwmon_dev)) { in tmp102_probe() 213 status = PTR_ERR(hwmon_dev); in tmp102_probe() 216 tmp102->hwmon_dev = hwmon_dev; in tmp102_probe() 217 tmp102->tz = thermal_zone_of_sensor_register(hwmon_dev, 0, hwmon_dev, in tmp102_probe() 236 thermal_zone_of_sensor_unregister(tmp102->hwmon_dev, tmp102->tz); in tmp102_remove() 237 hwmon_device_unregister(tmp102->hwmon_dev); in tmp102_remove()
|
D | ad7314.c | 39 struct device *hwmon_dev; member 125 chip->hwmon_dev = hwmon_device_register(&spi_dev->dev); in ad7314_probe() 126 if (IS_ERR(chip->hwmon_dev)) { in ad7314_probe() 127 ret = PTR_ERR(chip->hwmon_dev); in ad7314_probe() 142 hwmon_device_unregister(chip->hwmon_dev); in ad7314_remove()
|
D | mcp3021.c | 49 struct device *hwmon_dev; member 146 data->hwmon_dev = hwmon_device_register(&client->dev); in mcp3021_probe() 147 if (IS_ERR(data->hwmon_dev)) { in mcp3021_probe() 148 err = PTR_ERR(data->hwmon_dev); in mcp3021_probe() 163 hwmon_device_unregister(data->hwmon_dev); in mcp3021_remove()
|
D | iio_hwmon.c | 32 struct device *hwmon_dev; member 142 st->hwmon_dev = hwmon_device_register_with_groups(dev, name, st, in iio_hwmon_probe() 144 if (IS_ERR(st->hwmon_dev)) { in iio_hwmon_probe() 145 ret = PTR_ERR(st->hwmon_dev); in iio_hwmon_probe() 160 hwmon_device_unregister(st->hwmon_dev); in iio_hwmon_remove()
|
D | lm75.c | 77 struct device *hwmon_dev; member 289 data->hwmon_dev = hwmon_device_register_with_groups(dev, client->name, in lm75_probe() 291 if (IS_ERR(data->hwmon_dev)) in lm75_probe() 292 return PTR_ERR(data->hwmon_dev); in lm75_probe() 294 data->tz = thermal_zone_of_sensor_register(data->hwmon_dev, in lm75_probe() 296 data->hwmon_dev, in lm75_probe() 302 dev_name(data->hwmon_dev), client->name); in lm75_probe() 311 thermal_zone_of_sensor_unregister(data->hwmon_dev, data->tz); in lm75_remove() 312 hwmon_device_unregister(data->hwmon_dev); in lm75_remove()
|
D | ads7871.c | 75 struct device *hwmon_dev; member 215 pdata->hwmon_dev = hwmon_device_register(&spi->dev); in ads7871_probe() 216 if (IS_ERR(pdata->hwmon_dev)) { in ads7871_probe() 217 err = PTR_ERR(pdata->hwmon_dev); in ads7871_probe() 232 hwmon_device_unregister(pdata->hwmon_dev); in ads7871_remove()
|
D | w83l785ts.c | 113 struct device *hwmon_dev; member 207 data->hwmon_dev = hwmon_device_register(dev); in w83l785ts_probe() 208 if (IS_ERR(data->hwmon_dev)) { in w83l785ts_probe() 209 err = PTR_ERR(data->hwmon_dev); in w83l785ts_probe() 225 hwmon_device_unregister(data->hwmon_dev); in w83l785ts_remove()
|
D | adcxx.c | 53 struct device *hwmon_dev; member 192 adc->hwmon_dev = hwmon_device_register(&spi->dev); in adcxx_probe() 193 if (IS_ERR(adc->hwmon_dev)) { in adcxx_probe() 195 status = PTR_ERR(adc->hwmon_dev); in adcxx_probe() 216 hwmon_device_unregister(adc->hwmon_dev); in adcxx_remove()
|
D | s3c-hwmon.c | 55 struct device *hwmon_dev; member 311 hwmon->hwmon_dev = hwmon_device_register(&dev->dev); in s3c_hwmon_probe() 312 if (IS_ERR(hwmon->hwmon_dev)) { in s3c_hwmon_probe() 314 ret = PTR_ERR(hwmon->hwmon_dev); in s3c_hwmon_probe() 351 hwmon_device_unregister(hwmon->hwmon_dev); in s3c_hwmon_probe() 372 hwmon_device_unregister(hwmon->hwmon_dev); in s3c_hwmon_remove()
|
D | wm8350-hwmon.c | 84 struct device *hwmon_dev; in wm8350_hwmon_probe() local 86 hwmon_dev = devm_hwmon_device_register_with_groups(&pdev->dev, "wm8350", in wm8350_hwmon_probe() 89 return PTR_ERR_OR_ZERO(hwmon_dev); in wm8350_hwmon_probe()
|
D | pcf8591.c | 80 struct device *hwmon_dev; member 233 data->hwmon_dev = hwmon_device_register(&client->dev); in pcf8591_probe() 234 if (IS_ERR(data->hwmon_dev)) { in pcf8591_probe() 235 err = PTR_ERR(data->hwmon_dev); in pcf8591_probe() 251 hwmon_device_unregister(data->hwmon_dev); in pcf8591_remove()
|
D | mc13783-adc.c | 39 struct device *hwmon_dev; member 212 priv->hwmon_dev = hwmon_device_register(&pdev->dev); in mc13783_adc_probe() 213 if (IS_ERR(priv->hwmon_dev)) { in mc13783_adc_probe() 214 ret = PTR_ERR(priv->hwmon_dev); in mc13783_adc_probe() 241 hwmon_device_unregister(priv->hwmon_dev); in mc13783_adc_remove()
|
D | max1111.c | 41 struct device *hwmon_dev; member 242 data->hwmon_dev = hwmon_device_register(&spi->dev); in max1111_probe() 243 if (IS_ERR(data->hwmon_dev)) { in max1111_probe() 245 err = PTR_ERR(data->hwmon_dev); in max1111_probe() 267 hwmon_device_unregister(data->hwmon_dev); in max1111_remove()
|
D | ads1015.c | 67 struct device *hwmon_dev; member 170 hwmon_device_unregister(data->hwmon_dev); in ads1015_remove() 285 data->hwmon_dev = hwmon_device_register(&client->dev); in ads1015_probe() 286 if (IS_ERR(data->hwmon_dev)) { in ads1015_probe() 287 err = PTR_ERR(data->hwmon_dev); in ads1015_probe()
|
D | lm70.c | 136 struct device *hwmon_dev; in lm70_probe() local 153 hwmon_dev = devm_hwmon_device_register_with_groups(&spi->dev, in lm70_probe() 156 return PTR_ERR_OR_ZERO(hwmon_dev); in lm70_probe()
|
D | shtc1.c | 186 struct device *hwmon_dev; in shtc1_probe() local 223 hwmon_dev = devm_hwmon_device_register_with_groups(dev, in shtc1_probe() 227 if (IS_ERR(hwmon_dev)) in shtc1_probe() 230 return PTR_ERR_OR_ZERO(hwmon_dev); in shtc1_probe()
|
D | via-cputemp.c | 51 struct device *hwmon_dev; member 178 data->hwmon_dev = hwmon_device_register(&pdev->dev); in via_cputemp_probe() 179 if (IS_ERR(data->hwmon_dev)) { in via_cputemp_probe() 180 err = PTR_ERR(data->hwmon_dev); in via_cputemp_probe() 199 hwmon_device_unregister(data->hwmon_dev); in via_cputemp_remove()
|
D | k8temp.c | 41 struct device *hwmon_dev; member 285 data->hwmon_dev = hwmon_device_register(&pdev->dev); in k8temp_probe() 287 if (IS_ERR(data->hwmon_dev)) { in k8temp_probe() 288 err = PTR_ERR(data->hwmon_dev); in k8temp_probe() 311 hwmon_device_unregister(data->hwmon_dev); in k8temp_remove()
|
D | max197.c | 52 struct device *hwmon_dev; member 303 data->hwmon_dev = hwmon_device_register(&pdev->dev); in max197_probe() 304 if (IS_ERR(data->hwmon_dev)) { in max197_probe() 305 ret = PTR_ERR(data->hwmon_dev); in max197_probe() 321 hwmon_device_unregister(data->hwmon_dev); in max197_remove()
|
D | htu21.c | 133 struct device *hwmon_dev; in htu21_probe() local 149 hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, in htu21_probe() 152 return PTR_ERR_OR_ZERO(hwmon_dev); in htu21_probe()
|
D | sht21.c | 186 struct device *hwmon_dev; in sht21_probe() local 204 hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, in sht21_probe() 206 return PTR_ERR_OR_ZERO(hwmon_dev); in sht21_probe()
|
D | menf21bmc_hwmon.c | 192 struct device *hwmon_dev; in menf21bmc_hwmon_probe() local 207 hwmon_dev = devm_hwmon_device_register_with_groups(&pdev->dev, in menf21bmc_hwmon_probe() 210 if (IS_ERR(hwmon_dev)) in menf21bmc_hwmon_probe() 211 return PTR_ERR(hwmon_dev); in menf21bmc_hwmon_probe()
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_hwmon.c | 566 struct device *hwmon_dev; in nouveau_hwmon_init() local 577 hwmon_dev = hwmon_device_register(&dev->pdev->dev); in nouveau_hwmon_init() 578 if (IS_ERR(hwmon_dev)) { in nouveau_hwmon_init() 579 ret = PTR_ERR(hwmon_dev); in nouveau_hwmon_init() 583 dev_set_drvdata(hwmon_dev, dev); in nouveau_hwmon_init() 586 ret = sysfs_create_group(&hwmon_dev->kobj, &hwmon_default_attrgroup); in nouveau_hwmon_init() 592 ret = sysfs_create_group(&hwmon_dev->kobj, &hwmon_temp_attrgroup); in nouveau_hwmon_init() 602 ret = sysfs_create_group(&hwmon_dev->kobj, in nouveau_hwmon_init() 610 ret = sysfs_create_group(&hwmon_dev->kobj, in nouveau_hwmon_init() 616 hwmon->hwmon = hwmon_dev; in nouveau_hwmon_init() [all …]
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_sysfs.c | 174 struct device *hwmon_dev; in ixgbe_sysfs_init() local 221 hwmon_dev = devm_hwmon_device_register_with_groups(&adapter->pdev->dev, in ixgbe_sysfs_init() 225 if (IS_ERR(hwmon_dev)) in ixgbe_sysfs_init() 226 rc = PTR_ERR(hwmon_dev); in ixgbe_sysfs_init()
|
/drivers/net/ethernet/intel/igb/ |
D | igb_hwmon.c | 176 struct device *hwmon_dev; in igb_sysfs_init() local 233 hwmon_dev = devm_hwmon_device_register_with_groups(&adapter->pdev->dev, in igb_sysfs_init() 237 if (IS_ERR(hwmon_dev)) { in igb_sysfs_init() 238 rc = PTR_ERR(hwmon_dev); in igb_sysfs_init()
|