Lines Matching refs:hwmon
9 #include <linux/hwmon.h>
37 struct sl28cpld_hwmon *hwmon = dev_get_drvdata(dev);
43 ret = regmap_read(hwmon->regmap, hwmon->offset + FAN_INPUT,
87 struct sl28cpld_hwmon *hwmon;
94 hwmon = devm_kzalloc(&pdev->dev, sizeof(*hwmon), GFP_KERNEL);
95 if (!hwmon)
98 hwmon->regmap = dev_get_regmap(pdev->dev.parent, NULL);
99 if (!hwmon->regmap)
102 ret = device_property_read_u32(&pdev->dev, "reg", &hwmon->offset);
107 "sl28cpld_hwmon", hwmon,
110 dev_err(&pdev->dev, "failed to register as hwmon device");