diff options
author | Wolfram Sang <[email protected]> | 2019-08-09 17:40:47 +0200 |
---|---|---|
committer | Wolfram Sang <[email protected]> | 2019-08-14 14:54:55 +0200 |
commit | af80559b4d9cd481c63505edbe425ff6bad4ab8d (patch) | |
tree | 0efb9a5c6681c7abb60769cc13aae08ab4ce6205 /net/switchdev/switchdev.c | |
parent | bbeb6b6c07960b8d33bed5352ef462228110c5ab (diff) |
i2c: replace i2c_new_secondary_device with an ERR_PTR variant
In the general move to have i2c_new_*_device functions which return
ERR_PTR instead of NULL, this patch converts i2c_new_secondary_device().
There are only few users, so this patch converts the I2C core and all
users in one go. The function gets renamed to i2c_new_ancillary_device()
so out-of-tree users will get a build failure to understand they need to
adapt their error checking code.
Signed-off-by: Wolfram Sang <[email protected]>
Reviewed-by: Kieran Bingham <[email protected]> # adv748x
Reviewed-by: Laurent Pinchart <[email protected]> # adv7511 + adv7604
Reviewed-by: Hans Verkuil <[email protected]> # adv7604
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions