summaryrefslogtreecommitdiff
path: root/lib/win_minmax.c
diff options
context:
space:
mode:
authorDaniel Matyas <daniel.matyas@analog.com>2023-10-31 21:21:56 +0300
committerGuenter Roeck <linux@roeck-us.net>2023-12-11 17:42:54 +0300
commit64176bde4645686590bb0e5efcbcd18497ee4389 (patch)
treefc673781cc60b66aa0da4855559392a51040ed2e /lib/win_minmax.c
parent8a0806df46b62e88793cab0035da477092bda09a (diff)
downloadlinux-64176bde4645686590bb0e5efcbcd18497ee4389.tar.xz
hwmon: (max31827) Return closest value in update_interval
When user writes a value to update_interval which does not match the possible values, instead of returning invalid error, return the closest value. Signed-off-by: Daniel Matyas <daniel.matyas@analog.com> Link: https://lore.kernel.org/r/20231031182158.124608-4-daniel.matyas@analog.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'lib/win_minmax.c')
0 files changed, 0 insertions, 0 deletions