Home
last modified time | relevance | path

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

1234

/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_hwmon.c25 if (!bp->hwmon_dev) in bnxt_hwmon_notify_event()
43 hwmon_notify_event(bp->hwmon_dev, hwmon_temp, attr, 0); in bnxt_hwmon_notify_event()
212 if (bp->hwmon_dev) { in bnxt_hwmon_uninit()
213 hwmon_device_unregister(bp->hwmon_dev); in bnxt_hwmon_uninit()
214 bp->hwmon_dev = NULL; in bnxt_hwmon_uninit()
230 if (bp->hwmon_dev) in bnxt_hwmon_init()
233 bp->hwmon_dev = hwmon_device_register_with_info(&pdev->dev, in bnxt_hwmon_init()
237 if (IS_ERR(bp->hwmon_dev)) { in bnxt_hwmon_init()
238 bp->hwmon_dev = NULL; in bnxt_hwmon_init()
/linux/drivers/hwmon/
H 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()
H A Dsl28cpld-hwmon.c80 struct device *hwmon_dev; in sl28cpld_hwmon_probe() local
98 hwmon_dev = devm_hwmon_device_register_with_info(&pdev->dev, in sl28cpld_hwmon_probe()
101 if (IS_ERR(hwmon_dev)) in sl28cpld_hwmon_probe()
104 return PTR_ERR_OR_ZERO(hwmon_dev); in sl28cpld_hwmon_probe()
H A Dadcxx.c39 struct device *hwmon_dev; member
178 adc->hwmon_dev = hwmon_device_register(&spi->dev); in adcxx_probe()
179 if (IS_ERR(adc->hwmon_dev)) { in adcxx_probe()
181 status = PTR_ERR(adc->hwmon_dev); in adcxx_probe()
202 hwmon_device_unregister(adc->hwmon_dev); in adcxx_remove()
H 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()
H A Dmax1111.c38 struct device *hwmon_dev; member
240 data->hwmon_dev = hwmon_device_register(&spi->dev); in max1111_probe()
241 if (IS_ERR(data->hwmon_dev)) { in max1111_probe()
243 err = PTR_ERR(data->hwmon_dev); in max1111_probe()
265 hwmon_device_unregister(data->hwmon_dev); in max1111_remove()
H A Dad7314.c111 struct device *hwmon_dev; in ad7314_probe() local
118 hwmon_dev = devm_hwmon_device_register_with_groups(&spi_dev->dev, in ad7314_probe()
121 return PTR_ERR_OR_ZERO(hwmon_dev); in ad7314_probe()
H A Das370-hwmon.c96 struct device *hwmon_dev; in as370_hwmon_probe() local
110 hwmon_dev = devm_hwmon_device_register_with_info(dev, in as370_hwmon_probe()
115 return PTR_ERR_OR_ZERO(hwmon_dev); in as370_hwmon_probe()
H A Dsparx5-temp.c106 struct device *hwmon_dev; in s5_temp_probe() local
123 hwmon_dev = devm_hwmon_device_register_with_info(&pdev->dev, in s5_temp_probe()
129 return PTR_ERR_OR_ZERO(hwmon_dev); in s5_temp_probe()
H A Dgxp-fan-ctrl.c112 struct device *hwmon_dev; in gxp_fan_ctrl_probe() local
123 hwmon_dev = devm_hwmon_device_register_with_info(&pdev->dev, in gxp_fan_ctrl_probe()
129 return PTR_ERR_OR_ZERO(hwmon_dev); in gxp_fan_ctrl_probe()
H A Dmax197.c41 * @hwmon_dev: The hwmon device.
49 struct device *hwmon_dev; member
300 data->hwmon_dev = hwmon_device_register(&pdev->dev); in max197_probe()
301 if (IS_ERR(data->hwmon_dev)) { in max197_probe()
302 ret = PTR_ERR(data->hwmon_dev); in max197_probe()
318 hwmon_device_unregister(data->hwmon_dev); in max197_remove()
H A Dmc13783-adc.c27 struct device *hwmon_dev; member
263 priv->hwmon_dev = hwmon_device_register(&pdev->dev); in mc13783_adc_probe()
264 if (IS_ERR(priv->hwmon_dev)) { in mc13783_adc_probe()
265 ret = PTR_ERR(priv->hwmon_dev); in mc13783_adc_probe()
292 hwmon_device_unregister(priv->hwmon_dev); in mc13783_adc_remove()
H A Dlm70.c167 struct device *hwmon_dev; in lm70_probe() local
187 hwmon_dev = devm_hwmon_device_register_with_groups(&spi->dev, in lm70_probe()
190 return PTR_ERR_OR_ZERO(hwmon_dev); in lm70_probe()
H A Dgigabyte_waterforce.c52 struct device *hwmon_dev; member
374 priv->hwmon_dev = hwmon_device_register_with_info(&hdev->dev, "waterforce", in waterforce_probe()
376 if (IS_ERR(priv->hwmon_dev)) { in waterforce_probe()
377 ret = PTR_ERR(priv->hwmon_dev); in waterforce_probe()
400 hwmon_device_unregister(priv->hwmon_dev);
H A Dlm90.c730 struct device *hwmon_dev; member
1095 struct device *hwmon_dev = data->hwmon_dev; in lm90_report_alarms() local
1127 hwmon_notify_event(hwmon_dev, hwmon_temp, hwmon_temp_min_alarm, 0); in lm90_report_alarms()
1129 hwmon_notify_event(hwmon_dev, hwmon_temp, hwmon_temp_min_alarm, 1); in lm90_report_alarms()
1131 hwmon_notify_event(hwmon_dev, hwmon_temp, hwmon_temp_min_alarm, 2); in lm90_report_alarms()
1134 hwmon_notify_event(hwmon_dev, hwmon_temp, hwmon_temp_max_alarm, 0); in lm90_report_alarms()
1136 hwmon_notify_event(hwmon_dev, hwmon_temp, hwmon_temp_max_alarm, 1); in lm90_report_alarms()
1138 hwmon_notify_event(hwmon_dev, hwmon_temp, hwmon_temp_max_alarm, 2); in lm90_report_alarms()
1141 hwmon_notify_event(hwmon_dev, hwmon_tem in lm90_report_alarms()
2777 struct device *hwmon_dev; lm90_probe() local
[all...]
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_hwmon.c120 pf->hwmon_dev = hwmon_device_register_with_info(&pf->pdev->dev, "nfp", in nfp_hwmon_register()
123 return PTR_ERR_OR_ZERO(pf->hwmon_dev); in nfp_hwmon_register()
128 if (!IS_REACHABLE(CONFIG_HWMON) || !pf->hwmon_dev) in nfp_hwmon_unregister()
131 hwmon_device_unregister(pf->hwmon_dev); in nfp_hwmon_unregister()
/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_drvinfo.c131 struct device *hwmon_dev; in aq_drvinfo_init() local
134 hwmon_dev = devm_hwmon_device_register_with_info(dev, in aq_drvinfo_init()
140 if (IS_ERR(hwmon_dev)) in aq_drvinfo_init()
141 err = PTR_ERR(hwmon_dev); in aq_drvinfo_init()
/linux/drivers/misc/amd-sbi/
H A Drmi-hwmon.c115 struct device *hwmon_dev; in create_hwmon_sensor_device() local
117 hwmon_dev = devm_hwmon_device_register_with_info(dev, "sbrmi", data, in create_hwmon_sensor_device()
119 return PTR_ERR_OR_ZERO(hwmon_dev); in create_hwmon_sensor_device()
/linux/drivers/platform/x86/amd/hsmp/
H A Dhwmon.c116 struct device *hwmon_dev; in hsmp_create_sensor() local
118 hwmon_dev = devm_hwmon_device_register_with_info(dev, HSMP_HWMON_NAME, in hsmp_create_sensor()
122 return PTR_ERR_OR_ZERO(hwmon_dev); in hsmp_create_sensor()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_hwmon.c118 pf->hwmon_dev = hdev; in ice_hwmon_init()
123 if (!pf->hwmon_dev) in ice_hwmon_exit()
125 hwmon_device_unregister(pf->hwmon_dev); in ice_hwmon_exit()
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_sysfs.c149 struct device *hwmon_dev; in ixgbe_sysfs_init() local
195 hwmon_dev = devm_hwmon_device_register_with_groups(&adapter->pdev->dev, in ixgbe_sysfs_init()
199 if (IS_ERR(hwmon_dev)) in ixgbe_sysfs_init()
200 rc = PTR_ERR(hwmon_dev); in ixgbe_sysfs_init()
/linux/drivers/net/ethernet/intel/igb/
H A Digb_hwmon.c156 struct device *hwmon_dev; in igb_sysfs_init() local
212 hwmon_dev = devm_hwmon_device_register_with_groups(&adapter->pdev->dev, in igb_sysfs_init()
216 if (IS_ERR(hwmon_dev)) { in igb_sysfs_init()
217 rc = PTR_ERR(hwmon_dev); in igb_sysfs_init()
/linux/drivers/fsi/
H A Dfsi-occ.c600 struct platform_device *hwmon_dev = to_platform_device(dev); in occ_unregister_platform_child() local
602 platform_device_unregister(hwmon_dev); in occ_unregister_platform_child()
609 struct platform_device *hwmon_dev = to_platform_device(dev); in occ_unregister_of_child() local
611 of_device_unregister(hwmon_dev); in occ_unregister_of_child()
624 struct platform_device *hwmon_dev = NULL; in occ_probe() local
686 hwmon_dev = of_platform_device_create(hwmon_node, child_name, dev); in occ_probe()
690 if (!hwmon_dev) { in occ_probe()
693 hwmon_dev = platform_device_register_full(&hwmon_dev_info); in occ_probe()
694 if (IS_ERR(hwmon_dev)) in occ_probe()
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore_hwmon.c47 struct device *hwmon_dev; member
823 linecard->hwmon_dev = in mlxsw_hwmon_got_active()
826 if (IS_ERR(linecard->hwmon_dev)) { in mlxsw_hwmon_got_active()
846 hwmon_device_unregister(linecard->hwmon_dev); in mlxsw_hwmon_got_inactive()
862 struct device *hwmon_dev; in mlxsw_hwmon_init() local
902 hwmon_dev = hwmon_device_register_with_groups(mlxsw_bus_info->dev, in mlxsw_hwmon_init()
906 if (IS_ERR(hwmon_dev)) { in mlxsw_hwmon_init()
907 err = PTR_ERR(hwmon_dev); in mlxsw_hwmon_init()
917 mlxsw_hwmon->line_cards[0].hwmon_dev = hwmon_dev; in mlxsw_hwmon_init()
[all...]
/linux/drivers/platform/x86/
H A Dgigabyte-wmi.c133 struct device *hwmon_dev; in gigabyte_wmi_probe() local
141 hwmon_dev = devm_hwmon_device_register_with_info(&wdev->dev, "gigabyte_wmi", wdev, in gigabyte_wmi_probe()
144 return PTR_ERR_OR_ZERO(hwmon_dev); in gigabyte_wmi_probe()

1234