mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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: 7159dbdae3 ("i2c: core: improve return value handling of i2c_new_device and i2c_new_dummy")
Signed-off-by: Wolfram Sang <[email protected]>
Reviewed-by: Bartosz Golaszewski <[email protected]>
Reviewed-by: Kieran Bingham <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
This commit is contained in:
parent
57ca968b69
commit
550113d4e9
2 changed files with 8 additions and 3 deletions
|
|
@ -729,7 +729,7 @@ static int i2c_dev_irq_from_resources(const struct resource *resources,
|
|||
* This returns the new i2c client, which may be saved for later use with
|
||||
* i2c_unregister_device(); or an ERR_PTR to describe the error.
|
||||
*/
|
||||
static struct i2c_client *
|
||||
struct i2c_client *
|
||||
i2c_new_client_device(struct i2c_adapter *adap, struct i2c_board_info const *info)
|
||||
{
|
||||
struct i2c_client *client;
|
||||
|
|
@ -895,8 +895,7 @@ static struct i2c_driver dummy_driver = {
|
|||
* This returns the new i2c client, which should be saved for later use with
|
||||
* i2c_unregister_device(); or an ERR_PTR to describe the error.
|
||||
*/
|
||||
static struct i2c_client *
|
||||
i2c_new_dummy_device(struct i2c_adapter *adapter, u16 address)
|
||||
struct i2c_client *i2c_new_dummy_device(struct i2c_adapter *adapter, u16 address)
|
||||
{
|
||||
struct i2c_board_info info = {
|
||||
I2C_BOARD_INFO("dummy", address),
|
||||
|
|
|
|||
Loading…
Reference in a new issue