linux/include
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
..
acpi
asm-alpha [PATCH] smp_processor_id() cleanup 2005-06-21 18:46:13 -07:00
asm-arm [PATCH] smp_processor_id() cleanup 2005-06-21 18:46:13 -07:00
asm-arm26
asm-cris
asm-frv
asm-generic [PATCH] msync: check pte dirty earlier 2005-06-21 18:46:21 -07:00
asm-h8300
asm-i386 [PATCH] Hugepage consolidation 2005-06-21 18:46:15 -07:00
asm-ia64 [PATCH] ia64: pfn_to_nid() implementation 2005-06-21 18:46:19 -07:00
asm-m32r [PATCH] m32r: Use asm-generic/div64.h 2005-06-21 19:07:31 -07:00
asm-m68k
asm-m68knommu
asm-mips [PATCH] mips: add vr41xx gpio support 2005-06-21 18:46:32 -07:00
asm-parisc [PATCH] smp_processor_id() cleanup 2005-06-21 18:46:13 -07:00
asm-ppc [PATCH] ppc32: Clean up NUM_TLBCAMS usage for Freescale Book-E PPC's 2005-06-21 18:46:24 -07:00
asm-ppc64 [PATCH] ppc64 iSeries: allow build with no PCI 2005-06-21 18:46:31 -07:00
asm-s390 [PATCH] smp_processor_id() cleanup 2005-06-21 18:46:13 -07:00
asm-sh [PATCH] Hugepage consolidation 2005-06-21 18:46:15 -07:00
asm-sh64 [PATCH] Hugepage consolidation 2005-06-21 18:46:15 -07:00
asm-sparc [PATCH] smp_processor_id() cleanup 2005-06-21 18:46:13 -07:00
asm-sparc64 [PATCH] Hugepage consolidation 2005-06-21 18:46:15 -07:00
asm-um [PATCH] smp_processor_id() cleanup 2005-06-21 18:46:13 -07:00
asm-v850
asm-x86_64 [PATCH] Hugepage consolidation 2005-06-21 18:46:15 -07:00
linux [PATCH] I2C: Kill address ranges in non-sensors i2c chip drivers 2005-06-21 21:51:48 -07:00
math-emu
media
mtd
net [PATCH] smp_processor_id() cleanup 2005-06-21 18:46:13 -07:00
pcmcia
rxrpc
scsi
sound
video