i2c.c: fix return type in _init function
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
@@ -37,7 +37,7 @@ maa_i2c_init()
|
|||||||
if ((dev->fh = open("/dev/i2c-0", O_RDWR)) < 1) {
|
if ((dev->fh = open("/dev/i2c-0", O_RDWR)) < 1) {
|
||||||
fprintf(stderr, "Failed to open requested i2c port");
|
fprintf(stderr, "Failed to open requested i2c port");
|
||||||
}
|
}
|
||||||
return MAA_SUCCESS;
|
return dev;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user