]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: add helper to check if a client has a driver attached
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 6 Nov 2019 21:21:01 +0000 (22:21 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 11 Dec 2019 07:39:07 +0000 (08:39 +0100)
commitc6aed84210d89c25c6632b380fd50c3cb344d72d
treef53aa271f4e1e307b31e081fe994c94a901fae19
parent0f17040ae2ecbdf09d5f8b223c7501042ec2a6fd
i2c: add helper to check if a client has a driver attached

As a preparation for an API conversion, factor out something frequently
used in the media subsystem. As an improvement, it bails out on both,
NULL and ERRPTR to handle the old and new API.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
include/linux/i2c.h