diff options
author | David Brownell <david-b@pacbell.net> | 2007-05-01 17:26:31 -0400 |
---|---|---|
committer | Jean Delvare <khali@hyperion.delvare> | 2007-05-01 17:26:31 -0400 |
commit | 6e13e641841833cc2aa5baefe89bb04bc388801b (patch) | |
tree | 600a1a87e2ae15afef01487428ee6c994c54877e /include/linux/i2c.h | |
parent | 9c1600eda42e52796f49b36cf15b9debcfd09bea (diff) |
i2c: Add i2c_add_numbered_adapter()
This adds a call, i2c_add_numbered_adapter(), registering an I2C adapter
with a specific bus number and then creating I2C device nodes for any
pre-declared devices on that bus. It builds on previous patches adding
I2C probe() and remove() support, and that pre-declaration of devices.
This completes the core support for "new style" I2C device drivers.
Those follow the standard driver model for binding devices to drivers
(using probe and remove methods) rather than a legacy model (where the
driver tries to autoconfigure each bus, and registers devices itself).
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'include/linux/i2c.h')
-rw-r--r-- | include/linux/i2c.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index 382a43bf3ad5..36d6814a6df4 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h | |||
@@ -363,6 +363,7 @@ struct i2c_client_address_data { | |||
363 | */ | 363 | */ |
364 | extern int i2c_add_adapter(struct i2c_adapter *); | 364 | extern int i2c_add_adapter(struct i2c_adapter *); |
365 | extern int i2c_del_adapter(struct i2c_adapter *); | 365 | extern int i2c_del_adapter(struct i2c_adapter *); |
366 | extern int i2c_add_numbered_adapter(struct i2c_adapter *); | ||
366 | 367 | ||
367 | extern int i2c_register_driver(struct module *, struct i2c_driver *); | 368 | extern int i2c_register_driver(struct module *, struct i2c_driver *); |
368 | extern int i2c_del_driver(struct i2c_driver *); | 369 | extern int i2c_del_driver(struct i2c_driver *); |