Re: [PATCH 2/3] staging: comedi: amplc_dio200: add helper macros to check bus type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux