Lines Matching full:hwmon

9 #include <linux/hwmon.h>
10 #include <linux/hwmon-sysfs.h>
208 struct smpro_hwmon *hwmon = dev_get_drvdata(dev); in smpro_read_temp() local
214 ret = regmap_read(hwmon->regmap, temperature[channel].reg, &value); in smpro_read_temp()
219 ret = regmap_read(hwmon->regmap, temperature[channel].reg_ext, &value); in smpro_read_temp()
233 struct smpro_hwmon *hwmon = dev_get_drvdata(dev); in smpro_read_in() local
239 ret = regmap_read(hwmon->regmap, voltage[channel].reg, &value); in smpro_read_in()
252 struct smpro_hwmon *hwmon = dev_get_drvdata(dev); in smpro_read_curr() local
258 ret = regmap_read(hwmon->regmap, curr_sensor[channel].reg, &value); in smpro_read_curr()
271 struct smpro_hwmon *hwmon = dev_get_drvdata(dev); in smpro_read_power() local
277 ret = regmap_read(hwmon->regmap, power[channel].reg, &val); in smpro_read_power()
281 ret = regmap_read(hwmon->regmap, power[channel].reg_ext, &val_mw); in smpro_read_power()
363 const struct smpro_hwmon *hwmon = data; in smpro_is_visible() local
373 ret = regmap_read(hwmon->regmap, temperature[channel].reg, &value); in smpro_is_visible()
437 struct smpro_hwmon *hwmon; in smpro_hwmon_probe() local
440 hwmon = devm_kzalloc(&pdev->dev, sizeof(struct smpro_hwmon), GFP_KERNEL); in smpro_hwmon_probe()
441 if (!hwmon) in smpro_hwmon_probe()
444 hwmon->regmap = dev_get_regmap(pdev->dev.parent, NULL); in smpro_hwmon_probe()
445 if (!hwmon->regmap) in smpro_hwmon_probe()
449 hwmon, &smpro_chip_info, NULL); in smpro_hwmon_probe()
457 .name = "smpro-hwmon",
465 MODULE_DESCRIPTION("Ampere Altra SMPro hwmon driver");