]> git.baikalelectronics.ru Git - kernel.git/commit
i2c-dev: Use standard bus notification mechanism
authorJean Delvare <khali@linux-fr.org>
Sun, 20 Mar 2011 13:50:52 +0000 (14:50 +0100)
committerJean Delvare <khali@endymion.delvare>
Sun, 20 Mar 2011 13:50:52 +0000 (14:50 +0100)
commite3f0fef6e40b1e3b263c1bfe7bfb57bc884a8d3d
tree47a82a66081fa5377e3a5ec5e91bceb431290ddf
parent35313bbb0b633087967bb55086e7c973007d3fd0
i2c-dev: Use standard bus notification mechanism

Use the standard driver core mechanism to keep track of i2c adapters
present on the system: i2c_for_each_dev and a notifier. This will let
us deprecate and ultimately remove the legacy attach_adapter and
detach_adapter callbacks in i2c_driver.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/i2c-dev.c