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: qt1050 - 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-3-thorsten.blum@linux.dev
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Thorsten Blum and committed by
Dmitry Torokhov
512b0f41 95dffe32

+1 -2
+1 -2
drivers/input/keyboard/qt1050.c
··· 435 435 int err; 436 436 437 437 /* Check basic functionality */ 438 - err = i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE); 439 - if (!err) { 438 + if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE)) { 440 439 dev_err(&client->dev, "%s adapter not supported\n", 441 440 dev_driver_string(&client->adapter->dev)); 442 441 return -ENODEV;