Private
Public Access
2
0

aio: fix styling of case statement

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2014-05-13 21:59:22 +00:00
parent 4f7277f389
commit 320341df4d

View File

@@ -57,15 +57,15 @@ maa_aio_context* maa_aio_init(unsigned int aio_channel)
if (checked_pin < 0) { if (checked_pin < 0) {
switch(checked_pin) { switch(checked_pin) {
case -1: case -1:
fprintf(stderr, "Invalid Analog input channel %d specified!\n", fprintf(stderr, "Invalid analog input channel %d specified\n",
aio_channel); aio_channel);
return NULL; return NULL;
case -2: case -2:
fprintf(stderr, "Failed to set-up Analog input channel %d " fprintf(stderr, "Failed to set-up analog input channel %d "
"multiplexer!\n", aio_channel); "multiplexer\n", aio_channel);
return NULL; return NULL;
case -3: case -3:
fprintf(stderr, "Platform Not Initialised"); fprintf(stderr, "Platform not initialised");
return NULL; return NULL;
default: return NULL; default: return NULL;
} }
@@ -73,9 +73,9 @@ maa_aio_context* maa_aio_init(unsigned int aio_channel)
//Create ADC device connected to specified channel //Create ADC device connected to specified channel
dev = (maa_aio_context*) malloc(sizeof(maa_aio_context)); dev = (maa_aio_context*) malloc(sizeof(maa_aio_context));
if (NULL == dev) { if (dev == NULL) {
fprintf(stderr, "Insufficient memory for specified Analog input channel " fprintf(stderr, "Insufficient memory for specified Analog input channel "
"%d !\n", aio_channel); "%d\n", aio_channel);
return NULL; return NULL;
} }
dev->channel = checked_pin; dev->channel = checked_pin;