On 24 August 2014 03:09, Peter Crosthwaite <peter.crosthwa...@xilinx.com> wrote:
> If you make your registers an array, you can index the with the offset
> and remove the repeated s->foo return logic. You can also use a single
> memset to do all the 0 resets.

Hmm. I dislike that style personally, especially for devices
like this which only have a handful of registers.

-- PMM

Reply via email to