[PATCH] I2C: Separate non-i2c hwmon drivers from i2c-core (2/9)
authorJean Delvare <khali@linux-fr.org>
Tue, 19 Jul 2005 21:48:43 +0000 (23:48 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Sep 2005 16:14:09 +0000 (09:14 -0700)
commit400c455eaa0d0819d18cd42a74070e0e238a73dc
treed8cbad347ec31ded7cac38ae18be71c9218cfcd6
parentefde723fdac02111872bff606ef362074fc1efa8
[PATCH] I2C: Separate non-i2c hwmon drivers from i2c-core (2/9)

Convert i2c-isa from a dumb i2c_adapter into a pseudo i2c-core for ISA
hardware monitoring drivers. The isa i2c_adapter is no more registered
with i2c-core, drivers have to explicitely connect to it using the new
i2c_isa_{add,del}_driver interface.

At this point, all ISA chip drivers are useless, because they still
register with i2c-core in the hope i2c-isa is registered there as well,
but it isn't anymore.

The fake bus will be named i2c-9191 in sysfs. This is the number it
already had internally in various places, so it's not exactly new,
except that now the number is seen in userspace as well. This shouldn't
be a problem until someone really has 9192 I2C busses in a given system
;)

The fake bus will no more show in "i2cdetect -l", as it won't be seen by
i2c-dev anymore (not being registered with i2c-core), which is a good
thing, as i2cdetect/i2cdump/i2cset cannot operate on this fake bus
anyway.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/busses/i2c-isa.c
include/linux/i2c-isa.h [new file with mode: 0644]