drm/bridge: sii902x: inline i2c_check_functionality check
Subsystems (3)
PATCH RESEND 1/1 drm/bridge: sii902x: 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/gpu/drm/bridge/sii902x.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/bridge/sii902x.c +1 -3
@@ -1158,9 +1158,7 @@ static int sii902x_probe(struct i2c_client *client)static const char *const supplies[] = {"iovcc" ,"cvcc12" };int ret; - ret =i2c_check_functionality (client->adapter, -I2C_FUNC_SMBUS_BYTE_DATA ); -if (!ret) { +if (!i2c_check_functionality (client->adapter,I2C_FUNC_SMBUS_BYTE_DATA )) {dev_err (dev,"I2C adapter not suitable\n" );return -EIO ; }
Quoted 8 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]>--- drivers/gpu/drm/bridge/sii902x.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
Reviewed-by Dmitry Baryshkov <[email protected]>
Signature · 2 lines
With best wishes Dmitry
Quoted 2 lines · Thorsten Blum
Inline the
i2c_check_functionality()check, since the function returns a boolean status rather than an error code.
Applied, thanks!
[1/1] drm/bridge: sii902x: inline i2c_check_functionality check
commit: ef1d1506976f9bd35864344d2a78a67bf6091bdb
Best regards,
Signature · 3 lines
Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com