Eliminates a cast when assigning to them.
Signed-off-by: Keith Packard <keithp@keithp.com>
#include <stdint.h>
typedef volatile uint32_t vuint32_t;
#include <stdint.h>
typedef volatile uint32_t vuint32_t;
+typedef volatile void * vvoid_t;
struct stm_gpio {
vuint32_t moder;
struct stm_gpio {
vuint32_t moder;
struct stm_dma_channel {
vuint32_t ccr;
vuint32_t cndtr;
struct stm_dma_channel {
vuint32_t ccr;
vuint32_t cndtr;
- vuint32_t cpar;
- vuint32_t cmar;
+ vvoid_t cpar;
+ vvoid_t cmar;