diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2019-06-24 20:04:02 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2019-06-26 16:10:35 +0300 |
commit | 550113d4e9f5c7b62be760fc01178c9e0139c1f4 (patch) | |
tree | 0f8fb5f7c522d176534315af14ec7a9ad1749a45 /include/linux/i2c.h | |
parent | 57ca968b69ecb741f6f8e643666e21635b6828bc (diff) | |
download | linux-550113d4e9f5c7b62be760fc01178c9e0139c1f4.tar.xz |
i2c: add newly exported functions to the header, too
Nobody (including me) noticed that these functions were exported but not
added to the header :/
Fixes: 7159dbdae3c5 ("i2c: core: improve return value handling of i2c_new_device and i2c_new_dummy")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'include/linux/i2c.h')
-rw-r--r-- | include/linux/i2c.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index d8f9060179d0..fa5552c2307b 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h @@ -442,6 +442,9 @@ struct i2c_board_info { extern struct i2c_client * i2c_new_device(struct i2c_adapter *adap, struct i2c_board_info const *info); +extern struct i2c_client * +i2c_new_client_device(struct i2c_adapter *adap, struct i2c_board_info const *info); + /* If you don't know the exact address of an I2C device, use this variant * instead, which can probe for device presence in a list of possible * addresses. The "probe" callback function is optional. If it is provided, @@ -464,6 +467,9 @@ extern struct i2c_client * i2c_new_dummy(struct i2c_adapter *adap, u16 address); extern struct i2c_client * +i2c_new_dummy_device(struct i2c_adapter *adapter, u16 address); + +extern struct i2c_client * devm_i2c_new_dummy_device(struct device *dev, struct i2c_adapter *adap, u16 address); extern struct i2c_client * |