]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/cmd_gpio.c
mvtwsi: Remove unnecessary twsi_baud_rate and twsi_slave_address globals
[karo-tx-uboot.git] / common / cmd_gpio.c
index 778aa5f0987baa732fce85a94672f5a39616fea8..aff044518f455e520ca7d9d8ea305ea32ad0d9c3 100644 (file)
 #include <dm.h>
 #include <asm/gpio.h>
 
-#ifndef name_to_gpio
-#define name_to_gpio(name) simple_strtoul(name, NULL, 10)
-#endif
+int __weak name_to_gpio(const char *name)
+{
+       return simple_strtoul(name, NULL, 10);
+}
 
 enum gpio_cmd {
        GPIO_INPUT,