Input: qt1050 - inline i2c_check_functionality check
Subsystems (2)
PATCH 2/2 Input: qt1070 - inline i2c_check_functionality check
In reply to Thorsten BlumInline the i2c_check_functionality() check, since the function returns a boolean status rather than an error code.
Signed-off-by Thorsten Blum <[email protected]>
--- drivers/input/keyboard/qt1070.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/input/keyboard/qt1070.c +1 -2
@@ -133,8 +133,7 @@ static int qt1070_probe(struct i2c_client *client)int i;int err; - err =i2c_check_functionality (client->adapter,I2C_FUNC_SMBUS_BYTE ); -if (!err) { +if (!i2c_check_functionality (client->adapter,I2C_FUNC_SMBUS_BYTE )) {dev_err (&client->dev,"%s adapter not supported\n" ,dev_driver_string (&client->adapter->dev));return -ENODEV ;
PATCH 1/2 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 <[email protected]>
--- drivers/input/keyboard/qt1050.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/input/keyboard/qt1050.c +1 -2
@@ -435,8 +435,7 @@ static int qt1050_probe(struct i2c_client *client)int err;/* Check basic functionality */ - err =i2c_check_functionality (client->adapter,I2C_FUNC_SMBUS_BYTE ); -if (!err) { +if (!i2c_check_functionality (client->adapter,I2C_FUNC_SMBUS_BYTE )) {dev_err (&client->dev,"%s adapter not supported\n" ,dev_driver_string (&client->adapter->dev));return -ENODEV ;
Quoted 4 lines · Thorsten Blum
Inline the
i2c_check_functionality()check, since the function returns a boolean status rather than an error code.Signed-off-by Thorsten Blum <[email protected]>
Applied both, thank you.
Thanks.
Signature · 1 line
Dmitry