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