Inline the i2c_check_functionality() check, since the function returns a
boolean status rather than an error code.
Reviewed-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Thorsten Blum <blum@kernel.org>
---
Wolfram, could you please apply this last conversion, since this patch
has not been applied yet despite several resends since April? Thanks.
---
drivers/media/i2c/isl7998x.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
i2c_check_functionality() returns a bool - change the return type from
int to bool and update the comment accordingly.
Signed-off-by: Thorsten Blum <blum@kernel.org>
Acked-by: Mukesh Kumar Savaliya <mukesh.savaliya@oss.qualcomm.com>
---
include/linux/i2c.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -919,8 +919,8 @@ static inline u32 i2c_get_functionality(struct i2c_adapter *adap)returnadap->algo->functionality(adap);}-/* Return 1 if adapter supports everything we need, 0 if not. */-staticinlineinti2c_check_functionality(structi2c_adapter*adap,u32func)+/* Return true if adapter supports everything we need, false if not. */+staticinlinebooli2c_check_functionality(structi2c_adapter*adap,u32func){return(func&i2c_get_functionality(adap))==func;}
Hi Thorsten,
On Wed, Sep 09, 2026 at 10:20:56AM +0200, Thorsten Blum wrote:
i2c_check_functionality() returns a bool - change the return type from
int to bool and update the comment accordingly.
Signed-off-by: Thorsten Blum <blum@kernel.org>
Acked-by: Mukesh Kumar Savaliya <mukesh.savaliya@oss.qualcomm.com>
both patches merged to i2c/i2c.
For some reason I don't see anywhere in my mailbox your patch
1/1, I had to fish it out from patchwork.
Thanks,
Andi
On Wed, Sep 09, 2026 at 06:31:14PM +0200, Andi Shyti wrote:
Hi Thorsten,
On Wed, Sep 09, 2026 at 10:20:56AM +0200, Thorsten Blum wrote:
quoted
i2c_check_functionality() returns a bool - change the return type from
int to bool and update the comment accordingly.
Signed-off-by: Thorsten Blum <blum@kernel.org>
Acked-by: Mukesh Kumar Savaliya <mukesh.savaliya@oss.qualcomm.com>
both patches merged to i2c/i2c.
For some reason I don't see anywhere in my mailbox your patch
1/1, I had to fish it out from patchwork.
I might have messed up the git send-email recipients and my config ended
up adding you only to patch 2/2. Apologies!
Thanks,
Thorsten