Skip to content

Commit 07240ab

Browse files
mstasiaknordicjaz1-nordic
authored andcommitted
[nrf fromlist] drivers: comparator: nrf_comp: 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 a1b5aee commit 07240ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/comparator/comparator_nrf_comp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ static int shim_nrf_comp_init(const struct device *dev)
500500
(void)shim_nrf_comp_diff_config_to_nrf(&shim_nrf_comp_config0, &nrf);
501501
#endif
502502

503-
if (nrfx_comp_init(&nrf, shim_nrf_comp_event_handler) != NRFX_SUCCESS) {
503+
if (nrfx_comp_init(&nrf, shim_nrf_comp_event_handler) != 0) {
504504
return -ENODEV;
505505
}
506506

0 commit comments

Comments
 (0)