#include <dm.h>
#include <asm/gpio.h>
-int __weak name_to_gpio(const char *name)
+__weak int name_to_gpio(const char *name)
{
return simple_strtoul(name, NULL, 10);
}
#endif
if (argc > 0)
str_gpio = *argv;
- if (!strcmp(str_cmd, "status")) {
+ if (!strncmp(str_cmd, "status", 1)) {
/* Support deprecated gpio_status() */
#ifdef gpio_status
gpio_status();