* [PATCH] mfd: twl-core: use i2c_check_functionality as boolean value
@ 2026-05-05 11:45 Thorsten Blum
2026-05-14 13:28 ` (subset) " Lee Jones
0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Blum @ 2026-05-05 11:45 UTC (permalink / raw)
To: Aaro Koskinen, Andreas Kemnade, Kevin Hilman, Roger Quadros,
Tony Lindgren, Lee Jones
Cc: Thorsten Blum, linux-omap, linux-kernel
i2c_check_functionality() returns a boolean status rather than an error
code - directly use it as a boolean value.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
drivers/mfd/twl-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mfd/twl-core.c b/drivers/mfd/twl-core.c
index f89eda4a17fe..c024a28b057e 100644
--- a/drivers/mfd/twl-core.c
+++ b/drivers/mfd/twl-core.c
@@ -754,7 +754,7 @@ twl_probe(struct i2c_client *client)
return status;
}
- if (i2c_check_functionality(client->adapter, I2C_FUNC_I2C) == 0) {
+ if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) {
dev_dbg(&client->dev, "can't talk I2C?\n");
status = -EIO;
goto free;
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: (subset) [PATCH] mfd: twl-core: use i2c_check_functionality as boolean value
2026-05-05 11:45 [PATCH] mfd: twl-core: use i2c_check_functionality as boolean value Thorsten Blum
@ 2026-05-14 13:28 ` Lee Jones
0 siblings, 0 replies; 2+ messages in thread
From: Lee Jones @ 2026-05-14 13:28 UTC (permalink / raw)
To: Aaro Koskinen, Andreas Kemnade, Kevin Hilman, Roger Quadros,
Tony Lindgren, Lee Jones, Thorsten Blum
Cc: linux-omap, linux-kernel
On Tue, 05 May 2026 13:45:43 +0200, Thorsten Blum wrote:
> i2c_check_functionality() returns a boolean status rather than an error
> code - directly use it as a boolean value.
Applied, thanks!
[1/1] mfd: twl-core: use i2c_check_functionality as boolean value
commit: 9d5664df0221e8529b06d71d6bdc7d4a214cba2d
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-05-14 13:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-05 11:45 [PATCH] mfd: twl-core: use i2c_check_functionality as boolean value Thorsten Blum
2026-05-14 13:28 ` (subset) " Lee Jones
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.