Skip to content
Commit 8c099cd3 authored by Camel Guo's avatar Camel Guo Committed by Guenter Roeck
Browse files

hwmon: (tmp401) Fix incorrect return value of tmp401_init_client



When ti,n-factor, ti,beta-compentation are not defined in devicetree,
of_property_read_u32|s32 returns -EINVAL. In this case,
tmp401_init_client should return 0 instead of simply pass ret to its
caller.

Signed-off-by: default avatarCamel Guo <camel.guo@axis.com>
Link: https://lore.kernel.org/r/20220425100019.562781-1-camel.guo@axis.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent e5c498cc
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