Skip to content

Commit

Permalink
utils: Update to the new backend functions
Browse files Browse the repository at this point in the history
Use the new functions iio_get_builtin_backends_count() and
iio_get_builtin_backend().

Signed-off-by: Paul Cercueil <[email protected]>
  • Loading branch information
pcercuei committed Oct 10, 2023
1 parent 109b741 commit 4aa6e20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/iio_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,8 @@ void version(char *name)
iio_context_get_version_major(NULL),
iio_context_get_version_minor(NULL),
iio_context_get_version_tag(NULL));
for (i = 0; i < iio_get_backends_count(); i++)
printf(" %s", iio_get_backend(i));
for (i = 0; i < iio_get_builtin_backends_count(); i++)
printf(" %s", iio_get_builtin_backend(i));
printf("\n");
}

Expand Down

0 comments on commit 4aa6e20

Please sign in to comment.