media: saa7146: fix error return from master_xfer
authorPeter Rosin <peda@axentia.se>
Wed, 9 May 2018 19:48:07 +0000 (15:48 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 11 May 2018 15:30:57 +0000 (11:30 -0400)
commitde281f7e8ff12247e2807a0f9ba42eeddf2e7824
tree2c147902f9e41083b094ef5806101b41466c1e69
parent2f5337099193113cd21282c588430b7edd2bdeae
media: saa7146: fix error return from master_xfer

Returning -1 (-EPERM) is not appropriate here, go with -EIO.

Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/common/saa7146/saa7146_i2c.c