Skip to content

Commit 290347e

Browse files
mstasiaknordicjaz1-nordic
authored andcommitted
[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 8863a59 commit 290347e

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
@@ -357,7 +357,7 @@ static int shim_nrf_lpcomp_init(const struct device *dev)
357357
&shim_nrf_lpcomp_data0.config);
358358

359359
if (nrfx_lpcomp_init(&shim_nrf_lpcomp_data0.config,
360-
shim_nrf_lpcomp_event_handler) != NRFX_SUCCESS) {
360+
shim_nrf_lpcomp_event_handler) != 0) {
361361
return -ENODEV;
362362
}
363363

0 commit comments

Comments
 (0)