Home
last modified time | relevance | path

Searched refs:hwmon_dev (Results 26 – 50 of 219) sorted by relevance

123456789

/openbmc/linux/drivers/hwmon/
H A Dtc74.c110 struct device *hwmon_dev; in tc74_probe() local
147 hwmon_dev = devm_hwmon_device_register_with_groups(dev, in tc74_probe()
150 return PTR_ERR_OR_ZERO(hwmon_dev); in tc74_probe()
H A Dltc4260.c147 struct device *hwmon_dev; in ltc4260_probe() local
159 hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, in ltc4260_probe()
162 return PTR_ERR_OR_ZERO(hwmon_dev); in ltc4260_probe()
H 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()
H 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()
H A Dwm831x-hwmon.c133 struct device *hwmon_dev; in wm831x_hwmon_probe() local
135 hwmon_dev = devm_hwmon_device_register_with_groups(&pdev->dev, "wm831x", in wm831x_hwmon_probe()
138 return PTR_ERR_OR_ZERO(hwmon_dev); in wm831x_hwmon_probe()
H A Dmcp3021.c125 struct device *hwmon_dev; in mcp3021_probe() local
171 hwmon_dev = devm_hwmon_device_register_with_info(&client->dev, in mcp3021_probe()
176 return PTR_ERR_OR_ZERO(hwmon_dev); in mcp3021_probe()
H A Dhih6130.c211 struct device *hwmon_dev; in hih6130_probe() local
228 hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, in hih6130_probe()
231 return PTR_ERR_OR_ZERO(hwmon_dev); in hih6130_probe()
H A Dltc4151.c162 struct device *hwmon_dev; in ltc4151_probe() local
184 hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, in ltc4151_probe()
187 return PTR_ERR_OR_ZERO(hwmon_dev); in ltc4151_probe()
H A Dmenf21bmc_hwmon.c193 struct device *hwmon_dev; in menf21bmc_hwmon_probe() local
208 hwmon_dev = devm_hwmon_device_register_with_groups(&pdev->dev, in menf21bmc_hwmon_probe()
211 if (IS_ERR(hwmon_dev)) in menf21bmc_hwmon_probe()
212 return PTR_ERR(hwmon_dev); in menf21bmc_hwmon_probe()
H A Datxp1.c252 struct device *hwmon_dev; in atxp1_probe() local
269 hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, in atxp1_probe()
272 if (IS_ERR(hwmon_dev)) in atxp1_probe()
273 return PTR_ERR(hwmon_dev); in atxp1_probe()
H A Dlm73.c196 struct device *hwmon_dev; in lm73_probe() local
212 hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, in lm73_probe()
214 if (IS_ERR(hwmon_dev)) in lm73_probe()
215 return PTR_ERR(hwmon_dev); in lm73_probe()
H A Dtmp102.c195 struct device *hwmon_dev; in tmp102_probe() local
250 hwmon_dev = devm_hwmon_device_register_with_info(dev, client->name, in tmp102_probe()
254 if (IS_ERR(hwmon_dev)) { in tmp102_probe()
256 return PTR_ERR(hwmon_dev); in tmp102_probe()
H A Dshtc1.c197 struct device *hwmon_dev; in shtc1_probe() local
250 hwmon_dev = devm_hwmon_device_register_with_groups(dev, in shtc1_probe()
254 if (IS_ERR(hwmon_dev)) in shtc1_probe()
257 return PTR_ERR_OR_ZERO(hwmon_dev); in shtc1_probe()
H A Dultra45_env.c66 struct device *hwmon_dev; member
273 p->hwmon_dev = hwmon_device_register(&op->dev); in env_probe()
274 if (IS_ERR(p->hwmon_dev)) { in env_probe()
275 err = PTR_ERR(p->hwmon_dev); in env_probe()
300 hwmon_device_unregister(p->hwmon_dev); in env_remove()
H A Diio_hwmon.c75 struct device *hwmon_dev; in iio_hwmon_probe() local
165 hwmon_dev = devm_hwmon_device_register_with_groups(dev, sname, st, in iio_hwmon_probe()
167 return PTR_ERR_OR_ZERO(hwmon_dev); in iio_hwmon_probe()
H A Dtmp103.c156 struct device *hwmon_dev; in tmp103_probe() local
174 hwmon_dev = devm_hwmon_device_register_with_info(dev, client->name, in tmp103_probe()
178 return PTR_ERR_OR_ZERO(hwmon_dev); in tmp103_probe()
H A Dads7871.c162 struct device *hwmon_dev; in ads7871_probe() local
190 hwmon_dev = devm_hwmon_device_register_with_groups(dev, spi->modalias, in ads7871_probe()
193 return PTR_ERR_OR_ZERO(hwmon_dev); in ads7871_probe()
H A Dcoretemp.c89 struct device *hwmon_dev; member
552 err = create_core_attrs(tdata, pdata->hwmon_dev, index); in create_core_data()
582 sysfs_remove_group(&pdata->hwmon_dev->kobj, &tdata->attr_group); in coretemp_remove_core()
658 if (!pdata->hwmon_dev) { in coretemp_cpu_online()
675 pdata->hwmon_dev = hwmon; in coretemp_cpu_online()
709 if (!pd->hwmon_dev) in coretemp_cpu_offline()
748 hwmon_device_unregister(pd->hwmon_dev); in coretemp_cpu_offline()
749 pd->hwmon_dev = NULL; in coretemp_cpu_offline()
H A Dadm1177.c193 struct device *hwmon_dev; in adm1177_probe() local
234 hwmon_dev = in adm1177_probe()
237 return PTR_ERR_OR_ZERO(hwmon_dev); in adm1177_probe()
/openbmc/linux/drivers/net/ethernet/intel/igb/
H 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()
/openbmc/linux/drivers/net/wireless/ath/ath11k/
H 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()
/openbmc/linux/drivers/platform/x86/siemens/
H A Dsimatic-ipc-batt.c160 struct device *hwmon_dev; in simatic_ipc_batt_probe() local
211 hwmon_dev = devm_hwmon_device_register_with_info(dev, KBUILD_MODNAME, in simatic_ipc_batt_probe()
215 if (IS_ERR(hwmon_dev)) { in simatic_ipc_batt_probe()
216 err = PTR_ERR(hwmon_dev); in simatic_ipc_batt_probe()
/openbmc/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()
/openbmc/linux/drivers/fsi/
H A Dfsi-occ.c604 struct platform_device *hwmon_dev = to_platform_device(dev); in occ_unregister_platform_child() local
606 platform_device_unregister(hwmon_dev); in occ_unregister_platform_child()
613 struct platform_device *hwmon_dev = to_platform_device(dev); in occ_unregister_of_child() local
615 of_device_unregister(hwmon_dev); in occ_unregister_of_child()
628 struct platform_device *hwmon_dev = NULL; in occ_probe() local
691 hwmon_dev = of_platform_device_create(hwmon_node, child_name, dev); in occ_probe()
695 if (!hwmon_dev) { in occ_probe()
698 hwmon_dev = platform_device_register_full(&hwmon_dev_info); in occ_probe()
699 if (IS_ERR(hwmon_dev)) in occ_probe()
/openbmc/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
903 hwmon_dev = hwmon_device_register_with_groups(mlxsw_bus_info->dev, in mlxsw_hwmon_init()
907 if (IS_ERR(hwmon_dev)) { in mlxsw_hwmon_init()
908 err = PTR_ERR(hwmon_dev); in mlxsw_hwmon_init()
918 mlxsw_hwmon->line_cards[0].hwmon_dev = hwmon_dev; in mlxsw_hwmon_init()
924 hwmon_device_unregister(mlxsw_hwmon->line_cards[0].hwmon_dev); in mlxsw_hwmon_init()
[all …]

123456789