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

@@ -30,12 +30,13 @@
#include <fcntl.h>
#include "spi.h"
#include "maa_internal.h"
#define MAX_SIZE 64
#define SPI_MAX_LENGTH 4096
/**
* A strucutre representing the SPI device
* A structure representing the SPI device
*/
struct _spi {
/*@{*/
@@ -50,7 +51,7 @@ struct _spi {
maa_spi_context
maa_spi_init(int bus)
{
maa_spi_bus_t *spi = maa_check_spi(bus);
maa_spi_bus_t *spi = maa_setup_spi(bus);
if(bus < 0) {
fprintf(stderr, "Failed. SPI platform Error\n");
return NULL;