summaryrefslogtreecommitdiff
path: root/io-module
diff options
context:
space:
mode:
authorJesse Gilles <jgilles@multitech.com>2010-12-17 09:13:53 -0600
committerJesse Gilles <jgilles@multitech.com>2010-12-17 09:13:53 -0600
commitd642226ebfc833ec80c2dd6a4f8197c2325ae334 (patch)
treeb440f800cac07b3a86ccdff96827b65067664a42 /io-module
parentfbe682729c14aaa669c825d4cc0bc803aa6fccf5 (diff)
downloadmts-io-d642226ebfc833ec80c2dd6a4f8197c2325ae334.tar.gz
mts-io-d642226ebfc833ec80c2dd6a4f8197c2325ae334.tar.bz2
mts-io-d642226ebfc833ec80c2dd6a4f8197c2325ae334.zip
invert dout state: 0 drives output to ground, 1 is open/floating
Diffstat (limited to 'io-module')
-rw-r--r--io-module/mts_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/io-module/mts_io.c b/io-module/mts_io.c
index aa6e46d..c167b74 100644
--- a/io-module/mts_io.c
+++ b/io-module/mts_io.c
@@ -911,9 +911,9 @@ static ssize_t mts_attr_store_dout(struct device *dev,
mutex_lock(&spi_dout_mutex);
if (value) {
- spi_dout_value |= bit;
- } else {
spi_dout_value &= ~bit;
+ } else {
+ spi_dout_value |= bit;
}
spi_writen(spi_dout_dev, &spi_dout_value, 1);