[media] tea6415c: return -EIO if i2c_check_functionality fails
authorAxel Lin <axel.lin@gmail.com>
Mon, 1 Nov 2010 09:25:39 +0000 (06:25 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 29 Dec 2010 10:16:39 +0000 (08:16 -0200)
commit76e4a9a7164263d8ffe816920f84a91e7dfee444
treeee7b21f7dd6819bfe813363bf6b3530c7079b3b5
parent1ce6a1433572c650247480e1bbbca6bd61db7874
[media] tea6415c: return -EIO if i2c_check_functionality fails

If the adapter does not support I2C_FUNC_SMBUS_WRITE_BYTE,
return -EIO instead of 0.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/tea6415c.c