i2c: Shrink struct i2c_client
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>
Showing
- drivers/i2c/busses/i2c-ali1535.c 1 addition, 1 deletiondrivers/i2c/busses/i2c-ali1535.c
- drivers/i2c/busses/i2c-ali15x3.c 1 addition, 1 deletiondrivers/i2c/busses/i2c-ali15x3.c
- drivers/i2c/busses/i2c-amd8111.c 1 addition, 1 deletiondrivers/i2c/busses/i2c-amd8111.c
- drivers/i2c/busses/i2c-i801.c 1 addition, 1 deletiondrivers/i2c/busses/i2c-i801.c
- drivers/i2c/busses/i2c-ixp2000.c 1 addition, 1 deletiondrivers/i2c/busses/i2c-ixp2000.c
- drivers/i2c/busses/i2c-ixp4xx.c 1 addition, 1 deletiondrivers/i2c/busses/i2c-ixp4xx.c
- drivers/i2c/busses/i2c-mv64xxx.c 1 addition, 1 deletiondrivers/i2c/busses/i2c-mv64xxx.c
- drivers/i2c/busses/i2c-nforce2.c 1 addition, 1 deletiondrivers/i2c/busses/i2c-nforce2.c
- drivers/i2c/busses/i2c-pasemi.c 1 addition, 1 deletiondrivers/i2c/busses/i2c-pasemi.c
- drivers/i2c/busses/i2c-piix4.c 1 addition, 1 deletiondrivers/i2c/busses/i2c-piix4.c
- drivers/i2c/busses/i2c-sis96x.c 1 addition, 1 deletiondrivers/i2c/busses/i2c-sis96x.c
- drivers/i2c/busses/i2c-viapro.c 1 addition, 1 deletiondrivers/i2c/busses/i2c-viapro.c
- drivers/i2c/busses/scx200_acb.c 1 addition, 1 deletiondrivers/i2c/busses/scx200_acb.c
- drivers/media/dvb/b2c2/flexcop-i2c.c 2 additions, 1 deletiondrivers/media/dvb/b2c2/flexcop-i2c.c
- drivers/media/dvb/dvb-usb/dvb-usb-i2c.c 1 addition, 1 deletiondrivers/media/dvb/dvb-usb/dvb-usb-i2c.c
- drivers/media/dvb/frontends/dibx000_common.c 2 additions, 2 deletionsdrivers/media/dvb/frontends/dibx000_common.c
- drivers/video/intelfb/intelfb_i2c.c 2 additions, 1 deletiondrivers/video/intelfb/intelfb_i2c.c
- drivers/video/matrox/i2c-matroxfb.c 1 addition, 1 deletiondrivers/video/matrox/i2c-matroxfb.c
- include/linux/i2c.h 14 additions, 9 deletionsinclude/linux/i2c.h
Loading
Please register or sign in to comment