internal/platform_name: move to const char*
Instead of plain char* to avoid need to malloc and do all the needed error checking needed that goes along with that. Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
@@ -175,8 +175,7 @@ typedef struct {
|
||||
int pwm_default_period; /**< The default PWM period is US */
|
||||
int pwm_max_period; /**< Maximum period in us */
|
||||
int pwm_min_period; /**< Minimum period in us */
|
||||
unsigned int platform_name_length; /**< Platform Name length */
|
||||
char* platform_name; /**< Platform Name pointer */
|
||||
const char* platform_name; /**< Platform Name pointer */
|
||||
mraa_pininfo_t* pins; /**< Pointer to pin array */
|
||||
/*@}*/
|
||||
} mraa_board_t;
|
||||
|
||||
Reference in New Issue
Block a user