diff options
author | Jean Delvare <khali@linux-fr.org> | 2008-05-11 20:37:06 +0200 |
---|---|---|
committer | Jean Delvare <khali@hyperion.delvare> | 2008-05-11 20:37:06 +0200 |
commit | 60b129d7bfa3e20450816983bd52c49bb0bc1c21 (patch) | |
tree | 20a49a8b11a4e8cf9386a84956d6660960323f26 /include/linux/i2c.h | |
parent | b11a9d8392a698f01337232aa8c5d5603519943f (diff) | |
download | kernel-crypto-60b129d7bfa3e20450816983bd52c49bb0bc1c21.tar.gz kernel-crypto-60b129d7bfa3e20450816983bd52c49bb0bc1c21.tar.xz kernel-crypto-60b129d7bfa3e20450816983bd52c49bb0bc1c21.zip |
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>
Diffstat (limited to 'include/linux/i2c.h')
-rw-r--r-- | include/linux/i2c.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index cb63da5c213..6716ec808c5 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h @@ -262,7 +262,7 @@ i2c_new_probed_device(struct i2c_adapter *adap, * client handles for the extra addresses. */ extern struct i2c_client * -i2c_new_dummy(struct i2c_adapter *adap, u16 address, const char *type); +i2c_new_dummy(struct i2c_adapter *adap, u16 address); extern void i2c_unregister_device(struct i2c_client *); |