Private
Public Access
2
0

maa: hide and rename internal maa functions

Based on feedback received. All check functions renamed to setup.
Update all modules to use new name and header.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
Thomas Ingleby
2014-05-21 13:17:16 +01:00
parent 0813271423
commit 2b8ab38418
7 changed files with 18 additions and 49 deletions

View File

@@ -24,6 +24,7 @@
#include "i2c.h"
#include "smbus.h"
#include "maa_internal.h"
struct _i2c {
/*@{*/
@@ -31,12 +32,12 @@ struct _i2c {
int fh; /**< the file handle to the /dev/i2c-* device */
int addr; /**< the address of the i2c slave */
/*@}*/
};
};
maa_i2c_context
maa_i2c_init(int bus)
{
int checked_pin = maa_check_i2c(bus);
int checked_pin = maa_setup_i2c(bus);
if (checked_pin < 0) {
switch(checked_pin) {
case -1: