]> 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)
commit7416947e1673b63b5cd07ecf0138e6572be20de8
tree7e5f87ba313bd02c6a2211c86d3fe31a5ae80ee7
parentdb9e9a509ff550a5e13bb9332d0fa2681ea357d9
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