]> git.baikalelectronics.ru Git - kernel.git/commit
media: i2c: ov2659: Fix sensor detection to actually fail when device is not present
authorBenoit Parrot <bparrot@ti.com>
Mon, 30 Sep 2019 13:06:38 +0000 (10:06 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 1 Oct 2019 20:34:12 +0000 (17:34 -0300)
commite4fe8dc456fa9057aced6e1bbdb020d67cb51ccf
tree7e5f87ba313bd02c6a2211c86d3fe31a5ae80ee7
parent7422e64d7e1428ec8a911e799f9f1427b11ba9a2
media: i2c: ov2659: Fix sensor detection to actually fail when device is not present

Make sure that if the expected sensor device id register
is not recognized properly the failure is propagated
up so devices are not left partially initialized.

Signed-off-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Jyri Sarha <jsarha@ti.com>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/ov2659.c