On Wed, Aug 15, 2012 at 11:16:20AM +0100, Ian Abbott wrote:
> static inline bool is_isa_board(const struct dio200_board *board)
> {
> return DO_ISA && board->bustype == isa_bustype;
> }
>
> I prefer the macro as it seems "easier" for the compiler to
> recognize it as a constant in the case where DO_ISA expands to 0.
Btw, the compiler will do the right thing with an inline function.
regards,
dan carpenter
_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel