mraa: Remove trailing whitespace/tabs from various parts
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
@@ -237,7 +237,7 @@ class Iio
|
|||||||
eventData.diff = different;
|
eventData.diff = different;
|
||||||
handler->onIioEvent(eventData);
|
handler->onIioEvent(eventData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mraa_iio_context m_iio;
|
mraa_iio_context m_iio;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
iio {#iio}
|
iio {#iio}
|
||||||
===
|
===
|
||||||
IIO is the kernel's framework for supporting sensors.
|
IIO is the kernel's framework for supporting sensors.
|
||||||
## Using dummy_iio driver
|
## 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.
|
For platforms without IIO hardware the iio_dummy driver can be used. You can
|
||||||
You must add the following config fragment. Known to work for kernel 3.19 and later.
|
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>
|
<pre><code>
|
||||||
CONFIG_IIO_DUMMY_EVGEN=m
|
CONFIG_IIO_DUMMY_EVGEN=m
|
||||||
CONFIG_IIO_SIMPLE_DUMMY=m
|
CONFIG_IIO_SIMPLE_DUMMY=m
|
||||||
|
|||||||
@@ -550,9 +550,9 @@ mraa_iio_create_trigger(mraa_iio_context dev, const char* trigger)
|
|||||||
if (stat(IIO_CONFIGFS_TRIGGER, &configfs_status) == 0) {
|
if (stat(IIO_CONFIGFS_TRIGGER, &configfs_status) == 0) {
|
||||||
memset(buf, 0, MAX_SIZE);
|
memset(buf, 0, MAX_SIZE);
|
||||||
snprintf(buf, MAX_SIZE, IIO_CONFIGFS_TRIGGER "%s", trigger);
|
snprintf(buf, MAX_SIZE, IIO_CONFIGFS_TRIGGER "%s", trigger);
|
||||||
// we actually don't care if this doesn't succeed, as it just means
|
// we actually don't care if this doesn't succeed, as it just means
|
||||||
// it's already been initialised
|
// it's already been initialised
|
||||||
mkdir(buf, configfs_status.st_mode);
|
mkdir(buf, configfs_status.st_mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
return MRAA_ERROR_UNSPECIFIED;
|
return MRAA_ERROR_UNSPECIFIED;
|
||||||
|
|||||||
Reference in New Issue
Block a user