Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Input: qt1070 - inline i2c_check_functionality check

Inline the i2c_check_functionality() check, since the function returns a
boolean status rather than an error code.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20260408141926.1181389-4-thorsten.blum@linux.dev
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Thorsten Blum and committed by
Dmitry Torokhov
16bbb591 512b0f41

+1 -2
+1 -2
drivers/input/keyboard/qt1070.c
··· 133 133 int i; 134 134 int err; 135 135 136 - err = i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE); 137 - if (!err) { 136 + if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE)) { 138 137 dev_err(&client->dev, "%s adapter not supported\n", 139 138 dev_driver_string(&client->adapter->dev)); 140 139 return -ENODEV;