linux/drivers/media/video
Jean Delvare b3d5496ea5 [PATCH] I2C: Kill address ranges in non-sensors i2c chip drivers
Some months ago, you killed the address ranges mechanism from all
sensors i2c chip drivers (both the module parameters and the in-code
address lists). I think it was a very good move, as the ranges can
easily be replaced by individual addresses, and this allowed for
significant cleanups in the i2c core (let alone the impressive size
shrink for all these drivers).

Unfortunately you did not do the same for non-sensors i2c chip drivers.
These need the address ranges even less, so we could get rid of the
ranges here as well for another significant i2c core cleanup. Here comes
a patch which does just that. Since the process is exactly the same as
what you did for the other drivers set already, I did not split this one
in parts.

A documentation update is included.

The change saves 308 bytes in the i2c core, and an average 1382 bytes
for chip drivers which use I2C_CLIENT_INSMOD, 126 bytes for those which
do not.

This change is required if we want to merge the sensors and non-sensors
i2c code (and we want to do this).

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Index: gregkh-2.6/Documentation/i2c/writing-clients
===================================================================
2005-06-21 21:51:48 -07:00
..
cx88 [PATCH] make lots of things static 2005-05-01 08:59:29 -07:00
ovcamchip Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
saa7134 [PATCH] I2C: Kill address ranges in non-sensors i2c chip drivers 2005-06-21 21:51:48 -07:00
adv7170.c [PATCH] I2C: Kill address ranges in non-sensors i2c chip drivers 2005-06-21 21:51:48 -07:00
adv7175.c [PATCH] I2C: Kill address ranges in non-sensors i2c chip drivers 2005-06-21 21:51:48 -07:00
arv.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bt819.c [PATCH] I2C: Kill address ranges in non-sensors i2c chip drivers 2005-06-21 21:51:48 -07:00
bt832.c [PATCH] I2C: Kill address ranges in non-sensors i2c chip drivers 2005-06-21 21:51:48 -07:00
bt832.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bt848.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bt856.c [PATCH] I2C: Kill address ranges in non-sensors i2c chip drivers 2005-06-21 21:51:48 -07:00
btcx-risc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
btcx-risc.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bttv-cards.c [PATCH] Fix for bttv driver (v0.9.15) for Leadtek WinFast VC100 XP capture cards 2005-05-17 07:59:09 -07:00
bttv-driver.c [PATCH] make lots of things static 2005-05-01 08:59:29 -07:00
bttv-gpio.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bttv-i2c.c [PATCH] v4l: bttv i2c oops fix 2005-05-25 15:31:27 -07:00
bttv-if.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bttv-risc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bttv-vbi.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bttv.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bttvp.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bw-qcam.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bw-qcam.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
c-qcam.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cpia_pp.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cpia_usb.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cpia.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cpia.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cs8420.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
dpc7146.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
hexium_gemini.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
hexium_orion.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ibmmpeg2.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ir-kbd-gpio.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ir-kbd-i2c.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Kconfig [PATCH] fix Philips SAA7130/7134 TV dependency problem 2005-05-17 07:59:19 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
meye.c [PATCH] fix u32 vs. pm_message_t in drivers/media 2005-04-16 15:25:27 -07:00
meye.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
msp3400.c [PATCH] I2C: Kill address ranges in non-sensors i2c chip drivers 2005-06-21 21:51:48 -07:00
msp3400.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mt20xx.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mxb.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mxb.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
planb.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
planb.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pms.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
saa5246a.c [PATCH] I2C: Kill address ranges in non-sensors i2c chip drivers 2005-06-21 21:51:48 -07:00
saa5246a.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
saa5249.c [PATCH] I2C: Kill address ranges in non-sensors i2c chip drivers 2005-06-21 21:51:48 -07:00
saa7110.c [PATCH] I2C: Kill address ranges in non-sensors i2c chip drivers 2005-06-21 21:51:48 -07:00
saa7111.c [PATCH] I2C: Kill address ranges in non-sensors i2c chip drivers 2005-06-21 21:51:48 -07:00
saa7114.c [PATCH] I2C: Kill address ranges in non-sensors i2c chip drivers 2005-06-21 21:51:48 -07:00
saa7121.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
saa7146.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
saa7146reg.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
saa7185.c [PATCH] I2C: Kill address ranges in non-sensors i2c chip drivers 2005-06-21 21:51:48 -07:00
saa7196.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
stradis.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
tda7432.c [PATCH] I2C: Kill address ranges in non-sensors i2c chip drivers 2005-06-21 21:51:48 -07:00
tda8290.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
tda9840.c [PATCH] I2C: Kill address ranges in non-sensors i2c chip drivers 2005-06-21 21:51:48 -07:00
tda9840.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
tda9875.c [PATCH] I2C: Kill address ranges in non-sensors i2c chip drivers 2005-06-21 21:51:48 -07:00
tda9887.c [PATCH] I2C: Kill address ranges in non-sensors i2c chip drivers 2005-06-21 21:51:48 -07:00
tea6415c.c [PATCH] I2C: Kill address ranges in non-sensors i2c chip drivers 2005-06-21 21:51:48 -07:00
tea6415c.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
tea6420.c [PATCH] I2C: Kill address ranges in non-sensors i2c chip drivers 2005-06-21 21:51:48 -07:00
tea6420.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
tuner-3036.c [PATCH] I2C: Kill address ranges in non-sensors i2c chip drivers 2005-06-21 21:51:48 -07:00
tuner-core.c [PATCH] I2C: Kill address ranges in non-sensors i2c chip drivers 2005-06-21 21:51:48 -07:00
tuner-simple.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
tvaudio.c [PATCH] I2C: Kill address ranges in non-sensors i2c chip drivers 2005-06-21 21:51:48 -07:00
tvaudio.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
tveeprom.c [PATCH] I2C: Kill address ranges in non-sensors i2c chip drivers 2005-06-21 21:51:48 -07:00
tvmixer.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
v4l1-compat.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
v4l2-common.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
video-buf-dvb.c [PATCH] dvb: modified dvb_register_adapter() to avoid kmalloc/kfree 2005-05-17 07:59:33 -07:00
video-buf.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
videocodec.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
videocodec.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
videodev.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vino.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vino.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vpx3220.c [PATCH] I2C: Kill address ranges in non-sensors i2c chip drivers 2005-06-21 21:51:48 -07:00
w9966.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
zoran_card.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
zoran_card.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
zoran_device.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
zoran_device.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
zoran_driver.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
zoran_procfs.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
zoran_procfs.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
zoran.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
zr36016.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
zr36016.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
zr36050.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
zr36050.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
zr36057.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
zr36060.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
zr36060.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
zr36120_i2c.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
zr36120_mem.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
zr36120_mem.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
zr36120.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
zr36120.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00