diff options
| author | Thorsten Blum <blum@kernel.org> | 2026-09-09 10:20:56 +0200 |
|---|---|---|
| committer | Andi Shyti <andi.shyti@kernel.org> | 2026-09-09 18:26:37 +0200 |
| commit | 4c76dc90f2d0f324b0f72faf1c82f8ed17d2ef6b (patch) | |
| tree | da55a78d36c652dc132df49f09c8eff35f4170c8 | |
| parent | 95bfa7c11ad43e86e2e16e1d5e8aafba19703392 (diff) | |
| download | linux-next-4c76dc90f2d0f324b0f72faf1c82f8ed17d2ef6b.tar.gz linux-next-4c76dc90f2d0f324b0f72faf1c82f8ed17d2ef6b.zip | |
i2c: Change return type to bool for i2c_check_functionality()
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>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://patch.msgid.link/20260909082053.410739-5-blum@kernel.org
| -rw-r--r-- | include/linux/i2c.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index 14ab4d3055af..4af2df969a05 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h @@ -919,8 +919,8 @@ static inline u32 i2c_get_functionality(struct i2c_adapter *adap) return adap->algo->functionality(adap); } -/* Return 1 if adapter supports everything we need, 0 if not. */ -static inline int i2c_check_functionality(struct i2c_adapter *adap, u32 func) +/* Return true if adapter supports everything we need, false if not. */ +static inline bool i2c_check_functionality(struct i2c_adapter *adap, u32 func) { return (func & i2c_get_functionality(adap)) == func; } |
