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