Home
last modified time | relevance | path

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

123456

/drivers/hwmon/
Dtmp102.c55 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()
Dad7314.c39 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()
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
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()
Dlm75.c77 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()
Dads7871.c75 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()
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()
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()
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()
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()
Dlm70.c136 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()
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()
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()
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()
Dhtu21.c133 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()
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()
Dmenf21bmc_hwmon.c192 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/
Dnouveau_hwmon.c566 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/
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()

123456