i2c.c: fix return type in _init function
authorBrendan Le Foll <brendan.le.foll@intel.com>
Tue, 29 Apr 2014 13:01:30 +0000 (14:01 +0100)
committerBrendan 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

index 400c39c..9c6f330 100644 (file)
@@ -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