Lines Matching defs:hwmon
10 #include <linux/hwmon.h>
32 static void init_pvt(struct as370_hwmon *hwmon)
35 void __iomem *addr = hwmon->base + CTRL;
51 struct as370_hwmon *hwmon = dev_get_drvdata(dev);
55 val = readl_relaxed(hwmon->base + STS) & BN_MASK;
98 struct as370_hwmon *hwmon;
101 hwmon = devm_kzalloc(dev, sizeof(*hwmon), GFP_KERNEL);
102 if (!hwmon)
105 hwmon->base = devm_platform_ioremap_resource(pdev, 0);
106 if (IS_ERR(hwmon->base))
107 return PTR_ERR(hwmon->base);
109 init_pvt(hwmon);
113 hwmon,
120 { .compatible = "syna,as370-hwmon" },
128 .name = "as370-hwmon",