mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-20 09:34:44 +08:00
2096b956d2
This shrinks the size of "struct i2c_client" by 40 bytes: - Substantially shrinks the string used to identify the chip type - The "flags" don't need to be so big - Removes some internal padding It also adds kerneldoc for that struct, explaining how "name" is really a chip type identifier; it's otherwise potentially confusing. Because the I2C_NAME_SIZE symbol was abused for both i2c_client.name and for i2c_adapter.name, this needed to affect i2c_adapter too. The adapters which used that symbol now use the more-obviously-correct idiom of taking the size of that field. JD: Shorten i2c_adapter.name from 50 to 48 bytes while we're here, to avoid wasting space in padding. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Jean Delvare <khali@linux-fr.org> |
||
---|---|---|
.. | ||
flexcop_ibi_value_be.h | ||
flexcop_ibi_value_le.h | ||
flexcop-common.h | ||
flexcop-dma.c | ||
flexcop-eeprom.c | ||
flexcop-fe-tuner.c | ||
flexcop-hw-filter.c | ||
flexcop-i2c.c | ||
flexcop-misc.c | ||
flexcop-pci.c | ||
flexcop-reg.h | ||
flexcop-sram.c | ||
flexcop-usb.c | ||
flexcop-usb.h | ||
flexcop.c | ||
flexcop.h | ||
Kconfig | ||
Makefile |