kernel-hacking-2024-linux-s.../drivers/i2c
David Brownell 7b4fbc50fa i2c: i2c stack can probe()
One of a series of I2C infrastructure updates to support enumeration using
the standard Linux driver model.

This patch updates probe() and associated hotplug/coldplug support, but
not remove().  Nothing yet _uses_ it to create I2C devices, so those
hotplug/coldplug mechanisms will be the only externally visible change.
This patch will be an overall NOP since the I2C stack doesn't yet create
clients/devices except as part of binding them to legacy drivers.

Some code is moved earlier in the source code, helping group more of the
per-device infrastructure in one place and simplifying handling per-device
attributes.

Terminology being adopted:  "legacy drivers" create devices (i2c_client)
themselves, while "new style" ones follow the driver model (the i2c_client
is handed to the probe routine).  It's an either/or thing; the two models
don't mix, and drivers that try mixing them won't even be registered.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
2007-05-01 23:26:30 +02:00
..
algos i2c-algo-bit: Emulate SMBus block read 2007-05-01 23:26:29 +02:00
busses i2c-pca-isa: Port to the new device driver model 2007-05-01 23:26:30 +02:00
chips i2c/ds1374: Check workqueue creation status 2007-03-22 19:49:01 +01:00
i2c-core.c i2c: i2c stack can probe() 2007-05-01 23:26:30 +02:00
i2c-dev.c [PATCH] mark struct file_operations const 3 2007-02-12 09:48:45 -08:00
Kconfig i2c: Fix copy-n-paste in subsystem Kconfig 2006-09-26 15:38:51 -07:00
Makefile [PATCH] hwmon: hwmon vs i2c, second round (07/11) 2005-09-05 09:14:22 -07:00