/drivers/hwmon/ |
D | max31722.c | 29 struct device *hwmon_dev; member 97 data->hwmon_dev = hwmon_device_register_with_groups(&spi->dev, in max31722_probe() 101 if (IS_ERR(data->hwmon_dev)) { in max31722_probe() 103 return PTR_ERR(data->hwmon_dev); in max31722_probe() 113 hwmon_device_unregister(data->hwmon_dev); in max31722_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 159 st->hwmon_dev = hwmon_device_register_with_groups(dev, sname, st, in iio_hwmon_probe() 161 if (IS_ERR(st->hwmon_dev)) { in iio_hwmon_probe() 162 ret = PTR_ERR(st->hwmon_dev); in iio_hwmon_probe() 177 hwmon_device_unregister(st->hwmon_dev); in iio_hwmon_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 | 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 | 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 | ad7314.c | 103 struct device *hwmon_dev; in ad7314_probe() local 110 hwmon_dev = devm_hwmon_device_register_with_groups(&spi_dev->dev, in ad7314_probe() 113 return PTR_ERR_OR_ZERO(hwmon_dev); in ad7314_probe()
|
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 | 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 | 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 | 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 | ltc2990.c | 114 struct device *hwmon_dev; in ltc2990_i2c_probe() local 135 hwmon_dev = devm_hwmon_device_register_with_groups(&i2c->dev, in ltc2990_i2c_probe() 140 return PTR_ERR_OR_ZERO(hwmon_dev); in ltc2990_i2c_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 | lm70.c | 160 struct device *hwmon_dev; in lm70_probe() local 184 hwmon_dev = devm_hwmon_device_register_with_groups(&spi->dev, in lm70_probe() 187 return PTR_ERR_OR_ZERO(hwmon_dev); in lm70_probe()
|
D | jz4740-hwmon.c | 96 struct device *hwmon_dev; in jz4740_hwmon_probe() local 129 hwmon_dev = devm_hwmon_device_register_with_groups(dev, "jz4740", hwmon, in jz4740_hwmon_probe() 131 return PTR_ERR_OR_ZERO(hwmon_dev); in jz4740_hwmon_probe()
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_hwmon.c | 671 struct device *hwmon_dev; in nouveau_hwmon_init() local 679 hwmon_dev = hwmon_device_register(dev->dev); in nouveau_hwmon_init() 680 if (IS_ERR(hwmon_dev)) { in nouveau_hwmon_init() 681 ret = PTR_ERR(hwmon_dev); in nouveau_hwmon_init() 685 dev_set_drvdata(hwmon_dev, dev); in nouveau_hwmon_init() 688 ret = sysfs_create_group(&hwmon_dev->kobj, &hwmon_default_attrgroup); in nouveau_hwmon_init() 695 ret = sysfs_create_group(&hwmon_dev->kobj, &hwmon_temp_attrgroup); in nouveau_hwmon_init() 705 ret = sysfs_create_group(&hwmon_dev->kobj, in nouveau_hwmon_init() 714 ret = sysfs_create_group(&hwmon_dev->kobj, in nouveau_hwmon_init() 721 ret = sysfs_create_group(&hwmon_dev->kobj, in nouveau_hwmon_init() [all …]
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | core_hwmon.c | 58 struct device *hwmon_dev; member 334 struct device *hwmon_dev; in mlxsw_hwmon_init() local 355 hwmon_dev = devm_hwmon_device_register_with_groups(mlxsw_bus_info->dev, in mlxsw_hwmon_init() 359 if (IS_ERR(hwmon_dev)) { in mlxsw_hwmon_init() 360 err = PTR_ERR(hwmon_dev); in mlxsw_hwmon_init() 364 mlxsw_hwmon->hwmon_dev = hwmon_dev; in mlxsw_hwmon_init()
|
/drivers/net/wireless/ath/ath10k/ |
D | thermal.c | 165 struct device *hwmon_dev; in ath10k_thermal_register() local 198 hwmon_dev = devm_hwmon_device_register_with_groups(ar->dev, in ath10k_thermal_register() 201 if (IS_ERR(hwmon_dev)) { in ath10k_thermal_register() 203 PTR_ERR(hwmon_dev)); in ath10k_thermal_register()
|
/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()
|