[PATCH v2] i2c: replace i2c_new_secondary_device with an ERR_PTR variant

Wolfram Sang wsa at the-dreams.de
Wed Aug 14 12:56:19 UTC 2019


On Fri, Aug 09, 2019 at 05:40:47PM +0200, Wolfram Sang wrote:
> 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 <wsa+renesas at sang-engineering.com>
> Reviewed-by: Kieran Bingham <kieran.bingham+renesas at ideasonboard.com> # adv748x
> Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com> # adv7511

Applied to for-next, thanks!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20190814/d0eca3a0/attachment-0001.sig>


More information about the dri-devel mailing list