Home
last modified time | relevance | path

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

123456789

/linux/drivers/hwmon/
A Draspberrypi-hwmon.c22 struct device *hwmon_dev; member
39 dev_err_once(data->hwmon_dev, "Failed to get throttled (%d)\n", in rpi_firmware_get_throttled()
52 dev_crit(data->hwmon_dev, "Undervoltage detected!\n"); in rpi_firmware_get_throttled()
54 dev_info(data->hwmon_dev, "Voltage normalised\n"); in rpi_firmware_get_throttled()
56 hwmon_notify_event(data->hwmon_dev, hwmon_in, hwmon_in_lcrit_alarm, 0); in rpi_firmware_get_throttled()
119 data->hwmon_dev = devm_hwmon_device_register_with_info(dev, "rpi_volt", in rpi_hwmon_probe()
130 if (!PTR_ERR_OR_ZERO(data->hwmon_dev)) in rpi_hwmon_probe()
133 return PTR_ERR_OR_ZERO(data->hwmon_dev); in rpi_hwmon_probe()
A Dmax31722.c25 struct device *hwmon_dev; member
91 data->hwmon_dev = hwmon_device_register_with_groups(&spi->dev, in max31722_probe()
95 if (IS_ERR(data->hwmon_dev)) { in max31722_probe()
97 return PTR_ERR(data->hwmon_dev); in max31722_probe()
108 hwmon_device_unregister(data->hwmon_dev); in max31722_remove()
A Dltq-cputemp.c88 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()
A Dmcp3021.c48 struct device *hwmon_dev; member
157 data->hwmon_dev = hwmon_device_register(&client->dev); in mcp3021_probe()
158 if (IS_ERR(data->hwmon_dev)) { in mcp3021_probe()
159 err = PTR_ERR(data->hwmon_dev); in mcp3021_probe()
174 hwmon_device_unregister(data->hwmon_dev); in mcp3021_remove()
A Dnzxt-kraken2.c32 struct device *hwmon_dev; member
173 priv->hwmon_dev = hwmon_device_register_with_info(&hdev->dev, "kraken2", in kraken2_probe()
176 if (IS_ERR(priv->hwmon_dev)) { in kraken2_probe()
177 ret = PTR_ERR(priv->hwmon_dev); in kraken2_probe()
195 hwmon_device_unregister(priv->hwmon_dev); in kraken2_remove()
A Dsl28cpld-hwmon.c98 struct device *hwmon_dev; in sl28cpld_hwmon_probe() local
116 hwmon_dev = devm_hwmon_device_register_with_info(&pdev->dev, in sl28cpld_hwmon_probe()
119 if (IS_ERR(hwmon_dev)) in sl28cpld_hwmon_probe()
122 return PTR_ERR_OR_ZERO(hwmon_dev); in sl28cpld_hwmon_probe()
A Dw83l785ts.c99 struct device *hwmon_dev; member
192 data->hwmon_dev = hwmon_device_register(dev); in w83l785ts_probe()
193 if (IS_ERR(data->hwmon_dev)) { in w83l785ts_probe()
194 err = PTR_ERR(data->hwmon_dev); in w83l785ts_probe()
210 hwmon_device_unregister(data->hwmon_dev); in w83l785ts_remove()
A Dadcxx.c40 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()
A Ds3c-hwmon.c43 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()
A Dpcf8591.c67 struct device *hwmon_dev; member
217 data->hwmon_dev = hwmon_device_register(&client->dev); in pcf8591_probe()
218 if (IS_ERR(data->hwmon_dev)) { in pcf8591_probe()
219 err = PTR_ERR(data->hwmon_dev); in pcf8591_probe()
235 hwmon_device_unregister(data->hwmon_dev); in pcf8591_remove()
A Dwm8350-hwmon.c72 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()
A Dvia-cputemp.c38 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()
A Dmax1111.c38 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()
A Dad7314.c101 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()
A Dmax197.c50 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()
A Dmc13783-adc.c28 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()
A Daquacomputer_d5next.c87 struct device *hwmon_dev; member
301 priv->hwmon_dev = hwmon_device_register_with_info(&hdev->dev, "d5next", priv, in d5next_probe()
304 if (IS_ERR(priv->hwmon_dev)) { in d5next_probe()
305 ret = PTR_ERR(priv->hwmon_dev); in d5next_probe()
325 hwmon_device_unregister(priv->hwmon_dev); in d5next_remove()
A Das370-hwmon.c106 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()
A Di5500_temp.c116 struct device *hwmon_dev; in i5500_temp_probe() local
133 hwmon_dev = devm_hwmon_device_register_with_info(&pdev->dev, "intel5500", NULL, in i5500_temp_probe()
135 return PTR_ERR_OR_ZERO(hwmon_dev); in i5500_temp_probe()
/linux/drivers/net/ethernet/aquantia/atlantic/
A Daq_drvinfo.c141 struct device *hwmon_dev; in aq_drvinfo_init() local
144 hwmon_dev = devm_hwmon_device_register_with_info(dev, in aq_drvinfo_init()
150 if (IS_ERR(hwmon_dev)) in aq_drvinfo_init()
151 err = PTR_ERR(hwmon_dev); in aq_drvinfo_init()
/linux/drivers/net/ethernet/netronome/nfp/
A Dnfp_hwmon.c150 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()
/linux/drivers/net/ethernet/intel/ixgbe/
A Dixgbe_sysfs.c149 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()
/linux/drivers/net/wireless/ath/ath10k/
A Dthermal.c157 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()
/linux/drivers/net/wireless/ath/ath11k/
A Dthermal.c160 struct device *hwmon_dev; in ath11k_thermal_register() local
193 hwmon_dev = devm_hwmon_device_register_with_groups(&ar->hw->wiphy->dev, in ath11k_thermal_register()
196 if (IS_ERR(hwmon_dev)) { in ath11k_thermal_register()
198 PTR_ERR(hwmon_dev)); in ath11k_thermal_register()
/linux/drivers/net/ethernet/intel/igb/
A Digb_hwmon.c156 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()

Completed in 32 milliseconds

123456789