From 6ad98d23e782f78135fd9476eaf0cb57dcb5f626 Mon Sep 17 00:00:00 2001 From: Brendan Le Foll Date: Tue, 29 Apr 2014 14:01:30 +0100 Subject: [PATCH] i2c.c: fix return type in _init function Signed-off-by: Brendan Le Foll --- src/i2c/i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i2c/i2c.c b/src/i2c/i2c.c index 400c39c..9c6f330 100644 --- 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