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 asssume 2 pulses per revolution. in sl28cpld_hwmon_read()
63 return -EOPNOTSUPP; in sl28cpld_hwmon_read()
101 if (!pdev->dev.parent) in sl28cpld_hwmon_probe()
102 return -ENODEV; in sl28cpld_hwmon_probe()
104 hwmon = devm_kzalloc(&pdev->dev, sizeof(*hwmon), GFP_KERNEL); in sl28cpld_hwmon_probe()
106 return -ENOMEM; in sl28cpld_hwmon_probe()
108 hwmon->regmap = dev_get_regmap(pdev->dev.parent, NULL); in sl28cpld_hwmon_probe()
109 if (!hwmon->regmap) in sl28cpld_hwmon_probe()
110 return -ENODEV; in sl28cpld_hwmon_probe()
112 ret = device_property_read_u32(&pdev->dev, "reg", &hwmon->offset); in sl28cpld_hwmon_probe()
114 return -EINVAL; in sl28cpld_hwmon_probe()
116 hwmon_dev = devm_hwmon_device_register_with_info(&pdev->dev, in sl28cpld_hwmon_probe()
120 dev_err(&pdev->dev, "failed to register as hwmon device"); in sl28cpld_hwmon_probe()
126 { .compatible = "kontron,sl28cpld-fan" },
134 .name = "sl28cpld-fan",