I have this struct:

struct ahba {
uint32_t x;
}

given this:
struct ahba *h;

I want to convert derefs of h->x to turn into mmio_read32(&h->x);
h->x = y;
to
mmio_write32(&h->x, y);

but I'm failing :-)

Any hints welcome.

thanks

ron
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to