Skip to content
Commit ed359056 authored by Vincent Whitchurch's avatar Vincent Whitchurch Committed by Guenter Roeck
Browse files

hwmon: (pmbus) Fix vout margin caching



The code currently uses a zero margin to mean not cached, but this
results in the cache being bypassed if the (low) margin is set to zero,
leading to lots of unnecessary SMBus transactions in that case.  Use a
negative value instead.

Fixes: 07fb7627 ("hwmon: (pmbus) Introduce and use cached vout margins")
Signed-off-by: default avatarVincent Whitchurch <vincent.whitchurch@axis.com>
Link: https://lore.kernel.org/r/20220816144414.2358974-1-vincent.whitchurch@axis.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 09e52d17
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment