Home
last modified time | relevance | path

Searched refs:hwmon_dev (Results 1 – 25 of 162) sorted by relevance

1234567

/drivers/hwmon/
Dmax31722.c29 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()
Dmcp3021.c49 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()
Diio_hwmon.c32 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()
Dw83l785ts.c113 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()
Dadcxx.c53 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()
Ds3c-hwmon.c55 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()
Dwm8350-hwmon.c84 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()
Dpcf8591.c80 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()
Dmax1111.c41 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()
Dmc13783-adc.c39 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()
Dad7314.c103 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()
Dads1015.c67 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()
Dshtc1.c186 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()
Dvia-cputemp.c51 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()
Dmax197.c52 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()
Dk8temp.c41 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()
Dltc2990.c114 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()
Dsht21.c186 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()
Dlm70.c160 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()
Djz4740-hwmon.c96 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/
Dnouveau_hwmon.c671 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/
Dcore_hwmon.c58 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/
Dthermal.c165 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/
Dixgbe_sysfs.c174 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/
Digb_hwmon.c176 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()

1234567