]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hwmon: (pmbus/tps25990) Don't check for specific errors when parsing properties
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 19 Feb 2026 14:19:36 +0000 (15:19 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 12 Apr 2026 14:23:51 +0000 (07:23 -0700)
commita69ae329d425df7e0638903ca74abea615cafc7d
tree6121cbd3e308721458c6bf74e83115ae110e5347
parentff708b549c4dbecb308fa97e360a8fe0b2f89309
hwmon: (pmbus/tps25990) 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/20260219141936.2259945-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/tps25990.c