Skip to content

Commit 60e34ad

Browse files
[nrf fromlist] drivers: comparator: nrf_lpcomp: align to errno codes in nrfx
NRFX drivers now return errno codes, aligned driver. Upstream PR #: 97997 Signed-off-by: Michał Stasiak <[email protected]>
1 parent 9793763 commit 60e34ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/comparator/comparator_nrf_lpcomp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ static int shim_nrf_lpcomp_init(const struct device *dev)
356356
&shim_nrf_lpcomp_data0.config);
357357

358358
if (nrfx_lpcomp_init(&shim_nrf_lpcomp_data0.config,
359-
shim_nrf_lpcomp_event_handler) != NRFX_SUCCESS) {
359+
shim_nrf_lpcomp_event_handler) != 0) {
360360
return -ENODEV;
361361
}
362362

0 commit comments

Comments
 (0)