android_kernel_xiaomi_sm8350/drivers/i2c
David Brownell 6e13e64184 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>
2007-05-01 23:26:31 +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-boardinfo.c i2c: Add i2c_board_info and i2c_new_device() 2007-05-01 23:26:31 +02:00
i2c-core.c i2c: Add i2c_add_numbered_adapter() 2007-05-01 23:26:31 +02:00
i2c-core.h i2c: Add i2c_board_info and i2c_new_device() 2007-05-01 23:26:31 +02:00
i2c-dev.c [PATCH] mark struct file_operations const 3 2007-02-12 09:48:45 -08:00
Kconfig i2c: Add i2c_board_info and i2c_new_device() 2007-05-01 23:26:31 +02:00
Makefile i2c: Add i2c_board_info and i2c_new_device() 2007-05-01 23:26:31 +02:00