From: Keith Packard Date: Tue, 12 Mar 2019 11:58:20 +0000 (+0100) Subject: altos/drivers/ao_led.c: Declare LED port as void * to allow any SoC to use this code X-Git-Tag: 1.9.1~1^2~107 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=b7de266431ee7bf05ba68ccae3e43a0468045860 altos/drivers/ao_led.c: Declare LED port as void * to allow any SoC to use this code The generic LED code needs a generic type for the GPIO port. Signed-off-by: Keith Packard --- diff --git a/src/drivers/ao_led.c b/src/drivers/ao_led.c index 0f7b7c27..899bee74 100644 --- a/src/drivers/ao_led.c +++ b/src/drivers/ao_led.c @@ -19,7 +19,7 @@ #include "ao.h" static const struct { - struct stm_gpio *port; + void *port; uint16_t pin; } ao_leds[] = { #ifdef LED_0_PORT