]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: Match dummy devices by type
authorJean Delvare <khali@linux-fr.org>
Sun, 11 May 2008 18:37:06 +0000 (20:37 +0200)
committerJean Delvare <khali@hyperion.delvare>
Sun, 11 May 2008 18:37:06 +0000 (20:37 +0200)
commit97366fa764f24600ccea5329359591f281bbcbb1
tree20a49a8b11a4e8cf9386a84956d6660960323f26
parent8aeadcaa3ed05f5eec38a42a334f803df06a4486
i2c: Match dummy devices by type

As the old driver_name/type matching scheme is going away soon, change
the dummy device mechanism to use the new matching scheme.

This has the downside that dummy i2c clients can no longer choose
their name, they'll all appear as "dummy" in sysfs and in log
messages. I don't think it is a problem in practice though, as there
is little reason to use these i2c clients to log messages.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/i2c-core.c
drivers/rtc/rtc-s35390a.c
include/linux/i2c.h