Lines Matching +full:pulses +full:- +full:per +full:- +full:revolution
1 // SPDX-License-Identifier: GPL-2.0-only
43 ret = regmap_read(hwmon->regmap, hwmon->offset + FAN_INPUT, in sl28cpld_hwmon_read()
57 * says we should assume 2 pulses per revolution. in sl28cpld_hwmon_read()
63 return -EOPNOTSUPP; in sl28cpld_hwmon_read()
91 if (!pdev->dev.parent) in sl28cpld_hwmon_probe()
92 return -ENODEV; in sl28cpld_hwmon_probe()
94 hwmon = devm_kzalloc(&pdev->dev, sizeof(*hwmon), GFP_KERNEL); in sl28cpld_hwmon_probe()
96 return -ENOMEM; in sl28cpld_hwmon_probe()
98 hwmon->regmap = dev_get_regmap(pdev->dev.parent, NULL); in sl28cpld_hwmon_probe()
99 if (!hwmon->regmap) in sl28cpld_hwmon_probe()
100 return -ENODEV; in sl28cpld_hwmon_probe()
102 ret = device_property_read_u32(&pdev->dev, "reg", &hwmon->offset); in sl28cpld_hwmon_probe()
104 return -EINVAL; in sl28cpld_hwmon_probe()
106 hwmon_dev = devm_hwmon_device_register_with_info(&pdev->dev, in sl28cpld_hwmon_probe()
110 dev_err(&pdev->dev, "failed to register as hwmon device"); in sl28cpld_hwmon_probe()
116 { .compatible = "kontron,sl28cpld-fan" },
124 .name = "sl28cpld-fan",