I have a structure like :
struct spidev_data {
int busy;
int irq;
};
And I just want to access a member ( like spidev->busy ) by a define, so I try this:
#define BUSY spidev->busy
But it does not work...
Can someone tell me how to do this ?
Thanks !