Private
Public Access
2
0

mraa: Remove trailing whitespace/tabs from various parts

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2015-12-21 15:27:15 +00:00
parent 79609ba359
commit 8862ebd9f2
5 changed files with 31 additions and 29 deletions

View File

@@ -237,7 +237,7 @@ class Iio
eventData.diff = different;
handler->onIioEvent(eventData);
}
}
}
mraa_iio_context m_iio;
};

View File

@@ -1,9 +1,11 @@
iio {#iio}
iio {#iio}
===
IIO is the kernel's framework for supporting sensors.
## Using dummy_iio driver
For platforms without IIO hardware the iio_dummy driver can be used. You can add the driver by either rebuilding the kernel with IIO component enabled or just building the IIO modules and load them.
You must add the following config fragment. Known to work for kernel 3.19 and later.
For platforms without IIO hardware the iio_dummy driver can be used. You can
add the driver by either rebuilding the kernel with IIO component enabled or
just building the IIO modules and load them. You must add the following config
fragment. Known to work for kernel 3.19 and later.
<pre><code>
CONFIG_IIO_DUMMY_EVGEN=m
CONFIG_IIO_SIMPLE_DUMMY=m

View File

@@ -550,9 +550,9 @@ mraa_iio_create_trigger(mraa_iio_context dev, const char* trigger)
if (stat(IIO_CONFIGFS_TRIGGER, &configfs_status) == 0) {
memset(buf, 0, MAX_SIZE);
snprintf(buf, MAX_SIZE, IIO_CONFIGFS_TRIGGER "%s", trigger);
// we actually don't care if this doesn't succeed, as it just means
// it's already been initialised
mkdir(buf, configfs_status.st_mode);
// we actually don't care if this doesn't succeed, as it just means
// it's already been initialised
mkdir(buf, configfs_status.st_mode);
}
return MRAA_ERROR_UNSPECIFIED;