Commit ffd491fd authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab

[media] qt1010: signedness bug in qt1010_init_meas1()

qt1010_init_meas2() returns zero on success and negative error codes on
failure so the return type should be int instead of u8.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent e0e52d4e
...@@ -288,7 +288,7 @@ static int qt1010_init_meas1(struct qt1010_priv *priv, ...@@ -288,7 +288,7 @@ static int qt1010_init_meas1(struct qt1010_priv *priv,
return qt1010_writereg(priv, 0x1e, 0x00); return qt1010_writereg(priv, 0x1e, 0x00);
} }
static u8 qt1010_init_meas2(struct qt1010_priv *priv, static int qt1010_init_meas2(struct qt1010_priv *priv,
u8 reg_init_val, u8 *retval) u8 reg_init_val, u8 *retval)
{ {
u8 i, val; u8 i, val;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment