Lines Matching defs:hwmon
10 #include <linux/hwmon.h>
31 static void init_pvt(struct as370_hwmon *hwmon)
34 void __iomem *addr = hwmon->base + CTRL;
50 struct as370_hwmon *hwmon = dev_get_drvdata(dev);
54 val = readl_relaxed(hwmon->base + STS) & BN_MASK;
107 struct as370_hwmon *hwmon;
110 hwmon = devm_kzalloc(dev, sizeof(*hwmon), GFP_KERNEL);
111 if (!hwmon)
114 hwmon->base = devm_platform_ioremap_resource(pdev, 0);
115 if (IS_ERR(hwmon->base))
116 return PTR_ERR(hwmon->base);
118 init_pvt(hwmon);
122 hwmon,
129 { .compatible = "syna,as370-hwmon" },
137 .name = "as370-hwmon",