projects
/
contrib
/
mraa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77ee9ff
)
i2c.c: fix return type in _init function
author
Brendan Le Foll
<brendan.le.foll@intel.com>
Tue, 29 Apr 2014 13:01:30 +0000
(14:01 +0100)
committer
Brendan Le Foll
<brendan.le.foll@intel.com>
Tue, 29 Apr 2014 13:01:30 +0000
(14:01 +0100)
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/i2c/i2c.c
patch
|
blob
|
history
diff --git
a/src/i2c/i2c.c
b/src/i2c/i2c.c
index
400c39c
..
9c6f330
100644
(file)
--- a/
src/i2c/i2c.c
+++ b/
src/i2c/i2c.c
@@
-37,7
+37,7
@@
maa_i2c_init()
if ((dev->fh = open("/dev/i2c-0", O_RDWR)) < 1) {
fprintf(stderr, "Failed to open requested i2c port");
}
- return
MAA_SUCCESS
;
+ return
dev
;
}
void