Re: Question about i2c_xxx function on CONFIG_I2C

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

 



Dear Jean

Thank you for your advice

> I don't think this is a good idea in general. If the kernel lacks I2C
> support, and your code uses it, then this is dead code, and you're much
> better excluding that code completely from your build. Most likely
> you'll be able to drop whole functions. I wouldn't count on the
> compiler to optimize it all properly, and you said you want a very
> small kernel.
> 
> Of course we could make better comments if we could see your actual
> code. Maybe some ifdef magic in i2c.h would make sense for a few items,
> as we already do for i2c_register_board_info for example.

I understand, thank you.
I use #ifdef for it.

Best regards
---
Kuninori Morimoto
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux