diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2026-02-19 15:15:32 +0100 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-04-12 07:25:56 -0700 |
| commit | fb447217c59a13b2fff22d94de2498c185cd9032 (patch) | |
| tree | dadf03139aebd107716c6083acdf5580fac0a546 /include/linux | |
| parent | 77353904e1847ae51b7e1df14dd73c661ff799a4 (diff) | |
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>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
