diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-05-19 21:47:03 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-05-19 21:47:03 +0300 |
commit | f23d8719e76fd32828ae6f1b55e4659144467742 (patch) | |
tree | 7ddb9a4fbbc029d37f718235a0deb54e78d829e1 /include/linux | |
parent | c4d36b63b28b76cd584bec48af7b562b4513b87b (diff) | |
parent | b8f5fe3bc5b9318d95770a09a480c31aced20cd2 (diff) | |
download | linux-f23d8719e76fd32828ae6f1b55e4659144467742.tar.xz |
Merge branch 'i2c/for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux
Pull i2c updates from Wolfram Sang:
"Some I2C core API additions which are kind of simple but enhance error
checking for users a lot, especially by returning errno now.
There are wrappers to still support the old API but it will be removed
once all users are converted"
* 'i2c/for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
i2c: core: add device-managed version of i2c_new_dummy
i2c: core: improve return value handling of i2c_new_device and i2c_new_dummy
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/i2c.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index be27062f8ed1..6c4db54714f6 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h @@ -470,6 +470,9 @@ extern struct i2c_client * i2c_new_dummy(struct i2c_adapter *adap, u16 address); extern struct i2c_client * +devm_i2c_new_dummy_device(struct device *dev, struct i2c_adapter *adap, u16 address); + +extern struct i2c_client * i2c_new_secondary_device(struct i2c_client *client, const char *name, u16 default_addr); |