static void stellaris_adc_trigger(void *opaque, int irq, int level)
{
- stellaris_adc_state *s = (stellaris_adc_state *)opaque;
+ stellaris_adc_state *s = opaque;
int n;
for (n = 0; n < 4; n++) {
static uint64_t stellaris_adc_read(void *opaque, hwaddr offset,
unsigned size)
{
- stellaris_adc_state *s = (stellaris_adc_state *)opaque;
+ stellaris_adc_state *s = opaque;
/* TODO: Implement this. */
if (offset >= 0x40 && offset < 0xc0) {
static void stellaris_adc_write(void *opaque, hwaddr offset,
uint64_t value, unsigned size)
{
- stellaris_adc_state *s = (stellaris_adc_state *)opaque;
+ stellaris_adc_state *s = opaque;
/* TODO: Implement this. */
if (offset >= 0x40 && offset < 0xc0) {