]> git.baikalelectronics.ru Git - kernel.git/commit
media: ov5645: Fix write_reg return code
authorTodor Tomov <todor.tomov@linaro.org>
Thu, 8 Feb 2018 09:41:59 +0000 (04:41 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 17 May 2018 10:22:08 +0000 (06:22 -0400)
commita987ea0ff0fdb1ce9309c45d1cd423b9d0633726
treef776d3a57a6cbdd42a04b849757298f5299117a2
parent0d6bd2b888626754911987dbb9f09a279fd9404c
media: ov5645: Fix write_reg return code

I2C transfer functions return number of successful operations (on success).

Do not return the received positive return code but instead return 0 on
success. The users of write_reg function already use this logic.

Signed-off-by: Todor Tomov <todor.tomov@linaro.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/ov5645.c