]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hwmon: (ina233) Don't check for specific errors when parsing properties
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 19 Feb 2026 14:15:32 +0000 (15:15 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 12 Apr 2026 14:25:56 +0000 (07:25 -0700)
commitfb447217c59a13b2fff22d94de2498c185cd9032
treedadf03139aebd107716c6083acdf5580fac0a546
parent77353904e1847ae51b7e1df14dd73c661ff799a4
hwmon: (ina233) Don't check for specific errors when parsing properties

Instead of checking for the specific error codes (that can be considered
a layering violation to some extent) check for the property existence first
and then either parse it, or apply a default value.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20260219141532.2259642-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/ina233.c