Lines Matching +full:pulses +full:- +full:per +full:- +full:revolution
1 // SPDX-License-Identifier: GPL-2.0-only
36 ret = regmap_read(hwmon->regmap, hwmon->offset + FAN_INPUT, in sl28cpld_hwmon_read()
50 * says we should assume 2 pulses per revolution. in sl28cpld_hwmon_read()
56 return -EOPNOTSUPP; in sl28cpld_hwmon_read()
84 if (!pdev->dev.parent) in sl28cpld_hwmon_probe()
85 return -ENODEV; in sl28cpld_hwmon_probe()
87 hwmon = devm_kzalloc(&pdev->dev, sizeof(*hwmon), GFP_KERNEL); in sl28cpld_hwmon_probe()
89 return -ENOMEM; in sl28cpld_hwmon_probe()
91 hwmon->regmap = dev_get_regmap(pdev->dev.parent, NULL); in sl28cpld_hwmon_probe()
92 if (!hwmon->regmap) in sl28cpld_hwmon_probe()
93 return -ENODEV; in sl28cpld_hwmon_probe()
95 ret = device_property_read_u32(&pdev->dev, "reg", &hwmon->offset); in sl28cpld_hwmon_probe()
97 return -EINVAL; in sl28cpld_hwmon_probe()
99 hwmon_dev = devm_hwmon_device_register_with_info(&pdev->dev, in sl28cpld_hwmon_probe()
103 dev_err(&pdev->dev, "failed to register as hwmon device"); in sl28cpld_hwmon_probe()
109 { .compatible = "kontron,sl28cpld-fan" },
117 .name = "sl28cpld-fan",