summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2026-03-19 21:31:22 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-03-25 11:13:32 +0100
commit6f11461f882cfde67614bc471bfdfc39474b8de5 (patch)
tree89c5517885758fee472da6b8e25cb9b366401a37 /tools/lib/python/kdoc/python_version.py
parent50802d40964f327a6950562b62d1ebf7238a39fb (diff)
hwmon: (max6639) Fix pulses-per-revolution implementation
[ Upstream commit e7bae9a7a5e1251ab414291f4e9304d702bb9221 ] The valid range for the pulses-per-revolution devicetree property is 1..4. The current code checks for a range of 1..5. Fix it. Declare the variable used to retrieve pulses per revolution from devicetree as u32 (unsigned) to match the of_property_read_u32() API. The current code uses a postfix decrement when writing the pulses per resolution into the chip. This has no effect since the value is evaluated before it is decremented. Fix it by decrementing before evaluating the value. Fixes: 7506ebcd662b ("hwmon: (max6639) : Configure based on DT property") Cc: Naresh Solanki <naresh.solanki@9elements.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions