iio: fixed comment typo
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
committed by
Brendan Le Foll
parent
65614f5f58
commit
3b55cc70bf
@@ -154,7 +154,7 @@ mraa_init()
|
|||||||
|
|
||||||
plat_iio = (mraa_iio_info_t*) calloc(1, sizeof(mraa_iio_info_t));
|
plat_iio = (mraa_iio_info_t*) calloc(1, sizeof(mraa_iio_info_t));
|
||||||
// Now detect IIO devices, linux only
|
// Now detect IIO devices, linux only
|
||||||
// find how many i2c buses we have if we haven't already
|
// find how many iio devices we have if we haven't already
|
||||||
if (num_iio_devices == 0) {
|
if (num_iio_devices == 0) {
|
||||||
if (nftw("/sys/bus/iio/devices", &mraa_count_iio_devices, 20, FTW_PHYS) == -1) {
|
if (nftw("/sys/bus/iio/devices", &mraa_count_iio_devices, 20, FTW_PHYS) == -1) {
|
||||||
return MRAA_ERROR_UNSPECIFIED;
|
return MRAA_ERROR_UNSPECIFIED;
|
||||||
|
|||||||
Reference in New Issue
Block a user