brcm47xx: use libgpio instaed of implementing the gpio interface ourself.
[openwrt/staging/chunkeey.git] / package / switch / src / gpio.h
index 90bafd39ed82c2108d2d36b71798da9b6c041afa..cb734f7b1b56404a7e5fb32df499e7831d2e986c 100644 (file)
@@ -9,16 +9,16 @@
 #define __GPIO_H
 
 #ifdef CONFIG_BCM47XX
-#include "gpio-bcm947xx.h"
+#include <linux/gpio.h>
 #else
 #warning "Unsupported configuration."
 
-#define gpio_in()                      (-1U)
-#define gpio_out(mask, value)          (-1U)
-#define gpio_outen(mask, value)                (-1U)
-#define gpio_control(mask, value)      (-1U)
-#define gpio_intmask(mask, value)      (-1U)
-#define gpio_intpolarity(mask, value)  (-1U)
+#define bcm47xx_gpio_in(mask)                  (-1U)
+#define bcm47xx_gpio_out(mask, value)          (-1U)
+#define bcm47xx_gpio_outen(mask, value)                (-1U)
+#define bcm47xx_gpio_control(mask, value)      (-1U)
+#define bcm47xx_gpio_intmask(mask, value)      (-1U)
+#define bcm47xx_gpio_polarity(mask, value)     (-1U)
 
 #endif