diff options
| author | Vítor Hugo Silva <vitorhg20080@gmail.com> | 2026-11-18 09:29:28 +0000 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-11-19 08:50:01 -0800 |
| commit | 449cdc5e29c63aa66b41ce8c2783f6b0d84c62b0 (patch) | |
| tree | 10dbdbb0fb655f4aded998a43cf95a44f77a3610 /include/uapi/linux/android | |
| parent | 7494b0c50c9fcd9f9f5235777bb506dd45676557 (diff) | |
hwmon: (ads7871) Add error handle from spi_setup()
The ads7871 probe() ignores the spi_setup() error return value
and it attempts to write to registers even if spi_setup() fails.
Return the setup error before accessing any registers.
AI was used for peer-review the patch.
Fixes: e0c70b8078629 ("hwmon: add TI ads7871 a/d converter driver")
Cc: stable@vger.kernel.org
Signed-off-by: Vítor Hugo Silva <vitorhg20080@gmail.com>
Link: https://patch.msgid.link/20261118092928.163553-1-vitorhg20080@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'include/uapi/linux/android')
0 files changed, 0 insertions, 0 deletions
