raspberry_pi_b: add missing platform name
authorThomas Ingleby <thomas.c.ingleby@intel.com>
Wed, 21 Jan 2015 15:43:27 +0000 (15:43 +0000)
committerThomas Ingleby <thomas.c.ingleby@intel.com>
Wed, 21 Jan 2015 15:43:27 +0000 (15:43 +0000)
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
src/arm/raspberry_pi_b.c

index c23572d..71913c1 100644 (file)
 #include "arm/raspberry_pi_b.h"
 
 #define UART_DEV_PATH "/dev/ttyAMA0"
+#define PLATFORM_NAME "Raspberry Pi B"
 
 mraa_board_t*
 mraa_raspberry_pi_b()
 {
     mraa_board_t* b = (mraa_board_t*) malloc(sizeof(mraa_board_t));
-    if (b == NULL)
+    if (b == NULL) {
         return NULL;
+    }
 
+    b->platform_name = PLATFORM_NAME;
     b->phy_pin_count = MRAA_RASPBERRY_PI_B;
     b->aio_count = 0;
     b->adc_raw = 0;